This class handles the box used for spatial graphs. Handles culling, slicing and reference mesh and mesh generation. As of now only used on spatial graphs but could be applicable to other data sets as well.
More...
|
GameObject | blade |
|
GameObject | plane |
|
GameObject | box |
|
GameObject | sliceInteractable |
|
Transform | menuPosition |
|
Transform | buttonPosition |
|
SlicingMenu | slicingMenu |
|
VisualEffect | slicingAnimation |
|
bool | sliceAnimationActive |
|
GameObject | cullingCube |
|
GameObject | cullingCube2 |
|
CullingWall[] | cullingWalls = new CullingWall[6] |
|
GameObject | cullingWallsParent |
|
Vector3 | cullPos1 = new Vector3(.5f, .5f, .5f) |
|
Vector3 | cullPos2 = new Vector3(.5f, .5f, .5f) |
|
|
bool? | Active [get, set] |
|
int | Axis [get, set] |
|
bool | Automatic [get, set] |
|
This class handles the box used for spatial graphs. Handles culling, slicing and reference mesh and mesh generation. As of now only used on spatial graphs but could be applicable to other data sets as well.
◆ BoxAnimation()
void CellexalVR.Spatial.SlicerBox.BoxAnimation |
( |
int |
axis, |
|
|
int |
toggle |
|
) |
| |
Plays an animation to indicate a slicing of the graph was initiated and is running.
- Parameters
-
◆ ChangeAxis()
void CellexalVR.Spatial.SlicerBox.ChangeAxis |
( |
int |
axis | ) |
|
Change the axis used to slice the graph.
- Parameters
-
◆ GetPlane()
Plane CellexalVR.Spatial.SlicerBox.GetPlane |
( |
| ) |
|
Retrieve the plane used to slice the graph.
- Returns
◆ MorphToOtherGraph()
void CellexalVR.Spatial.SlicerBox.MorphToOtherGraph |
( |
| ) |
|
Morph to other graph to highlight differences between the two representations. Animates the position of each point to its corresponding position in the other.
◆ SetHandlePositions()
void CellexalVR.Spatial.SlicerBox.SetHandlePositions |
( |
| ) |
|
Set the position of the handles for the culling walls.
◆ SingleSliceViewMode()
void CellexalVR.Spatial.SlicerBox.SingleSliceViewMode |
( |
int |
axis = -1 | ) |
|
Sets the graph to only view one slice of points at a time.
- Parameters
-
axis | Decides in which direction to divide up the graph when viewing. |
◆ SliceBySliceAnimation()
void CellexalVR.Spatial.SlicerBox.SliceBySliceAnimation |
( |
| ) |
|
Animates the culling to get a slice by slice view of the graph.
◆ SliceGraphAutomatic()
void CellexalVR.Spatial.SlicerBox.SliceGraphAutomatic |
( |
int |
axis, |
|
|
int |
nrOfSlices |
|
) |
| |
Slicing the graph based on an axis. Dividing upp the graph into equally big.
- Parameters
-
axis | The axis used to divide up the graph. |
nrOfSlices | The nr of slices to make. |
◆ SliceGraphFromSelection()
void CellexalVR.Spatial.SlicerBox.SliceGraphFromSelection |
( |
| ) |
|
Slice the graph based on which points are selected.
◆ SliceGraphManual()
void CellexalVR.Spatial.SlicerBox.SliceGraphManual |
( |
| ) |
|
Slice the graph with the plane using the SliceGraphSystem. The normal and position of the plane is used to divide the graph.
◆ ToggleManualSlicer()
void CellexalVR.Spatial.SlicerBox.ToggleManualSlicer |
( |
bool |
toggle | ) |
|
Toggle the manual slicing plane used to divide up the graph.
- Parameters
-
◆ ToggleReferenceOrgan()
void CellexalVR.Spatial.SlicerBox.ToggleReferenceOrgan |
( |
bool |
toggle | ) |
|
Activates the reference glass organ and places it on top of the graph points.
- Parameters
-
◆ UpdateCullingBox() [1/2]
void CellexalVR.Spatial.SlicerBox.UpdateCullingBox |
( |
| ) |
|
Using the position of the culling sliders it sets the values of the culling box in the visual effects graph. And in that way decides which points are visible.
◆ UpdateCullingBox() [2/2]
void CellexalVR.Spatial.SlicerBox.UpdateCullingBox |
( |
Vector3 |
pos1, |
|
|
Vector3 |
pos2 |
|
) |
| |
Update the values in the visual effects graph that decides which points are visible.
- Parameters
-
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/Spatial/SlicerBox.cs