CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.Spatial.GraphSlice Class Reference

Represents one graph with the same z - coordinate (one slice of the spatial graph). Each slice can be moved independently if in slice mode otherwise they should be moved together as one object. More...

Inheritance diagram for CellexalVR.Spatial.GraphSlice:

Public Member Functions

void UpdateColorTexture ()
 Update the color texture map of the point cloud to correspond to the parents color map. The parent point cloud contains all the original points whereas this slice is a subset. More...
 
void ClearSlices ()
 
void MoveToGraph ()
 Animation to move the slice back to its original position within the parent object. More...
 
IEnumerator MoveToGraphCoroutine ()
 Animation to move the slice back to its original position within the parent object. More...
 
void AddReplacement ()
 Add replacement prefab instance. A replacement is spawned when slices is removed from parent to show where it came from. More...
 
void ActivateSlices (bool toggle)
 Separates the slice from its parent point cloud so it can be individually interacted with. More...
 
void ActivateSlice (bool activate, bool move=true)
 Activate/Deactivate a slice. Activating means the slice can be moved individually away from the parent object. When activating the slices are pulled apart slighly to make it easier to grab them. More...
 
IEnumerator FlipSlice (float animationTime)
 
void BuildPointCloud (Transform oldPc)
 
IEnumerator SliceAxis (int axis, List< Point > points, int nrOfSlices)
 Creates a set of new slices from this based on the position in a given axis. Also based on the nr of slices you want. E.g. if you want 10 new slices in the x it divides up the slice in 10 equally big (in x) slices. More...
 

Public Attributes

GameObject replacement
 
GameObject wire
 
bool buildingSlice
 
Texture2D[] textures
 
Texture2D positionTextureMap
 
Texture2D targetTextureMap
 
bool controllerInsideSomeBox
 
Vector3 sliceCoords = new Vector3()
 
List< Pointpoints = new List<Point>()
 
SpatialGraph spatialGraph
 
PointCloud parentPC
 
GraphSlice parentSlice
 
List< GraphSlicechildSlices = new List<GraphSlice>()
 
PointCloud pointCloud
 
SlicerBox slicerBox
 
GameObject image
 

Protected Attributes

Graph graph
 

Properties

int SliceNr [get, set]
 

Detailed Description

Represents one graph with the same z - coordinate (one slice of the spatial graph). Each slice can be moved independently if in slice mode otherwise they should be moved together as one object.

Member Function Documentation

◆ ActivateSlice()

void CellexalVR.Spatial.GraphSlice.ActivateSlice ( bool  activate,
bool  move = true 
)

Activate/Deactivate a slice. Activating means the slice can be moved individually away from the parent object. When activating the slices are pulled apart slighly to make it easier to grab them.

Parameters
activate
Returns

◆ ActivateSlices()

void CellexalVR.Spatial.GraphSlice.ActivateSlices ( bool  toggle)

Separates the slice from its parent point cloud so it can be individually interacted with.

Parameters
toggleTo separate or move back to parent.

◆ AddReplacement()

void CellexalVR.Spatial.GraphSlice.AddReplacement ( )

Add replacement prefab instance. A replacement is spawned when slices is removed from parent to show where it came from.

◆ MoveToGraph()

void CellexalVR.Spatial.GraphSlice.MoveToGraph ( )

Animation to move the slice back to its original position within the parent object.

Returns

◆ MoveToGraphCoroutine()

IEnumerator CellexalVR.Spatial.GraphSlice.MoveToGraphCoroutine ( )

Animation to move the slice back to its original position within the parent object.

Returns

◆ SliceAxis()

IEnumerator CellexalVR.Spatial.GraphSlice.SliceAxis ( int  axis,
List< Point points,
int  nrOfSlices 
)

Creates a set of new slices from this based on the position in a given axis. Also based on the nr of slices you want. E.g. if you want 10 new slices in the x it divides up the slice in 10 equally big (in x) slices.

Parameters
axisWhich axis to subdivide on. 0 = x, 1 = y, 2 = z.
pointsWhich points to slice.
nrOfSlicesNr of slices to make.
Returns

◆ UpdateColorTexture()

void CellexalVR.Spatial.GraphSlice.UpdateColorTexture ( )

Update the color texture map of the point cloud to correspond to the parents color map. The parent point cloud contains all the original points whereas this slice is a subset.


The documentation for this class was generated from the following file: