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

Public Member Functions

override void Init ()
 
override void DestroyAll ()
 
override void SetColor (Color col, List< string > atoms, string residue="All", string chain="All")
 
override void SetColor (Color col, int atomNum)
 
override void SetRadii (List< string > atoms, string residue="All", string chain="All")
 
override void SetRadii (int atomNum)
 
override GameObject GetBall (int id)
 
override void ToggleDistanceCueing (bool enabling)
 
override void ResetPositions ()
 
void ResetPositionsInteractive ()
 
void ResetColorsInteractive ()
 
override void ResetIMDSimulationPositions ()
 
override void ResetRadii ()
 
override void EnableRenderers ()
 
override void DisableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
override void showHydrogens (bool hide)
 
void ResetShininess ()
 

Static Public Attributes

static StickUpdate[] sticks
 
static bool xgmml = false
 
static float depthFactor = 1.0f
 
static bool resetBrightness = false
 
static bool adjustRadii = false
 
static float shininess = 0.0f
 
static bool resetShininess = false
 

Private Member Functions

void ResetColors ()
 
void ResetTextures ()
 
void ResetBrightness ()
 
void Update ()
 

Private Attributes

Material[] stickMaterials
 

Static Private Attributes

static float oldDepthFactor = 1.0f
 
static bool wasInteractive = false
 
static bool wasInteractiveColored = false
 

Additional Inherited Members

- Public Attributes inherited from GenericManager
bool isInit = false
 

Detailed Description

Definition at line 9 of file HStickManager.cs.

Member Function Documentation

override void HStickManager.DestroyAll ( )
virtual

Implements GenericManager.

Definition at line 46 of file HStickManager.cs.

References GenericManager.isInit.

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

+ Here is the caller graph for this function:

override void HStickManager.DisableRenderers ( )
virtual

Disables the renderers for all objects managed by the instance of the manager.

Implements GenericManager.

Definition at line 250 of file HStickManager.cs.

override void HStickManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 266 of file HStickManager.cs.

override void HStickManager.EnableRenderers ( )
virtual

Enables the renderers for all objects managed by the instance of the manager.

Implements GenericManager.

Definition at line 243 of file HStickManager.cs.

References UnityMolMain.setCurrentBondManager().

+ Here is the call graph for this function:

override void HStickManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 258 of file HStickManager.cs.

override GameObject HStickManager.GetBall ( int  id)
virtual

Implements GenericManager.

Definition at line 58 of file HStickManager.cs.

override void HStickManager.Init ( )
virtual

Initializes this instance of the manager.

Implements GenericManager.

Definition at line 26 of file HStickManager.cs.

References BallUpdate.bondsReadyToBeReset, UI.GUIDisplay.file_extension, and GenericManager.isInit.

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

+ Here is the caller graph for this function:

void HStickManager.ResetBrightness ( )
private

Definition at line 284 of file HStickManager.cs.

References HBallManager.brightness.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickManager.ResetColors ( )
private

Definition at line 74 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, Molecule.Model.MoleculeModel.atomsColorList, BallUpdate.bondsReadyToBeReset, and UI.UIData.bondtype.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickManager.ResetColorsInteractive ( )

Definition at line 144 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, and Molecule.Model.MoleculeModel.atoms.

Referenced by Update().

+ Here is the caller graph for this function:

override void HStickManager.ResetIMDSimulationPositions ( )
virtual
override void HStickManager.ResetPositions ( )
virtual

Resets the bond vectors, which is necessary when the balls move.

Not very optimized: transform.position is actually quite costly, and buffering might be better.

Implements GenericManager.

Definition at line 114 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, and Molecule.Model.MoleculeModel.atomsLocationlist.

Referenced by Update(), and Molecule3D.Update().

+ Here is the caller graph for this function:

void HStickManager.ResetPositionsInteractive ( )

Definition at line 130 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, and Molecule.Model.MoleculeModel.atoms.

Referenced by Update().

+ Here is the caller graph for this function:

override void HStickManager.ResetRadii ( )
virtual

Adjusts the stick radii, which is needed to match the size of the balls when their radii are modified.

Implements GenericManager.

Definition at line 170 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, Molecule.Model.MoleculeModel.atomsLocalScaleList, Molecule.Model.MoleculeModel.atomsTypelist, RepresentationOldGUI.globalRadius, StickUpdate.oldrayon1, and StickUpdate.oldrayon2.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickManager.ResetShininess ( )

Definition at line 290 of file HStickManager.cs.

Referenced by Update().

+ Here is the caller graph for this function:

void HStickManager.ResetTextures ( )
private

Definition at line 90 of file HStickManager.cs.

References StickUpdate.atomnumber1, StickUpdate.atomnumber2, Molecule.Model.MoleculeModel.atoms, UI.UIData.atomtype, BallUpdate.bondsReadyToBeReset, and UI.UIData.bondtype.

Referenced by Update().

+ Here is the caller graph for this function:

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

Implements GenericManager.

Definition at line 53 of file HStickManager.cs.

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

Implements GenericManager.

Definition at line 54 of file HStickManager.cs.

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

Implements GenericManager.

Definition at line 55 of file HStickManager.cs.

override void HStickManager.SetRadii ( int  atomNum)
virtual

Implements GenericManager.

Definition at line 56 of file HStickManager.cs.

override void HStickManager.showHydrogens ( bool  hide)
virtual
override void HStickManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 62 of file HStickManager.cs.

References UI.UIData.bondtype.

Member Data Documentation

bool HStickManager.adjustRadii = false
static

Definition at line 15 of file HStickManager.cs.

Referenced by HBallMeshManager.ResetRadii(), and HBallManager.Update().

float HStickManager.depthFactor = 1.0f
static

Definition at line 13 of file HStickManager.cs.

Referenced by Update(), and Molecule3D.Update().

float HStickManager.oldDepthFactor = 1.0f
staticprivate

Definition at line 16 of file HStickManager.cs.

bool HStickManager.resetBrightness = false
static
bool HStickManager.resetShininess = false
static
float HStickManager.shininess = 0.0f
static
Material [] HStickManager.stickMaterials
private

Definition at line 23 of file HStickManager.cs.

StickUpdate [] HStickManager.sticks
static
bool HStickManager.wasInteractive = false
staticprivate

Definition at line 19 of file HStickManager.cs.

bool HStickManager.wasInteractiveColored = false
staticprivate

Definition at line 20 of file HStickManager.cs.

bool HStickManager.xgmml = false
static

Definition at line 12 of file HStickManager.cs.


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