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

Represents the sub menu that pops up when the AttributeMenuButton is pressed. More...

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

Public Member Functions

void RecreateButtons ()
 
override void CreateButtons (string[] categoriesAndNames)
 Creates a number of tabs with buttons from a list of strings. More...
 
override CellexalButton FindButton (string name)
 
override void DestroyTabs ()
 Destroys all tabs in this menu. More...
 
void SwitchButtonStates (bool bigFolder=false)
 Switches all buttons between boolean expression and single attribute mode. More...
 
BooleanExpression.Expr GetExpression ()
 Builds a tree of and expressions and not expressions that corresponds to the current state of the attribute buttons. More...
 
void EvaluateExpression ()
 Evaluate the current boolean expression (if we are in boolean expression mode). More...
 
IEnumerator SelectAllAttributesCoroutine (bool toggle)
 Coroutine. Selects all attributes in the menu that are in the currently open tab (category). More...
 
- Public Member Functions inherited from CellexalVR.Menu.SubMenus.MenuWithTabs
virtual T AddTab< T > (T tabPrefab)
 Adds a tab to this menu. More...
 
virtual void DestroyTab (string networkName)
 Destroys one tab. 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

ColorByBooleanExpressionButton booleanExpressionButtonPrefab
 
Tab booleanExpressionTabPrefab
 
List< string > attributes
 
- 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 Attributes

List< ColorByBooleanExpressionButtonbooleanExpressionButtons
 
- 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

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

Additional Inherited Members

- Protected Member Functions inherited from CellexalVR.Menu.SubMenus.MenuWithTabs
override void Start ()
 

Detailed Description

Represents the sub menu that pops up when the AttributeMenuButton is pressed.

Member Function Documentation

◆ CreateButtons()

override void CellexalVR.Menu.SubMenus.AttributeSubMenu.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 from CellexalVR.Menu.SubMenus.MenuWithTabs.

◆ DestroyTabs()

override void CellexalVR.Menu.SubMenus.AttributeSubMenu.DestroyTabs ( )
virtual

Destroys all tabs in this menu.

Reimplemented from CellexalVR.Menu.SubMenus.MenuWithTabs.

◆ EvaluateExpression()

void CellexalVR.Menu.SubMenus.AttributeSubMenu.EvaluateExpression ( )

Evaluate the current boolean expression (if we are in boolean expression mode).

◆ GetExpression()

BooleanExpression.Expr CellexalVR.Menu.SubMenus.AttributeSubMenu.GetExpression ( )

Builds a tree of and expressions and not expressions that corresponds to the current state of the attribute buttons.

Returns
A reference to the root of the tree of the resulting expression.

◆ SelectAllAttributesCoroutine()

IEnumerator CellexalVR.Menu.SubMenus.AttributeSubMenu.SelectAllAttributesCoroutine ( bool  toggle)

Coroutine. Selects all attributes in the menu that are in the currently open tab (category).

Parameters
toggleTrue for coloring according to all attributes, false to reset colors of all graphs.

◆ SwitchButtonStates()

void CellexalVR.Menu.SubMenus.AttributeSubMenu.SwitchButtonStates ( bool  bigFolder = false)

Switches all buttons between boolean expression and single attribute mode.


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