CellexalVR  0.13.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.DesktopUI.ColorPicker Class Reference

This class controls the color picker that is used in the settings menu. More...

Inheritance diagram for CellexalVR.DesktopUI.ColorPicker:

Public Member Functions

void UpdateComponents ()
 Updates all visual components in the color picker. More...
 
void HandleRGBBox ()
 Handles what happens when the user is done editting the RGB-text box More...
 
void SetColor (Color newColor)
 Sets the current color of the color picker. Also updates all visual components. More...
 
Color GetColor ()
 Gets the currently selected color. More...
 
void MoveToDesiredPosition (Vector3 desired)
 Moves the color picker to a position on the screen. The color pickers lower left corner will be at desired . The color picker may be moved to fit inside the screen. More...
 

Public Attributes

GameObject satValBox
 
GameObject previewColorBox
 
TMPro.TMP_InputField rgbCodeBox
 
GameObject satValMarker
 
GameObject hueMarker
 
ColorPickerButton activeButton
 

Detailed Description

This class controls the color picker that is used in the settings menu.

Member Function Documentation

◆ GetColor()

Color CellexalVR.DesktopUI.ColorPicker.GetColor ( )

Gets the currently selected color.

Returns
The currently selected color.

◆ HandleRGBBox()

void CellexalVR.DesktopUI.ColorPicker.HandleRGBBox ( )

Handles what happens when the user is done editting the RGB-text box

◆ MoveToDesiredPosition()

void CellexalVR.DesktopUI.ColorPicker.MoveToDesiredPosition ( Vector3  desired)

Moves the color picker to a position on the screen. The color pickers lower left corner will be at desired . The color picker may be moved to fit inside the screen.

Parameters
desiredThe desired position of the color picker.

◆ SetColor()

void CellexalVR.DesktopUI.ColorPicker.SetColor ( Color  newColor)

Sets the current color of the color picker. Also updates all visual components.

Parameters
newColorThe new color.

◆ UpdateComponents()

void CellexalVR.DesktopUI.ColorPicker.UpdateComponents ( )

Updates all visual components in the color picker.


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