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

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)
 
Color GetColor (Vector3 pos)
 
override GameObject GetBall (int id)
 
override void DisableRenderers ()
 
override void EnableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
override void ResetRadii ()
 
void CreateMouseOversIMDSimulation ()
 
void DestroyMouseOversIMDSimulation ()
 
override void ResetPositions ()
 
override void ResetIMDSimulationPositions ()
 
SingleAtomSelection getClosestAtomGameObject (Vector3 position)
 
override void showHydrogens (bool hide)
 

Static Public Attributes

static GameObject[] cubeGameObjects
 

Private Member Functions

void ResetColors ()
 
void Update ()
 

Private Attributes

BallUpdateCube[] cubes
 

Additional Inherited Members

- Public Attributes inherited from GenericManager
bool isInit = false
 

Detailed Description

Definition at line 9 of file CubeManager.cs.

Member Function Documentation

void CubeManager.CreateMouseOversIMDSimulation ( )

Creates the mouse overs, needed when IMD simulation and mouse interaction are required.

Implements GenericAtomManager.

Definition at line 420 of file CubeManager.cs.

References MouseOverMoleculeIMDSimulation.setAtomId().

Referenced by EnableRenderers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void CubeManager.DestroyAll ( )
virtual

Implements GenericManager.

Definition at line 21 of file CubeManager.cs.

References GenericManager.isInit.

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

+ Here is the caller graph for this function:

void CubeManager.DestroyMouseOversIMDSimulation ( )

Destroys the mouse overs

Implements GenericAtomManager.

Definition at line 430 of file CubeManager.cs.

Referenced by DisableRenderers().

+ Here is the caller graph for this function:

override void CubeManager.DisableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 365 of file CubeManager.cs.

References UI.UIData.atomtype, DestroyMouseOversIMDSimulation(), and UI.GUIMoleculeController.toggle_IMD.

Referenced by Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void CubeManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 397 of file CubeManager.cs.

override void CubeManager.EnableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 378 of file CubeManager.cs.

References CreateMouseOversIMDSimulation(), UnityMolMain.setCurrentAtomManager(), and UI.GUIMoleculeController.toggle_IMD.

+ Here is the call graph for this function:

override void CubeManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 391 of file CubeManager.cs.

override GameObject CubeManager.GetBall ( int  id)
virtual

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

Returns
The ball.
Parameters
idIdentifier .

Implements GenericManager.

Definition at line 361 of file CubeManager.cs.

SingleAtomSelection CubeManager.getClosestAtomGameObject ( Vector3  position)
Color CubeManager.GetColor ( Vector3  pos)

Gets the color of the atom at the location "pos".

Returns
The color.
Parameters
posPosition.

Definition at line 345 of file CubeManager.cs.

override void CubeManager.Init ( )
virtual

Initializes this instance of the manager.

Implements GenericManager.

Definition at line 13 of file CubeManager.cs.

References GenericManager.isInit, BallUpdate.resetColors, and BallUpdate.resetRadii.

Referenced by Molecule.View.DisplayAtom.AtomCubeStyle.DisplayAtomCube().

+ Here is the caller graph for this function:

void CubeManager.ResetColors ( )
private

Resets the colors of all cubes and sticks.

Uses the color sets in BallUpdateCube.

Definition at line 37 of file CubeManager.cs.

References Molecule.Model.MoleculeModel.atomsColorList, UI.UIData.atomtype, BallUpdate.bondsReadyToBeReset, BallUpdate.number, and BallUpdate.resetColors.

Referenced by Update().

+ Here is the caller graph for this function:

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

Implements GenericManager.

Definition at line 453 of file CubeManager.cs.

References Molecule.Model.MoleculeModel.atomsLocationlist.

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

Sets the color of a specific atom.

Parameters
atomNumAtom number.
colColor.

Implements GenericManager.

Definition at line 192 of file CubeManager.cs.

References Molecule.Model.MoleculeModel.atomsColorList, BallUpdate.number, and BallUpdate.resetColors.

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

Changes the scale for Atom selection.

Parameters
idIdentifier of the selected atom.

Implements GenericManager.

Definition at line 327 of file CubeManager.cs.

References Molecule.Model.MoleculeModel.atomsLocalScaleList, BallUpdate.bondsReadyToBeReset, UI.GUIDisplay.newScale, BallUpdate.number, and BallUpdate.resetRadii.

override void CubeManager.showHydrogens ( bool  hide)
virtual

Implements GenericManager.

Definition at line 494 of file CubeManager.cs.

override void CubeManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 30 of file CubeManager.cs.

void CubeManager.Update ( )
private

Member Data Documentation

GameObject [] CubeManager.cubeGameObjects
static
BallUpdateCube [] CubeManager.cubes
private

Definition at line 10 of file CubeManager.cs.


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