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

Represents a button that toggles arcs between networks. More...

Inheritance diagram for CellexalVR.Menu.Buttons.Networks.ToggleArcsButton:
CellexalVR.Menu.Buttons.CellexalButton CellexalVR.Interaction.CellexalRaycastable

Public Member Functions

override void Click ()
 Handles what happens when the user points the controller towards the button and presses the trigger. More...
 
bool ConnectTo (ToggleArcsButton other)
 Connects this button (and the network it represents) with the previously clicked button (and network). More...
 
void ClearArcs ()
 
void SetNetwork (NetworkCenter network)
 Sets which network's arcs this button should toggle. More...
 
override void SetHighlighted (bool highlight)
 Highlights or unhighlights this button. More...
 
- Public Member Functions inherited from CellexalVR.Menu.Buttons.CellexalButton
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...
 
virtual void SetButtonActivated (bool activate)
 Activates or deactivates this button. Changes the sprite and makes the button not able to invoke Click until it is activated again. More...
 
void StoreState ()
 
void ToggleOutline (bool toggle, bool legend=false)
 To synchronise the outline in multi-user mode. So the outline doesnt get active unless the other users menu or tab is active. More...
 
- Public Member Functions inherited from CellexalVR.Interaction.CellexalRaycastable
virtual void OnRaycastHit (RaycastHit hitInfo, CellexalRaycast raycaster)
 Called by CellexalRaycast.Update every frame that a raycast hit this target. More...
 

Public Attributes

bool toggleToState
 
List< GameObject > wires
 
ToggleAllCombinedArcsButton combinedNetworksButton
 
NetworkCenter network
 
bool selected
 
- 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 storedState
 
bool controllerInside = false
 
- Public Attributes inherited from CellexalVR.Interaction.CellexalRaycastable
UnityEvent OnActivate
 
UnityEvent RaycastEnter
 
UnityEvent RaycastExit
 
bool canBePushedAndPulled = true
 
bool active = true
 

Protected Attributes

override string Description => ""
 
- Protected Attributes inherited from CellexalVR.Menu.Buttons.CellexalButton
SpriteRenderer spriteRenderer
 
MeshRenderer meshRenderer
 

Properties

Color ButtonColor [get, set]
 
- Properties inherited from CellexalVR.Menu.Buttons.CellexalButton
abstract string Description [get]
 A string that briefly explains what this button does. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CellexalVR.Menu.Buttons.CellexalButton
virtual void Awake ()
 
virtual void HelpClick ()
 
void Exit ()
 

Detailed Description

Represents a button that toggles arcs between networks.

Member Function Documentation

◆ Click()

override void CellexalVR.Menu.Buttons.Networks.ToggleArcsButton.Click ( )
virtual

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

Implements CellexalVR.Menu.Buttons.CellexalButton.

◆ ConnectTo()

bool CellexalVR.Menu.Buttons.Networks.ToggleArcsButton.ConnectTo ( ToggleArcsButton  other)

Connects this button (and the network it represents) with the previously clicked button (and network).

Parameters
otherThe other button representing the first network that was clicked.
Returns
True if a connection was possible, false if not.

◆ SetHighlighted()

override void CellexalVR.Menu.Buttons.Networks.ToggleArcsButton.SetHighlighted ( bool  highlight)
virtual

Highlights or unhighlights this button.

Parameters
highlightTrue to hightlight, false to reset highlighting.

Reimplemented from CellexalVR.Menu.Buttons.CellexalButton.

◆ SetNetwork()

void CellexalVR.Menu.Buttons.Networks.ToggleArcsButton.SetNetwork ( NetworkCenter  network)

Sets which network's arcs this button should toggle.


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