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

Abstract class that all panels around the keyboard should inherit. More...

Inheritance diagram for CellexalVR.Interaction.ClickablePanel:
CellexalVR.Interaction.CellexalRaycastable CellexalVR.Interaction.AnnotatePanel CellexalVR.Interaction.ClearAnnotationsPanel CellexalVR.Interaction.ClearExpressionColoursPanel CellexalVR.Interaction.ClickableHistoryPanel CellexalVR.Interaction.ClickableReportPanel CellexalVR.Interaction.ClickableTextPanel CellexalVR.Interaction.ColoringOptionsPanel CellexalVR.Interaction.CorrelatedGenesPanel CellexalVR.Interaction.ExportAnnotationPanel CellexalVR.Interaction.KeyboardPanel CellexalVR.Interaction.PresetClickableTextPanel CellexalVR.Interaction.PreviousSearchesLock

Public Member Functions

virtual void SetMaterials (Material keyNormalMaterial, Material keyHighlightMaterial, Material keyPressedMaterial, Vector4 scaleCorrection)
 Sets this panel's materials. More...
 
virtual void Click ()
 Called when the user points the controller towards this panel and presses the trigger. More...
 
override void OnRaycastEnter ()
 Called on the first frame that this CellexalRaycastable is hit by a CellexalRaycast. More...
 
override void OnRaycastExit ()
 Called on the first frame that this CellexalRaycastable is not hit by a CellexalRaycast anymore. More...
 
override void OnRaycastHit (RaycastHit hitInfo, CellexalRaycast raycaster)
 Called by CellexalRaycast.Update every frame that a raycast hit this target. More...
 
virtual void SetHighlighted (bool highlight)
 Sets this panel to highlighted or not highlighted. More...
 
virtual void SetPressed (bool pressed)
 Sets this panel to pressed or not pressed. More...
 

Public Attributes

ReferenceManager referenceManager
 
KeyboardHandler handler
 
- Public Attributes inherited from CellexalVR.Interaction.CellexalRaycastable
UnityEvent OnActivate
 
UnityEvent RaycastEnter
 
UnityEvent RaycastExit
 
bool canBePushedAndPulled = true
 
bool active = true
 

Protected Member Functions

virtual void Start ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Protected Attributes

new Renderer renderer
 
Material keyNormalMaterial
 
Material keyHighlightMaterial
 
Material keyPressedMaterial
 

Static Protected Attributes

static Vector4 PulseAndLaserCoords
 

Properties

Vector2 CenterUV [get, set]
 

Detailed Description

Abstract class that all panels around the keyboard should inherit.

Member Function Documentation

◆ Click()

◆ OnRaycastEnter()

override void CellexalVR.Interaction.ClickablePanel.OnRaycastEnter ( )
virtual

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

Reimplemented from CellexalVR.Interaction.CellexalRaycastable.

◆ OnRaycastExit()

override void CellexalVR.Interaction.ClickablePanel.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.ClickablePanel.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.

◆ SetHighlighted()

virtual void CellexalVR.Interaction.ClickablePanel.SetHighlighted ( bool  highlight)
virtual

Sets this panel to highlighted or not highlighted.

Parameters
highlightTrue for highlighted, false for not highlighted.

◆ SetMaterials()

virtual void CellexalVR.Interaction.ClickablePanel.SetMaterials ( Material  keyNormalMaterial,
Material  keyHighlightMaterial,
Material  keyPressedMaterial,
Vector4  scaleCorrection 
)
virtual

Sets this panel's materials.

Parameters
keyNormalMaterialThe normal material.
keyHighlightMaterialThe material that should be used when the laser pointer is pointed at the button.
keyPressedMaterialThe material that should be used when the panel is pressed.

Reimplemented in CellexalVR.Interaction.PreviousSearchesLock.

◆ SetPressed()

virtual void CellexalVR.Interaction.ClickablePanel.SetPressed ( bool  pressed)
virtual

Sets this panel to pressed or not pressed.

Parameters
pressedTrue for pressed, false for not pressed.

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