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

This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc. More...

Inheritance diagram for CellexalVR.Interaction.HeatmapRaycast:
CellexalVR.Interaction.CellexalRaycastable

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
 

Detailed Description

This class represents a heatmap. Contains methods for calling r-script, building texture and interaction methods etc.

Member Function Documentation

◆ ConfirmSelection()

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.

Parameters
hitxThe last x coordinate that the raycast hit.
hityThe last y coordinate that the raycast hit.
selectionStartXThe first x coordinate that the raycast hit when the user first pressed the trigger.
selectionStartYThe first y coordinate that the raycast hit when the user first pressed the trigger.

◆ HandleBoxSelection()

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.

Parameters
hitxThe last x coordinate that the raycast hit.
hityThe last y coordinate that the raycast hit.
selectionStartXThe first x coordinate that the raycast hit.
selectionStartYThe first y coordinate that the raycast hit.

◆ HandleHitAttributeBar()

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.

Parameters
hitxThe xcoordinate of the hit.

◆ HandleHitGeneList()

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.

Parameters
hityThe y coordinate of the hit.
Returns
An index of the gene that was hit.

◆ HandleHitGroupingBar()

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.

Parameters
hitxThe xcoordinate of the hit.

◆ HandleHitHeatmap()

void CellexalVR.Interaction.HeatmapRaycast.HandleHitHeatmap ( int  hitx,
int  hity 
)

Handles the highlighting when the raycast hits the heatmap

Parameters
hitxThe x coordinate of the hit. Measured in pixels of the texture.
hityThe x coordinate if the hit. Meaured in pixels of the texture.

◆ HandleMovingSelection()

void CellexalVR.Interaction.HeatmapRaycast.HandleMovingSelection ( int  hitx,
int  hity 
)

Moves the movingQuadX and movingQuadY when choosing where to move a selection

Parameters
hitxThe x coordinate where the raycast hit the heatmap
hityThe y coordinate where the raycast hit the heatmap

◆ HandlePressDown()

void CellexalVR.Interaction.HeatmapRaycast.HandlePressDown ( int  hitx,
int  hity 
)

Handles what happens when the trigger is pressed.

Parameters
hitxThe x coordinate of the hit. Measured in pixels of the texture.
hityThe y coordinate of the hit. Measured in pixels of the texture.

◆ MoveSelection()

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.

Parameters
hitxThe x coordinate where the selection should be moved to.
hityThe y coordinate where the selection should be moved to.
selectedGroupLeftThe lower index of the groups that should be moved.
selectedGroupRightThe higher index of the groups that should be moved.
selectedGeneTopThe lower index of the genes that should be moved.
selectedGeneBottomThe higher index of the genes that should be moved.

◆ OnRaycastExit()

override void CellexalVR.Interaction.HeatmapRaycast.OnRaycastExit ( )
virtual

Called on the first frame that this CellexalRaycastable is not hit by a CellexalRaycast anymore.

Reimplemented from CellexalVR.Interaction.CellexalRaycastable.

◆ OnRaycastHit()

override void CellexalVR.Interaction.HeatmapRaycast.OnRaycastHit ( RaycastHit  hitInfo,
CellexalRaycast  raycaster 
)
virtual

Called by CellexalRaycast.Update every frame that a raycast hit this target.

Parameters
hitInfoThe RaycastHit from the Physics.Raycast call.
raycasterThe CellexalRaycast that made the Physics.Raycast call.

Reimplemented from CellexalVR.Interaction.CellexalRaycastable.


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