CellexalVR  0.13.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.Menu.Buttons.CellexalToolButton Class Reference

Abstract general purpose class that represents a tool button on the menu. Tool buttons have to keep track of the controller model unlike the other buttons. More...

Inheritance diagram for CellexalVR.Menu.Buttons.CellexalToolButton:
CellexalVR.Menu.Buttons.CellexalButton CellexalVR.Menu.Buttons.Drawing.DrawToolButton CellexalVR.Menu.Buttons.Selection.SelectionToolButton CellexalVR.Menu.Buttons.Tools.DeleteToolButton CellexalVR.Menu.Buttons.Tools.KeyboardButton CellexalVR.Menu.Buttons.Tools.LasersButton CellexalVR.Menu.Buttons.Tools.MinimizeToolButton CellexalVR.Menu.Buttons.Tools.WebBrowserButton

Public Member Functions

override void Click ()
 Handles what happens when the user points the controller towards the button and presses the trigger. More...
 
override void SetHighlighted (bool highlight)
 
override void SetButtonActivated (bool activate)
 
- Public Member Functions inherited from CellexalVR.Menu.Buttons.CellexalButton
void StoreState ()
 
void ToggleOutline (bool toggle)
 To synchronise the outline in multi-user mode. So the outline doesnt get active if the other users menu or tab is active. More...
 

Public Attributes

Sprite activatedTexture = null
 
Sprite highlightActivatedTexture = null
 
Color meshActivatedColor = Color.blue
 
bool toolActivated
 
- Public Attributes inherited from CellexalVR.Menu.Buttons.CellexalButton
ReferenceManager referenceManager
 
TMPro.TextMeshPro descriptionText
 
GameObject infoMenu
 
GameObject activeOutline
 
Color meshStandardColor = Color.black
 
Color meshHighlightColor = Color.white
 
Color meshDeactivatedColor = Color.grey
 
Sprite standardTexture = null
 
Sprite highlightedTexture = null
 
Sprite deactivatedTexture = null
 
int popupChoice = 0
 
bool buttonActivated = true
 
bool storedState
 
bool controllerInside = false
 

Protected Member Functions

override void Awake ()
 
void TurnOn ()
 
void TurnOff ()
 
- Protected Member Functions inherited from CellexalVR.Menu.Buttons.CellexalButton
virtual void Update ()
 
virtual void HelpClick ()
 
void OnTriggerEnter (Collider other)
 
void Exit ()
 
void OnTriggerExit (Collider other)
 

Protected Attributes

ControllerModelSwitcher controllerModelSwitcher
 
- Protected Attributes inherited from CellexalVR.Menu.Buttons.CellexalButton
SteamVR_TrackedObject rightController
 
SteamVR_Controller.Device device
 
SpriteRenderer spriteRenderer
 
MeshRenderer meshRenderer
 

Properties

abstract ControllerModelSwitcher.Model ControllerModel [get]
 
- Properties inherited from CellexalVR.Menu.Buttons.CellexalButton
abstract string Description [get]
 A string that briefly explains what this button does. More...
 

Detailed Description

Abstract general purpose class that represents a tool button on the menu. Tool buttons have to keep track of the controller model unlike the other buttons.

Member Function Documentation

◆ Click()

override void CellexalVR.Menu.Buttons.CellexalToolButton.Click ( )
virtual

Handles what happens when the user points the controller towards the button and presses the trigger.

Implements CellexalVR.Menu.Buttons.CellexalButton.

Reimplemented in CellexalVR.Menu.Buttons.Tools.WebBrowserButton, and CellexalVR.Menu.Buttons.Tools.KeyboardButton.


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