CellexalVR
1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc. More...
Public Member Functions | |
override void | OnRaycastHit (RaycastHit hitInfo, CellexalRaycast raycaster) |
Called by CellexalRaycast.Update every frame that a raycast hit this target. More... | |
override void | OnRaycastExit () |
Called on the first frame that this CellexalRaycastable is not hit by a CellexalRaycast anymore. More... | |
void | HandlePressDown (int hitx, int hity) |
Handles what happens when the trigger is pressed. More... | |
void | HandleHitHeatmap (int hitx, int hity) |
Handles the highlighting when the raycast hits the heatmap More... | |
void | HandleHitGroupingBar (int hitx) |
Handles the highlighting when the raycast hits the grouping bar. The grouping bar is only 1 item tall and thus we do not care about the y coorindate. More... | |
void | HandleHitAttributeBar (int hitx) |
Handles the highlighting when the raycast hits the attribute bar. The attribute bar is only 1 item tall and thus we do not care about the y coorindate. More... | |
int | HandleHitGeneList (int hity) |
Handles the highlighting of the gene list. The gene list is only 1 item wide and thus we do not care about the xcoordinate. More... | |
void | HandleBoxSelection (int hitx, int hity, int selectionStartX, int selectionStartY) |
Handles the highlighting when the user is holding the trigger button to select multiple groups and genes. hitx and hity are determined on this frame, selectionStartX and selectionStartY were determined when the user first pressed the trigger. More... | |
void | ConfirmSelection (int hitx, int hity, int selectionStartX, int selectionStartY) |
Confirms the cells inside the rectangle drawn by the user. hitx and hity are determined on this frame, selectionStartX and selectionStartY were determined when the user first pressed the trigger. More... | |
void | HandleMovingSelection (int hitx, int hity) |
Moves the movingQuadX and movingQuadY when choosing where to move a selection More... | |
void | ResetSelecting () |
void | MoveSelection (int hitx, int hity, int selectedGroupLeft, int selectedGroupRight, int selectedGeneTop, int selectedGeneBottom) |
Moves a part of the heatmap to another part. This can mean moving both rows and coloumns. Entire rows and coloumns are always moved and never split. More... | |
void | CreateNewHeatmapFromSelection () |
void | CumulativeRecolourFromSelection () |
Public Member Functions inherited from CellexalVR.Interaction.CellexalRaycastable | |
virtual void | OnRaycastEnter () |
Called on the first frame that this CellexalRaycastable is hit by a CellexalRaycast. More... | |
Additional Inherited Members | |
Public Attributes inherited from CellexalVR.Interaction.CellexalRaycastable | |
UnityEvent | OnActivate |
UnityEvent | RaycastEnter |
UnityEvent | RaycastExit |
bool | canBePushedAndPulled = true |
bool | active = true |
This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc.
void CellexalVR.Interaction.HeatmapRaycast.ConfirmSelection | ( | int | hitx, |
int | hity, | ||
int | selectionStartX, | ||
int | selectionStartY | ||
) |
Confirms the cells inside the rectangle drawn by the user. hitx and hity are determined on this frame, selectionStartX and selectionStartY were determined when the user first pressed the trigger.
hitx | The last x coordinate that the raycast hit. |
hity | The last y coordinate that the raycast hit. |
selectionStartX | The first x coordinate that the raycast hit when the user first pressed the trigger. |
selectionStartY | The first y coordinate that the raycast hit when the user first pressed the trigger. |
void CellexalVR.Interaction.HeatmapRaycast.HandleBoxSelection | ( | int | hitx, |
int | hity, | ||
int | selectionStartX, | ||
int | selectionStartY | ||
) |
Handles the highlighting when the user is holding the trigger button to select multiple groups and genes. hitx and hity are determined on this frame, selectionStartX and selectionStartY were determined when the user first pressed the trigger.
hitx | The last x coordinate that the raycast hit. |
hity | The last y coordinate that the raycast hit. |
selectionStartX | The first x coordinate that the raycast hit. |
selectionStartY | The first y coordinate that the raycast hit. |
void CellexalVR.Interaction.HeatmapRaycast.HandleHitAttributeBar | ( | int | hitx | ) |
Handles the highlighting when the raycast hits the attribute bar. The attribute bar is only 1 item tall and thus we do not care about the y coorindate.
hitx | The xcoordinate of the hit. |
int CellexalVR.Interaction.HeatmapRaycast.HandleHitGeneList | ( | int | hity | ) |
Handles the highlighting of the gene list. The gene list is only 1 item wide and thus we do not care about the xcoordinate.
hity | The y coordinate of the hit. |
void CellexalVR.Interaction.HeatmapRaycast.HandleHitGroupingBar | ( | int | hitx | ) |
Handles the highlighting when the raycast hits the grouping bar. The grouping bar is only 1 item tall and thus we do not care about the y coorindate.
hitx | The xcoordinate of the hit. |
void CellexalVR.Interaction.HeatmapRaycast.HandleHitHeatmap | ( | int | hitx, |
int | hity | ||
) |
Handles the highlighting when the raycast hits the heatmap
hitx | The x coordinate of the hit. Measured in pixels of the texture. |
hity | The x coordinate if the hit. Meaured in pixels of the texture. |
void CellexalVR.Interaction.HeatmapRaycast.HandleMovingSelection | ( | int | hitx, |
int | hity | ||
) |
Moves the movingQuadX and movingQuadY when choosing where to move a selection
hitx | The x coordinate where the raycast hit the heatmap |
hity | The y coordinate where the raycast hit the heatmap |
void CellexalVR.Interaction.HeatmapRaycast.HandlePressDown | ( | int | hitx, |
int | hity | ||
) |
Handles what happens when the trigger is pressed.
hitx | The x coordinate of the hit. Measured in pixels of the texture. |
hity | The y coordinate of the hit. Measured in pixels of the texture. |
void CellexalVR.Interaction.HeatmapRaycast.MoveSelection | ( | int | hitx, |
int | hity, | ||
int | selectedGroupLeft, | ||
int | selectedGroupRight, | ||
int | selectedGeneTop, | ||
int | selectedGeneBottom | ||
) |
Moves a part of the heatmap to another part. This can mean moving both rows and coloumns. Entire rows and coloumns are always moved and never split.
hitx | The x coordinate where the selection should be moved to. |
hity | The y coordinate where the selection should be moved to. |
selectedGroupLeft | The lower index of the groups that should be moved. |
selectedGroupRight | The higher index of the groups that should be moved. |
selectedGeneTop | The lower index of the genes that should be moved. |
selectedGeneBottom | The higher index of the genes that should be moved. |
|
virtual |
Called on the first frame that this CellexalRaycastable is not hit by a CellexalRaycast anymore.
Reimplemented from CellexalVR.Interaction.CellexalRaycastable.
|
virtual |
Called by CellexalRaycast.Update every frame that a raycast hit this target.
hitInfo | The RaycastHit from the Physics.Raycast call. |
raycaster | The CellexalRaycast that made the Physics.Raycast call. |
Reimplemented from CellexalVR.Interaction.CellexalRaycastable.