UnityMol  0.9.6-875
UnityMol viewer / In developement
Molecule.Model.AtomModel Class Reference

Static Public Member Functions

static void ChangeChainColor (string chain, Color c)
 
static Color GetChainColor (string chain)
 
static void ChangeAtomColor (string atomType, Color c)
 
static Color GetAtomColor (string atomType)
 
static bool IsAlive ()
 
static void InitAtomic ()
 
static void InitHiRERNA ()
 
static AtomModel GetModel (string type)
 

Protected Attributes

string _type
 
float _radius
 
float _scale
 
Color _baseColor
 
string _baseTexture
 

Properties

string type [get]
 
float radius [get, set]
 
float scale [get, set]
 
Color baseColor [get, set]
 
string baseTexture [get, set]
 

Private Member Functions

 AtomModel (string type, float radius, float scale, Color col, string texture)
 

Static Private Attributes

static OrderedDictionary s_typeToModel = null
 

Detailed Description

Definition at line 72 of file AtomModel.cs.

Constructor & Destructor Documentation

Molecule.Model.AtomModel.AtomModel ( string  type,
float  radius,
float  scale,
Color  col,
string  texture 
)
private

Definition at line 103 of file AtomModel.cs.

Member Function Documentation

static void Molecule.Model.AtomModel.ChangeAtomColor ( string  atomType,
Color  c 
)
static

Changes the color of the atom type.

Parameters
atomTypeAtom type.
cNew color of the atom type.

Definition at line 150 of file AtomModel.cs.

static void Molecule.Model.AtomModel.ChangeChainColor ( string  chain,
Color  c 
)
static

Changes the color of the chain.

Parameters
chainChain to be changed, string.
cColor to be applied, type Color.

Definition at line 123 of file AtomModel.cs.

static Color Molecule.Model.AtomModel.GetAtomColor ( string  atomType)
static

Gets the color of the atom type.

Returns
The atom color.
Parameters
atomTypeAtom type.

Definition at line 163 of file AtomModel.cs.

Referenced by BallUpdate.UpdateColorsFromModel().

+ Here is the caller graph for this function:

static Color Molecule.Model.AtomModel.GetChainColor ( string  chain)
static

Gets the color of the chain.

Returns
The chain color.
Parameters
chainChain.

Definition at line 137 of file AtomModel.cs.

static void Molecule.Model.AtomModel.InitAtomic ( )
static

Inits the atomic and chains scales.

Definition at line 180 of file AtomModel.cs.

Referenced by ParsePDB.FetchPDB2(), ParsePDB.LoadPDBRequest2(), LoadGUI.OpenFileCallback(), UI.GUIDisplay.OpenFileCallback(), and Molecule3D.Start().

+ Here is the caller graph for this function:

static void Molecule.Model.AtomModel.InitHiRERNA ( )
static
static bool Molecule.Model.AtomModel.IsAlive ( )
static

Determines whether this instance is alive.

Returns
true if this instance is alive; otherwise, false.

Definition at line 173 of file AtomModel.cs.

Member Data Documentation

Color Molecule.Model.AtomModel._baseColor
protected

Definition at line 76 of file AtomModel.cs.

string Molecule.Model.AtomModel._baseTexture
protected

Definition at line 77 of file AtomModel.cs.

float Molecule.Model.AtomModel._radius
protected

Definition at line 74 of file AtomModel.cs.

float Molecule.Model.AtomModel._scale
protected

Definition at line 75 of file AtomModel.cs.

string Molecule.Model.AtomModel._type
protected

Definition at line 73 of file AtomModel.cs.

OrderedDictionary Molecule.Model.AtomModel.s_typeToModel = null
staticprivate

Definition at line 111 of file AtomModel.cs.

Property Documentation

string Molecule.Model.AtomModel.baseTexture
getset

Definition at line 98 of file AtomModel.cs.

float Molecule.Model.AtomModel.radius
getset
float Molecule.Model.AtomModel.scale
getset

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