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...
|
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...
|
|
|
GameObject | replacement |
|
GameObject | wire |
|
bool | buildingSlice |
|
Texture2D[] | textures |
|
Texture2D | positionTextureMap |
|
Texture2D | targetTextureMap |
|
bool | controllerInsideSomeBox |
|
Vector3 | sliceCoords = new Vector3() |
|
List< Point > | points = new List<Point>() |
|
SpatialGraph | spatialGraph |
|
PointCloud | parentPC |
|
GraphSlice | parentSlice |
|
List< GraphSlice > | childSlices = new List<GraphSlice>() |
|
PointCloud | pointCloud |
|
SlicerBox | slicerBox |
|
GameObject | image |
|
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.
◆ 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
-
- 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
-
toggle | To 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
-
axis | Which axis to subdivide on. 0 = x, 1 = y, 2 = z. |
points | Which points to slice. |
nrOfSlices | Nr 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:
- cellexalvr_cloudxr/Assets/Scripts/Spatial/GraphSlice.cs