CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.DesktopUI.ColorPickerButtonBase Class Reference
Inheritance diagram for CellexalVR.DesktopUI.ColorPickerButtonBase:
CellexalVR.DesktopUI.ColorPickerButton

Public Types

enum  GradientColor { COLOR1, COLOR2, COLOR3 }
 
enum  ConfigColor {
  NONE, HEATMAP_HIGH, HEATMAP_MID, HEATMAP_LOW,
  GRAPH_HIGH, GRAPH_MID, GRAPH_LOW, GRAPH_ZERO,
  GRAPH_DEFAULT, SELECTION, NETWORK_POSITIVE_HIGH, NETWORK_POSITIVE_LOW,
  NETWORK_NEGATIVE_HIGH, NETWORK_NEGATIVE_LOW, VELOCITY_HIGH, VELOCITY_LOW,
  SKYBOX_TINT
}
 

Public Member Functions

virtual void FinalizeChoice ()
 Finalizes the color selection. Should be called when the user is done selection a color to set the internal value. More...
 

Public Attributes

ReferenceManager referenceManager
 
GradientColor gradientColor
 
GameObject gradient
 
ConfigColor colorField
 
int selectionToolColorIndex
 

Protected Member Functions

void OnValidate ()
 
void Start ()
 

Protected Attributes

Color color
 
Material gradientMaterial
 
ColorPicker colorPicker
 
HeatmapGenerator heatmapGenerator
 
GraphGenerator graphGenerator
 
NetworkGenerator networkGenerator
 
SelectionToolCollider selectionToolCollider
 
SettingsMenu settingsMenu
 

Properties

virtual Color Color [get, set]
 Updates the choice of color. Setting this property does not update the internal value. Make sure to call FinalizeChoice for that. More...
 

Member Function Documentation

◆ FinalizeChoice()

virtual void CellexalVR.DesktopUI.ColorPickerButtonBase.FinalizeChoice ( )
virtual

Finalizes the color selection. Should be called when the user is done selection a color to set the internal value.

Reimplemented in CellexalVR.DesktopUI.ColorPickerButton.

Property Documentation

◆ Color

virtual Color CellexalVR.DesktopUI.ColorPickerButtonBase.Color
getset

Updates the choice of color. Setting this property does not update the internal value. Make sure to call FinalizeChoice for that.

The reason for this split functionality is that the FinalizeChoice method calls some relatively performance heavy functions, while this property could be called once every frame to constantly update the visuals of the button.


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