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

This class represents the sub menu that pops up when the ToggleArcsButton is pressed. More...

Inheritance diagram for CellexalVR.Menu.SubMenus.ToggleArcsSubMenu:
CellexalVR.Menu.SubMenus.MenuWithTabs CellexalVR.Menu.SubMenus.SubMenu

Public Member Functions

void NetworkArcsButtonClicked (ToggleArcsButton clickedButton)
 When one network button is clicked a line is spawned to be connected to another. Once a second network button is clicked the two are connected and a line is spawned between them. More...
 
void NetworkArcsButtonClickedMultiUser (string buttonName)
 
void DisableNetworkArcsButtonClicked ()
 A network button that removes all connections from the previously clicked network. More...
 
void ToggleAllArcs (bool toggle)
 Connects/Disconnects all networks. Combined arcs can not be active at the same time so they are disabled. More...
 
void CreateToggleArcsButtons (NetworkCenter[] networks)
 Creates new buttons for toggling arcs. More...
 
void RefreshTabs ()
 Removes all tab buttons and creates new ones from the list of network handlers active in the scene. More...
 
new ToggleArcsButton FindButton (string buttonName)
 
- Public Member Functions inherited from CellexalVR.Menu.SubMenus.MenuWithTabs
virtual void CreateButtons (string[] categoriesAndNames)
 Creates a number of tabs with buttons from a list of strings. More...
 
virtual T AddTab< T > (T tabPrefab)
 Adds a tab to this menu. More...
 
virtual void DestroyTab (string networkName)
 Destroys one tab. More...
 
virtual void DestroyTabs ()
 Destroys all tabs. More...
 
override void SetMenuActive (bool active)
 Sets this submenu to visible or invisible. More...
 
virtual void ResetTabButtonPosition ()
 Reset the position of where the next tab button should be created. More...
 
void TurnOffAllTabs ()
 Turns off all tabs. More...
 
void ChangePage (int dir)
 Changes the current tab some number of tabs in a gived direction. More...
 
- Public Member Functions inherited from CellexalVR.Menu.SubMenus.SubMenu
void SetUnderlyingContentActive (bool active)
 Activate or deactivate the buttons that are underneath this menu. More...
 

Public Attributes

GameObject buttonPrefab
 
GameObject wirePrefab
 
RemoveNetworkArcsButton removeNetworkArcsButton
 
List< ToggleArcsButtontoggleArcButtonList = new List<ToggleArcsButton>()
 
- Public Attributes inherited from CellexalVR.Menu.SubMenus.MenuWithTabs
Tab tabPrefab
 
GameObject nextPageButton
 
GameObject prevPageButton
 
TextMeshPro pageNrText
 
string[] categoriesAndNames
 
string currentCategory
 
CellexalButton prefab
 
- Public Attributes inherited from CellexalVR.Menu.SubMenus.SubMenu
ReferenceManager referenceManager
 
GameObject buttonsToDeactivate
 
GameObject textmeshToDarken
 

Protected Member Functions

override void Start ()
 

Additional Inherited Members

- Protected Attributes inherited from CellexalVR.Menu.SubMenus.MenuWithTabs
MenuToggler menuToggler
 
List< Tabtabs = new List<Tab>()
 
Vector3 tabButtonPos = new Vector3(-0.309f, 1f, 0.325f)
 
Vector3 tabButtonPosOriginal = new Vector3(-0.309f, 1f, 0.325f)
 
Vector3 tabButtonPosInc = new Vector3(0.2f, 0, 0)
 
int buttonsPerTab = 20
 
string[] names
 
string[] categories
 
string[] orderedNames
 
Dictionary< string, List< string > > categoriesAndNamesDict
 
Dictionary< string, List< string > > orderedNamesCategoriesAndNamesDict
 
- Protected Attributes inherited from CellexalVR.Menu.SubMenus.SubMenu
List< CellexalButtoncellexalButtons = new List<CellexalButton>()
 
- Properties inherited from CellexalVR.Menu.SubMenus.SubMenu
bool Active [get, set]
 
bool Attached [get, set]
 

Detailed Description

This class represents the sub menu that pops up when the ToggleArcsButton is pressed.

Member Function Documentation

◆ CreateToggleArcsButtons()

void CellexalVR.Menu.SubMenus.ToggleArcsSubMenu.CreateToggleArcsButtons ( NetworkCenter[]  networks)

Creates new buttons for toggling arcs.

Parameters
networksAn array containing the networks.

◆ DisableNetworkArcsButtonClicked()

void CellexalVR.Menu.SubMenus.ToggleArcsSubMenu.DisableNetworkArcsButtonClicked ( )

A network button that removes all connections from the previously clicked network.

◆ NetworkArcsButtonClicked()

void CellexalVR.Menu.SubMenus.ToggleArcsSubMenu.NetworkArcsButtonClicked ( ToggleArcsButton  clickedButton)

When one network button is clicked a line is spawned to be connected to another. Once a second network button is clicked the two are connected and a line is spawned between them.

Parameters
clickedButton

◆ RefreshTabs()

void CellexalVR.Menu.SubMenus.ToggleArcsSubMenu.RefreshTabs ( )

Removes all tab buttons and creates new ones from the list of network handlers active in the scene.

◆ ToggleAllArcs()

void CellexalVR.Menu.SubMenus.ToggleArcsSubMenu.ToggleAllArcs ( bool  toggle)

Connects/Disconnects all networks. Combined arcs can not be active at the same time so they are disabled.

Parameters
toggle

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