CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs Class Reference
Inheritance diagram for CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs:
CellexalVR.Interaction.CellexalRaycastable CellexalVR.AnalysisLogic.BoxPlotManager CellexalVR.AnalysisObjects.LegendManager

Public Member Functions

void SetTabButtonPositions (bool overrideShowScrollButtons=false)
 Recalculates tabButtonPositions and tabScrollPositions. Should be called if an EnvironmentTab is added or removed. More...
 
void MoveTabButtons ()
 Moves all tab button gameobjects to their correct positions. This function moves all tab buttons, visible and hidden, and sets the disables the hidden ones with GameObject.SetActive(bool). More...
 
EnvironmentTab AddTab ()
 Adds a new tab to this menu, using the tabPrefab. More...
 
void SwitchToTab (EnvironmentTab tab)
 Switches to the specified tab by disabling the content of all others, and enabling the content of the specified tab. More...
 
void ScrollTabs (int direction)
 Scrolls the tab buttons. More...
 
void TurnOffAllTabs ()
 Dsiables the content gameobject on all tabs. 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...
 
virtual void OnRaycastEnter ()
 Called on the first frame that this CellexalRaycastable is hit by a CellexalRaycast. More...
 
virtual void OnRaycastExit ()
 Called on the first frame that this CellexalRaycastable is not hit by a CellexalRaycast anymore. More...
 

Public Attributes

List< EnvironmentTabtabs
 
EnvironmentTab tabPrefab
 
EnvironmentTabScrollButton tabScrollButton1
 
EnvironmentTabScrollButton tabScrollButton2
 
float tabScrollTime = 0.5f
 
Vector3 tabButtonSize = new Vector3(0.1f, 0f, 0f)
 
Vector3 tabButtonPositionIncrement
 
Vector3 tabButtonBoundsCenter
 
Vector3 tabButtonBoundsSize
 
Vector3[] tabButtonPositions
 
Vector3[] tabScrollPositions
 
- Public Attributes inherited from CellexalVR.Interaction.CellexalRaycastable
UnityEvent OnActivate
 
UnityEvent RaycastEnter
 
UnityEvent RaycastExit
 
bool canBePushedAndPulled = true
 
bool active = true
 

Member Function Documentation

◆ AddTab()

EnvironmentTab CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.AddTab ( )

Adds a new tab to this menu, using the tabPrefab.

Returns
The instantiated EnvironmentTab

◆ MoveTabButtons()

void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.MoveTabButtons ( )

Moves all tab button gameobjects to their correct positions. This function moves all tab buttons, visible and hidden, and sets the disables the hidden ones with GameObject.SetActive(bool).

◆ ScrollTabs()

void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.ScrollTabs ( int  direction)

Scrolls the tab buttons.

Parameters
directionThe number of tab buttons to scroll, positive numbers will scroll towards higher indices, negative numbers scroll towards lower indices.
Exceptions
System.ArgumentExceptionThrown if direction is 0.

◆ SetTabButtonPositions()

void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.SetTabButtonPositions ( bool  overrideShowScrollButtons = false)

Recalculates tabButtonPositions and tabScrollPositions. Should be called if an EnvironmentTab is added or removed.

◆ SwitchToTab()

void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.SwitchToTab ( EnvironmentTab  tab)

Switches to the specified tab by disabling the content of all others, and enabling the content of the specified tab.

Parameters
tabThe tab to enable.

◆ TurnOffAllTabs()

void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.TurnOffAllTabs ( )

Dsiables the content gameobject on all tabs.


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