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...
|
void | SetHashMap (int id) |
| Create the hashmap containing the octant data (point data) and decides to which octant it belongs. More...
|
|
|
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) |
|
|
List< Transform > | graphParentTransforms = new List<Transform>() |
|
|
const int | octantYMultiplier = 1000 |
|
const int | octantZMultiplier = 100 |
|
const int | octantCellSize = 1 |
|
static List< NativeMultiHashMap< int, OctantData > > | quadrantMultiHashMaps |
|
|
override void | OnCreate () |
|
override void | OnDestroy () |
|
override void | OnUpdate () |
|
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.
◆ 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
-
octantMultiHashMap | The hashmap containing all the octant data components of the graph. |
hashMapKey | The 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
-
- 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
-
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/AnalysisLogic/OctantSystem.cs