This class takes care of the brain reference model. The mouse brain model is downloaded using the allen sdk https://allensdk.readthedocs.io/en/latest/. The reference model is useful when a spatial mouse brain dataset is analyzed. To place the data points in relation to the brain glass organ. Ids, names and acronyms are retrieved via the allen sdk and these can be used to search trough brain parts.
More...
|
bool | loadBrain |
|
GameObject | rootModel |
|
GameObject | models |
|
Dictionary< int, SpatialReferenceModelPart > | idToModelDictionary = new Dictionary<int, SpatialReferenceModelPart>() |
|
Dictionary< string, string > | acronyms = new Dictionary<string, string>() |
|
Dictionary< string, int > | names = new Dictionary<string, int>() |
|
BrainPartButton | brainPartButtonPrefab |
|
Dictionary< string, GameObject > | spawnedParts = new Dictionary<string, GameObject>() |
|
Vector3 | startPosition |
|
Vector3 | startScale |
|
Quaternion | startRotation |
|
List< int > | nonSplittableMeshes = new List<int> { 8, 997, 567, 824 } |
|
This class takes care of the brain reference model. The mouse brain model is downloaded using the allen sdk https://allensdk.readthedocs.io/en/latest/. The reference model is useful when a spatial mouse brain dataset is analyzed. To place the data points in relation to the brain glass organ. Ids, names and acronyms are retrieved via the allen sdk and these can be used to search trough brain parts.
◆ ActivateKeyboard()
void CellexalVR.Spatial.AllenReferenceBrain.ActivateKeyboard |
( |
bool |
activate | ) |
|
Activates the keyboard to use to search trough brain part models to spawn.
- Parameters
-
◆ PopulateMeshes()
IEnumerator CellexalVR.Spatial.AllenReferenceBrain.PopulateMeshes |
( |
| ) |
|
Helper function to deal with the imported meshes.
- Returns
◆ RemovePart()
void CellexalVR.Spatial.AllenReferenceBrain.RemovePart |
( |
string |
modelName | ) |
|
Remove a spawn glass brain part.
- Parameters
-
◆ ScrollSuggestions()
void CellexalVR.Spatial.AllenReferenceBrain.ScrollSuggestions |
( |
int |
dir | ) |
|
Scroll through the brain part suggestions.
- Parameters
-
◆ SpawnModel() [1/2]
Spawns a glass brain part.
- Parameters
-
- Returns
◆ SpawnModel() [2/2]
void CellexalVR.Spatial.AllenReferenceBrain.SpawnModel |
( |
string |
modelName | ) |
|
Spawn a glass brain part.
- Parameters
-
modelName | Name of the model. |
◆ Spread()
void CellexalVR.Spatial.AllenReferenceBrain.Spread |
( |
| ) |
|
Spread out the spawned brain parts. Distances the parts from the center.
◆ Toggle()
void CellexalVR.Spatial.AllenReferenceBrain.Toggle |
( |
bool |
toggle | ) |
|
For the spatial dataset graph points to be placed in relation to the glass brain it parents the object to the spatial graph transform.
◆ UpdateSuggestions()
void CellexalVR.Spatial.AllenReferenceBrain.UpdateSuggestions |
( |
string |
filter = "" , |
|
|
int |
offset = 0 |
|
) |
| |
Writing on the keyboard filters the brain part names/acronyms.
- Parameters
-
filter | The letters that the brain part must contains. |
offset | Used for the suggestions to be correct. |
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/Spatial/AllenReferenceBrain.cs