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

Main class to handle slicing of graphs. Slicing means dividing up the graph into two or more new graphs that can be interacted with individually. More...

Inheritance diagram for CellexalVR.Spatial.SliceGraphSystem:

Public Member Functions

void Slice (int graphNr, Vector3 planeNormal, Vector3 planePos)
 Slice from a plane. This means that the graph will be divided into two new graphs. One on each side of the slicing plane. More...
 
void SliceFromSelection (int graphNr)
 Slice based on selected/highlighted points. More...
 
List< PointGetPoints (int graphID)
 Helper function to retrieve the points for a certain graph. More...
 

Static Public Member Functions

static List< PointSortPoints (IReadOnlyCollection< Point > points, int axis)
 Sorts the points based on position in a certain axis. More...
 

Protected Member Functions

override void OnCreate ()
 
override void OnUpdate ()
 

Detailed Description

Main class to handle slicing of graphs. Slicing means dividing up the graph into two or more new graphs that can be interacted with individually.

Member Function Documentation

◆ GetPoints()

List<Point> CellexalVR.Spatial.SliceGraphSystem.GetPoints ( int  graphID)

Helper function to retrieve the points for a certain graph.

Parameters
graphIDThe id of the graph of interest.
Returns

◆ Slice()

void CellexalVR.Spatial.SliceGraphSystem.Slice ( int  graphNr,
Vector3  planeNormal,
Vector3  planePos 
)

Slice from a plane. This means that the graph will be divided into two new graphs. One on each side of the slicing plane.

Parameters
graphNrThe id of the graph to slice.
planeNormalNormal of the plane used to calculate which side each point is on.
planePosPosition of plane used to calculate which side each point is on.

◆ SliceFromSelection()

void CellexalVR.Spatial.SliceGraphSystem.SliceFromSelection ( int  graphNr)

Slice based on selected/highlighted points.

Parameters
graphNr

◆ SortPoints()

static List<Point> CellexalVR.Spatial.SliceGraphSystem.SortPoints ( IReadOnlyCollection< Point points,
int  axis 
)
static

Sorts the points based on position in a certain axis.

Parameters
pointsThe points to sort.
axisThe axis to use for sorting.
Returns

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