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

This class handles part of the point selection logics. It divides a graph into octants and stores data in these octants so it knows which data to look for when a users selection tool is in a certain part of the graph. More...

Inheritance diagram for CellexalVR.AnalysisLogic.OctantSystem:

Public Member Functions

void SetHashMap (int id)
 Create the hashmap containing the octant data (point data) and decides to which octant it belongs. More...
 

Static Public Member Functions

static int GetPositionHashMapKey (float3 position, int scale=1)
 Depending on a position in the graph it returns the key of the octant. More...
 
static int GetEntityCountInHashMap (NativeMultiHashMap< int, OctantData > octantMultiHashMap, int hashMapKey)
 Given a octant key it returns how many points are in that octant. More...
 
static void DebugDrawCubes (float3 position, Transform t)
 
static void DebugDrawCube (float3 position, Transform t)
 

Public Attributes

List< Transform > graphParentTransforms = new List<Transform>()
 

Static Public Attributes

const int octantYMultiplier = 1000
 
const int octantZMultiplier = 100
 
const int octantCellSize = 1
 
static List< NativeMultiHashMap< int, OctantData > > quadrantMultiHashMaps
 

Protected Member Functions

override void OnCreate ()
 
override void OnDestroy ()
 
override void OnUpdate ()
 

Detailed Description

This class handles part of the point selection logics. It divides a graph into octants and stores data in these octants so it knows which data to look for when a users selection tool is in a certain part of the graph.

Member Function Documentation

◆ GetEntityCountInHashMap()

static int CellexalVR.AnalysisLogic.OctantSystem.GetEntityCountInHashMap ( NativeMultiHashMap< int, OctantData octantMultiHashMap,
int  hashMapKey 
)
static

Given a octant key it returns how many points are in that octant.

Parameters
octantMultiHashMapThe hashmap containing all the octant data components of the graph.
hashMapKeyThe octant key.
Returns

◆ GetPositionHashMapKey()

static int CellexalVR.AnalysisLogic.OctantSystem.GetPositionHashMapKey ( float3  position,
int  scale = 1 
)
static

Depending on a position in the graph it returns the key of the octant.

Parameters
position
scale
Returns

◆ SetHashMap()

void CellexalVR.AnalysisLogic.OctantSystem.SetHashMap ( int  id)

Create the hashmap containing the octant data (point data) and decides to which octant it belongs.

Parameters
id

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