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

Public Member Functions

override void Init ()
 
override void DestroyAll ()
 
override void ToggleDistanceCueing (bool enabling)
 
override void EnableRenderers ()
 
override void DisableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
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 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[] sphereGameObjects
 

Private Member Functions

void ResetColors ()
 
void Update ()
 

Private Attributes

BallUpdateSphere[] balls
 

Additional Inherited Members

- Public Attributes inherited from GenericManager
bool isInit = false
 

Detailed Description

Definition at line 9 of file SphereManager.cs.

Member Function Documentation

void SphereManager.CreateMouseOversIMDSimulation ( )

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

Implements GenericAtomManager.

Definition at line 436 of file SphereManager.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 SphereManager.DestroyAll ( )
virtual

Implements GenericManager.

Definition at line 24 of file SphereManager.cs.

References GenericManager.isInit.

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

+ Here is the caller graph for this function:

void SphereManager.DestroyMouseOversIMDSimulation ( )

Destroys the mouse overs

Implements GenericAtomManager.

Definition at line 446 of file SphereManager.cs.

Referenced by DisableRenderers().

+ Here is the caller graph for this function:

override void SphereManager.DisableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 59 of file SphereManager.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 SphereManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 79 of file SphereManager.cs.

override void SphereManager.EnableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 42 of file SphereManager.cs.

References Molecule.Model.MoleculeModel.atomsLocationlist, CreateMouseOversIMDSimulation(), UI.UIData.guided, BallUpdate.number, UnityMolMain.setCurrentAtomManager(), and UI.GUIMoleculeController.toggle_IMD.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void SphereManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 73 of file SphereManager.cs.

override GameObject SphereManager.GetBall ( int  id)
virtual

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

Returns
The ball.
Parameters
idIdentifier.

Implements GenericManager.

Definition at line 415 of file SphereManager.cs.

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

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

Returns
The color.
Parameters
posPosition.

Definition at line 399 of file SphereManager.cs.

override void SphereManager.Init ( )
virtual

Initializes this sphere manager.

Implements GenericManager.

Definition at line 16 of file SphereManager.cs.

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

Referenced by Molecule.View.DisplayAtom.AtomSphereStyle.DisplayAtoms().

+ Here is the caller graph for this function:

void SphereManager.ResetColors ( )
private

Resets the colors of all spheres and sticks.

Uses the colors sets in BallUpdateSphere.

Definition at line 90 of file SphereManager.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 SphereManager.ResetIMDSimulationPositions ( )
virtual
override void SphereManager.ResetPositions ( )
virtual

Implements GenericManager.

Definition at line 466 of file SphereManager.cs.

References Molecule.Model.MoleculeModel.atomsLocationlist.

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

Sets the color of a specific atom.

Parameters
atomNumAtom number.
colColor.

Implements GenericManager.

Definition at line 245 of file SphereManager.cs.

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

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

Changes the scale for Atom selection.

Parameters
idIdentifier of the selected atom.

Implements GenericManager.

Definition at line 381 of file SphereManager.cs.

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

override void SphereManager.showHydrogens ( bool  hide)
virtual

Implements GenericManager.

Definition at line 505 of file SphereManager.cs.

override void SphereManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 37 of file SphereManager.cs.

void SphereManager.Update ( )
private

Member Data Documentation

BallUpdateSphere [] SphereManager.balls
private

Definition at line 10 of file SphereManager.cs.

GameObject [] SphereManager.sphereGameObjects
static

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