UnityMol  0.9.6-875
UnityMol viewer / In developement
ColorPicker Class Reference
+ Collaboration diagram for ColorPicker:

Public Member Functions

 ColorPicker (int xstart, int ystart, int width, int height, ColorObject colorObj, List< string > atoms, string residue="All", string chain="All", string title="Color Picker", int caller=-1)
 
 ColorPicker (Rect r, ColorObject colorObj, List< string > atoms, string residue="All", string chain="All", string title="Color Picker", int caller=-1)
 
void SwitchEnable (int caller)
 
void OnGUI ()
 
void loadColor (int a)
 

Public Attributes

bool changed = false
 

Properties

bool enabled [get, set]
 
ColorObject color [get, set]
 

Private Attributes

Texture2D m_aTexture
 
Rect m_text_area = new Rect(5, 45, 228, 228)
 
Rect m_close_area = new Rect(5, 20, 50, 20)
 
Rect m_r_area = new Rect(60, 20, 50, 20)
 
Rect m_g_area = new Rect(115, 20, 50, 20)
 
Rect m_b_area = new Rect(170, 20, 50, 20)
 
int m_r_value = 255
 
int m_g_value = 255
 
int m_b_value = 255
 
Rect m_activeArea
 
Rect m_rect
 
string m_title
 
bool m_enabled
 
int callId
 
List< string > m_atoms = new List<string>()
 
string m_residue = "All"
 
string m_chain = "All"
 
Camera mainCamera = null
 
ColorObject m_colorObj
 

Detailed Description

Definition at line 74 of file ColorPicker.cs.

Constructor & Destructor Documentation

ColorPicker.ColorPicker ( int  xstart,
int  ystart,
int  width,
int  height,
ColorObject  colorObj,
List< string >  atoms,
string  residue = "All",
string  chain = "All",
string  title = "Color Picker",
int  caller = -1 
)

Definition at line 123 of file ColorPicker.cs.

References ColorObject.color, and enabled.

ColorPicker.ColorPicker ( Rect  r,
ColorObject  colorObj,
List< string >  atoms,
string  residue = "All",
string  chain = "All",
string  title = "Color Picker",
int  caller = -1 
)

Definition at line 142 of file ColorPicker.cs.

References ColorObject.color, and enabled.

Member Function Documentation

void ColorPicker.loadColor ( int  a)

Definition at line 233 of file ColorPicker.cs.

References UI.GUIMoleculeController.m_colorPicker, and Molecule.Model.MoleculeModel.newtooltip.

Referenced by OnGUI().

+ Here is the caller graph for this function:

void ColorPicker.OnGUI ( )

Definition at line 167 of file ColorPicker.cs.

References UI.UIData.atomtype, ColorObject.color, enabled, UnityMolMain.getCurrentAtomManager(), loadColor(), BallUpdate.number, ClickAtom.objList, GenericManager.SetColor(), and UI.GUIMoleculeController.toggle_NA_CLICK.

Referenced by UI.GUIMoleculeController.DisplayGUI().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ColorPicker.SwitchEnable ( int  caller)

Definition at line 161 of file ColorPicker.cs.

References enabled.

Member Data Documentation

int ColorPicker.callId
private

Definition at line 89 of file ColorPicker.cs.

bool ColorPicker.changed = false

Definition at line 90 of file ColorPicker.cs.

Referenced by ElectrostaticOldGUI.FieldLines(), and SurfaceOldGUI.SurfaceParams().

Rect ColorPicker.m_activeArea
private

Definition at line 85 of file ColorPicker.cs.

Texture2D ColorPicker.m_aTexture
private

Definition at line 76 of file ColorPicker.cs.

List<string> ColorPicker.m_atoms = new List<string>()
private

Definition at line 92 of file ColorPicker.cs.

Rect ColorPicker.m_b_area = new Rect(170, 20, 50, 20)
private

Definition at line 81 of file ColorPicker.cs.

int ColorPicker.m_b_value = 255
private

Definition at line 84 of file ColorPicker.cs.

string ColorPicker.m_chain = "All"
private

Definition at line 94 of file ColorPicker.cs.

Rect ColorPicker.m_close_area = new Rect(5, 20, 50, 20)
private

Definition at line 78 of file ColorPicker.cs.

ColorObject ColorPicker.m_colorObj
private

Definition at line 110 of file ColorPicker.cs.

bool ColorPicker.m_enabled
private

Definition at line 88 of file ColorPicker.cs.

Rect ColorPicker.m_g_area = new Rect(115, 20, 50, 20)
private

Definition at line 80 of file ColorPicker.cs.

int ColorPicker.m_g_value = 255
private

Definition at line 83 of file ColorPicker.cs.

Rect ColorPicker.m_r_area = new Rect(60, 20, 50, 20)
private

Definition at line 79 of file ColorPicker.cs.

int ColorPicker.m_r_value = 255
private

Definition at line 82 of file ColorPicker.cs.

Rect ColorPicker.m_rect
private

Definition at line 86 of file ColorPicker.cs.

string ColorPicker.m_residue = "All"
private

Definition at line 93 of file ColorPicker.cs.

Rect ColorPicker.m_text_area = new Rect(5, 45, 228, 228)
private

Definition at line 77 of file ColorPicker.cs.

string ColorPicker.m_title
private

Definition at line 87 of file ColorPicker.cs.

Camera ColorPicker.mainCamera = null
private

Definition at line 95 of file ColorPicker.cs.

Property Documentation

ColorObject ColorPicker.color
getset

Definition at line 112 of file ColorPicker.cs.

Referenced by UI.GUIDisplay.AtomScales().

bool ColorPicker.enabled
getset

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