CellexalVR
1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
Represents the sub menu that pops up when the AttributeMenuButton is pressed. More...
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< ColorByBooleanExpressionButton > | booleanExpressionButtons |
Protected Attributes inherited from CellexalVR.Menu.SubMenus.MenuWithTabs | |
MenuToggler | menuToggler |
List< Tab > | tabs = 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< CellexalButton > | cellexalButtons = 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 () |
Represents the sub menu that pops up when the AttributeMenuButton is pressed.
|
virtual |
Creates a number of tabs with buttons from a list of strings.
categoriesAndNames | An array of strings, category and name should be separated with a @, e.g. category_1@name_1
|
Reimplemented from CellexalVR.Menu.SubMenus.MenuWithTabs.
|
virtual |
Destroys all tabs in this menu.
Reimplemented from CellexalVR.Menu.SubMenus.MenuWithTabs.
void CellexalVR.Menu.SubMenus.AttributeSubMenu.EvaluateExpression | ( | ) |
Evaluate the current boolean expression (if we are in boolean expression mode).
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.
IEnumerator CellexalVR.Menu.SubMenus.AttributeSubMenu.SelectAllAttributesCoroutine | ( | bool | toggle | ) |
Coroutine. Selects all attributes in the menu that are in the currently open tab (category).
toggle | True for coloring according to all attributes, false to reset colors of all graphs. |
void CellexalVR.Menu.SubMenus.AttributeSubMenu.SwitchButtonStates | ( | bool | bigFolder = false | ) |
Switches all buttons between boolean expression and single attribute mode.