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

Public Member Functions

override void Init ()
 
override void DestroyAll ()
 
override void ToggleDistanceCueing (bool enabling)
 
override void SetColor (Color col, List< string > atom, string residue="All", string chain="All")
 
override void SetColor (Color col, int atomNum)
 
override void SetRadii (List< string > atom, string residue="All", string chain="All")
 
override void SetRadii (int id)
 
override GameObject GetBall (int id)
 
override void ResetPositions ()
 
override void ResetIMDSimulationPositions ()
 
override void DisableRenderers ()
 
override void EnableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
override void showHydrogens (bool hide)
 
void ResetBrightness ()
 
void ResetTexture ()
 
void ResetShrink ()
 
void ResetScale ()
 
override void ResetRadii ()
 
void ResetColors ()
 
void ResetShininess ()
 
void ApplyTextures ()
 
void hideBondForAtom (int idAtom, bool show)
 
void ResetVisibility ()
 

Public Attributes

GameObject[] hstick_meshes = new GameObject[0]
 
List< int > texturesToUpdate
 
Material[] materialsSticks
 
Texture2D[] texturesSticks
 
Dictionary< int, KeyValuePair< int, int > > coordStickTexture
 
- Public Attributes inherited from GenericManager
bool isInit = false
 

Static Public Attributes

static Texture texture
 
static bool resetBrightness = false
 
static bool resetShrink = false
 
static bool resetScale = false
 
static float scaleSticks = 1.0f
 
static bool resetRadii = false
 
static bool resetColors = false
 
static bool resetTexture = false
 
static float shininess = 0.0f
 
static bool resetShininess = false
 

Private Member Functions

 HStickMeshManager ()
 
void Update ()
 

Detailed Description

Definition at line 9 of file HStickMeshManager.cs.

Constructor & Destructor Documentation

HStickMeshManager.HStickMeshManager ( )
private

Definition at line 28 of file HStickMeshManager.cs.

Member Function Documentation

void HStickMeshManager.ApplyTextures ( )
override void HStickMeshManager.DestroyAll ( )
virtual

Disable and destroys all the Sticks.

Implements GenericManager.

Definition at line 51 of file HStickMeshManager.cs.

References GenericManager.isInit.

Referenced by Molecule.View.DisplayMolecule.DestroyAllAtomsAndBonds().

+ Here is the caller graph for this function:

override void HStickMeshManager.DisableRenderers ( )
virtual

Disables the renderers for the entire set of balls and sticks.

Implements GenericManager.

Definition at line 202 of file HStickMeshManager.cs.

override void HStickMeshManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 225 of file HStickMeshManager.cs.

override void HStickMeshManager.EnableRenderers ( )
virtual

Enables the renderers for the entire set of balls and sticks.

Implements GenericManager.

Definition at line 211 of file HStickMeshManager.cs.

References UnityMolMain.setCurrentBondManager().

Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void HStickMeshManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 218 of file HStickMeshManager.cs.

override GameObject HStickMeshManager.GetBall ( int  id)
virtual

Gets the GameObject from hballs at the position "id".

Returns
The ball.
Parameters
idIdentifier.

Implements GenericManager.

Definition at line 131 of file HStickMeshManager.cs.

void HStickMeshManager.hideBondForAtom ( int  idAtom,
bool  show 
)

Definition at line 343 of file HStickMeshManager.cs.

References Molecule.Model.MoleculeModel.bondEPList.

Referenced by SugarManager.Hide_No_Sugar_Hyperballs(), and SugarManager.show_HyperBalls_Sugar().

+ Here is the caller graph for this function:

override void HStickMeshManager.Init ( )
virtual

Initalizes this instance.

Implements GenericManager.

Definition at line 35 of file HStickMeshManager.cs.

References GenericManager.isInit, and UnityMolMain.setCurrentBondManager().

Referenced by Molecule.View.DisplayBond.BondMeshStyle.DisplayBonds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void HStickMeshManager.ResetBrightness ( )

Definition at line 257 of file HStickMeshManager.cs.

References HBallManager.brightness.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickMeshManager.ResetColors ( )

Definition at line 307 of file HStickMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsColorList, and Molecule.Model.MoleculeModel.bondEPList.

Referenced by Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void HStickMeshManager.ResetIMDSimulationPositions ( )
virtual

Resets the positions of all balls.

(Useful after interactive mode)

Implements GenericManager.

Definition at line 169 of file HStickMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsIMDSimulationLocationlist, Molecule.Model.MoleculeModel.bondEPList, and EncodeFloatToColor.EncodeFloatRGBA().

+ Here is the call graph for this function:

override void HStickMeshManager.ResetPositions ( )
virtual

Resets the positions of all balls.

(Useful after interactive mode)

Implements GenericManager.

Definition at line 138 of file HStickMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsLocationlist, Molecule.Model.MoleculeModel.bondEPList, and EncodeFloatToColor.EncodeFloatRGBA().

Referenced by Molecule3D.Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void HStickMeshManager.ResetRadii ( )
virtual

Implements GenericManager.

Definition at line 282 of file HStickMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsLocalScaleList, Molecule.Model.MoleculeModel.atomsTypelist, Molecule.Model.MoleculeModel.bondEPList, EncodeFloatToColor.EncodeFloatRGBA(), and RepresentationOldGUI.globalRadius.

Referenced by Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void HStickMeshManager.ResetScale ( )

Definition at line 276 of file HStickMeshManager.cs.

References RepresentationOldGUI.linkScale.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickMeshManager.ResetShininess ( )

Definition at line 326 of file HStickMeshManager.cs.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickMeshManager.ResetShrink ( )

Definition at line 270 of file HStickMeshManager.cs.

References RepresentationOldGUI.shrink.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickMeshManager.ResetTexture ( )

Definition at line 262 of file HStickMeshManager.cs.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickMeshManager.ResetVisibility ( )

Definition at line 362 of file HStickMeshManager.cs.

References ApplyTextures(), and Molecule.Model.MoleculeModel.bondEPList.

Referenced by SugarManager.Hide_No_Sugar_Hyperballs(), and SugarManager.show_HyperBalls_Sugar().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void HStickMeshManager.SetColor ( Color  col,
List< string >  atom,
string  residue = "All",
string  chain = "All" 
)
virtual

Sets the color of atoms.

Parameters
colColor.
atomAtom type.
residueResidue.
chainChain.

Implements GenericManager.

Definition at line 81 of file HStickMeshManager.cs.

override void HStickMeshManager.SetColor ( Color  col,
int  atomNum 
)
virtual

Sets the color of a specific atom.

(Atom selection)

Parameters
colColor.
atomNumAtom number.

Implements GenericManager.

Definition at line 94 of file HStickMeshManager.cs.

override void HStickMeshManager.SetRadii ( List< string >  atom,
string  residue = "All",
string  chain = "All" 
)
virtual

Changes the scale of the atoms.

Parameters
atomAtom type.
residueResidue.
chainChain.

Implements GenericManager.

Definition at line 109 of file HStickMeshManager.cs.

override void HStickMeshManager.SetRadii ( int  id)
virtual

Changes the scale for Atom selection.

Parameters
idIdentifier of the selected atom.

Implements GenericManager.

Definition at line 118 of file HStickMeshManager.cs.

override void HStickMeshManager.showHydrogens ( bool  hide)
virtual

Implements GenericManager.

Definition at line 232 of file HStickMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsTypelist, and Molecule.Model.MoleculeModel.bondEPList.

+ Here is the call graph for this function:

override void HStickMeshManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 59 of file HStickMeshManager.cs.

void HStickMeshManager.Update ( )
private

Definition at line 376 of file HStickMeshManager.cs.

References ResetBrightness(), ResetColors(), ResetRadii(), ResetScale(), ResetShininess(), ResetShrink(), and ResetTexture().

+ Here is the call graph for this function:

Member Data Documentation

Dictionary<int,KeyValuePair<int,int> > HStickMeshManager.coordStickTexture
GameObject [] HStickMeshManager.hstick_meshes = new GameObject[0]
Material [] HStickMeshManager.materialsSticks

Definition at line 13 of file HStickMeshManager.cs.

bool HStickMeshManager.resetBrightness = false
static
bool HStickMeshManager.resetColors = false
static

Definition at line 22 of file HStickMeshManager.cs.

Referenced by HBallMeshManager.SetColor().

bool HStickMeshManager.resetRadii = false
static

Definition at line 21 of file HStickMeshManager.cs.

Referenced by HBallMeshManager.ResetRadii().

bool HStickMeshManager.resetScale = false
static
bool HStickMeshManager.resetShininess = false
static
bool HStickMeshManager.resetShrink = false
static
bool HStickMeshManager.resetTexture = false
static

Definition at line 23 of file HStickMeshManager.cs.

Referenced by HBallMeshManager.SetTexture().

float HStickMeshManager.scaleSticks = 1.0f
static

Definition at line 20 of file HStickMeshManager.cs.

float HStickMeshManager.shininess = 0.0f
static
Texture HStickMeshManager.texture
static

Definition at line 16 of file HStickMeshManager.cs.

Referenced by HBallMeshManager.SetTexture().

Texture2D [] HStickMeshManager.texturesSticks

Definition at line 14 of file HStickMeshManager.cs.

List<int> HStickMeshManager.texturesToUpdate

Definition at line 12 of file HStickMeshManager.cs.


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