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

Represents a menu that has tabs. Tabs are meant to function much like tabs in a web browser. More...

Inheritance diagram for CellexalVR.Menu.SubMenus.MenuWithTabs:
CellexalVR.Menu.SubMenus.SubMenu CellexalVR.Menu.SubMenus.AttributeSubMenu CellexalVR.Menu.SubMenus.ColorByCellStatMenu CellexalVR.Menu.SubMenus.ColorByIndexMenu CellexalVR.Menu.SubMenus.ColorPickerSubMenu CellexalVR.Menu.SubMenus.GraphFromMarkersMenu CellexalVR.Menu.SubMenus.ToggleArcsSubMenu

Public Member Functions

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
virtual CellexalButton FindButton (string name)
 
void SetUnderlyingContentActive (bool active)
 Activate or deactivate the buttons that are underneath this menu. More...
 

Public Attributes

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 ()
 

Protected Attributes

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>()
 

Additional Inherited Members

- Properties inherited from CellexalVR.Menu.SubMenus.SubMenu
bool Active [get, set]
 
bool Attached [get, set]
 

Detailed Description

Represents a menu that has tabs. Tabs are meant to function much like tabs in a web browser.

Member Function Documentation

◆ AddTab< T >()

virtual T CellexalVR.Menu.SubMenus.MenuWithTabs.AddTab< T > ( tabPrefab)
virtual

Adds a tab to this menu.

Template Parameters
TThe type of the tab. This type must derive from Tab.
Parameters
tabPrefabThe prefab used as template.
Returns
A reference to the created tab. The created tab will have the type T.
Type Constraints
T :Tab 

◆ ChangePage()

void CellexalVR.Menu.SubMenus.MenuWithTabs.ChangePage ( int  dir)

Changes the current tab some number of tabs in a gived direction.

Parameters
dirThe number of tabs to move, negative numbers will move backwards.

◆ CreateButtons()

virtual void CellexalVR.Menu.SubMenus.MenuWithTabs.CreateButtons ( string[]  categoriesAndNames)
virtual

Creates a number of tabs with buttons from a list of strings.

Parameters
categoriesAndNamesAn array of strings, category and name should be separated with a @, e.g.
category_1@name_1

Reimplemented in CellexalVR.Menu.SubMenus.ColorByCellStatMenu, CellexalVR.Menu.SubMenus.ColorByIndexMenu, CellexalVR.Menu.SubMenus.AttributeSubMenu, and CellexalVR.Menu.SubMenus.GraphFromMarkersMenu.

◆ DestroyTab()

virtual void CellexalVR.Menu.SubMenus.MenuWithTabs.DestroyTab ( string  networkName)
virtual

Destroys one tab.

The name of the tab to be destroyed (same as the network name corresponding to the tab).

◆ DestroyTabs()

virtual void CellexalVR.Menu.SubMenus.MenuWithTabs.DestroyTabs ( )
virtual

Destroys all tabs.

Reimplemented in CellexalVR.Menu.SubMenus.AttributeSubMenu.

◆ ResetTabButtonPosition()

virtual void CellexalVR.Menu.SubMenus.MenuWithTabs.ResetTabButtonPosition ( )
virtual

Reset the position of where the next tab button should be created.

◆ SetMenuActive()

override void CellexalVR.Menu.SubMenus.MenuWithTabs.SetMenuActive ( bool  active)
virtual

Sets this submenu to visible or invisible.

Parameters
activeTrue for visible, false for invisible.

Reimplemented from CellexalVR.Menu.SubMenus.SubMenu.

◆ TurnOffAllTabs()

void CellexalVR.Menu.SubMenus.MenuWithTabs.TurnOffAllTabs ( )

Turns off all tabs.


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