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

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)
 
void SetTexture (Texture texture)
 
void SetTexture (string resource_name)
 
override GameObject GetBall (int id)
 
override void ResetPositions ()
 
override void ResetIMDSimulationPositions ()
 
override void DisableRenderers ()
 
override void EnableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
void SetBrightness (float val)
 
void ResetBrightness ()
 
override void ResetRadii ()
 
void ResetShininess ()
 
void ApplyTextures ()
 
override void showHydrogens (bool hide)
 
void hideAtom (int idAtom, bool show)
 
void ResetVisibility ()
 
SingleAtomSelection getClosestAtomGameObject (Vector3 position)
 
void CreateMouseOversIMDSimulation ()
 
void DestroyMouseOversIMDSimulation ()
 

Public Attributes

GameObject[] hball_meshes = new GameObject[0]
 
GameObject[] collidersGO
 
Dictionary< int, KeyValuePair< int, int > > coordAtomTexture
 
Material[] materialsAtoms
 
Texture2D[] texturesAtoms
 
Material[] materialsSticks
 
GameObject collidersParent
 
- Public Attributes inherited from GenericManager
bool isInit = false
 

Static Public Attributes

static int selectionAtoms
 
static float brightness = 1.0f
 
static float shininess = 0.0f
 
static bool resetBrightness = false
 
static bool resetRadii = false
 
static bool resetShininess = false
 
static float scaleAtoms = 1.0f
 

Private Member Functions

void Update ()
 

Private Attributes

List< int > texturesToUpdate
 

Detailed Description

Definition at line 11 of file HBallMeshManager.cs.

Member Function Documentation

void HBallMeshManager.ApplyTextures ( )
void HBallMeshManager.CreateMouseOversIMDSimulation ( )

Implements GenericAtomManager.

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

Disable and destroys all the Hyperballs

Implements GenericManager.

Definition at line 48 of file HBallMeshManager.cs.

References GenericManager.isInit.

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

+ Here is the caller graph for this function:

void HBallMeshManager.DestroyMouseOversIMDSimulation ( )

Implements GenericAtomManager.

Definition at line 697 of file HBallMeshManager.cs.

Referenced by DisableRenderers().

+ Here is the caller graph for this function:

override void HBallMeshManager.DisableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 525 of file HBallMeshManager.cs.

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

+ Here is the call graph for this function:

override void HBallMeshManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 562 of file HBallMeshManager.cs.

override void HBallMeshManager.EnableRenderers ( )
virtual

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

Implements GenericManager.

Definition at line 542 of file HBallMeshManager.cs.

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

Referenced by Molecule.View.DisplayMolecule.ChangeRepresentation(), and Molecule.View.DisplayAtom.AtomMeshStyle.DisplayAtoms().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

override void HBallMeshManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 555 of file HBallMeshManager.cs.

override GameObject HBallMeshManager.GetBall ( int  id)
virtual

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

Returns
The ball.
Parameters
idIdentifier.

Implements GenericManager.

Definition at line 461 of file HBallMeshManager.cs.

References Molecule.Model.MoleculeModel.atoms.

SingleAtomSelection HBallMeshManager.getClosestAtomGameObject ( Vector3  position)

Implements GenericAtomManager.

Definition at line 686 of file HBallMeshManager.cs.

void HBallMeshManager.hideAtom ( int  idAtom,
bool  show 
)

Definition at line 646 of file HBallMeshManager.cs.

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

+ Here is the caller graph for this function:

override void HBallMeshManager.Init ( )
virtual

Initalizes this instance.

Implements GenericManager.

Definition at line 33 of file HBallMeshManager.cs.

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

Referenced by Molecule.View.DisplayAtom.AtomCubeStyle.DisplayAtomCube(), and Molecule.View.DisplayAtom.AtomMeshStyle.DisplayAtoms().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void HBallMeshManager.ResetBrightness ( )

Definition at line 574 of file HBallMeshManager.cs.

References HStickManager.resetBrightness, and HStickMeshManager.resetBrightness.

Referenced by Update().

+ Here is the caller graph for this function:

override void HBallMeshManager.ResetIMDSimulationPositions ( )
virtual

Resets the positions of all balls.

(Useful after interactive mode)

Implements GenericManager.

Definition at line 500 of file HBallMeshManager.cs.

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

+ Here is the call graph for this function:

override void HBallMeshManager.ResetPositions ( )
virtual

Resets the positions of all balls.

(Useful after interactive mode)

Implements GenericManager.

Definition at line 473 of file HBallMeshManager.cs.

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

+ Here is the call graph for this function:

override void HBallMeshManager.ResetRadii ( )
virtual
void HBallMeshManager.ResetShininess ( )

Definition at line 608 of file HBallMeshManager.cs.

References HStickManager.resetShininess, HStickMeshManager.resetShininess, HStickManager.shininess, shininess, and HStickMeshManager.shininess.

Referenced by Update().

+ Here is the caller graph for this function:

void HBallMeshManager.ResetVisibility ( )

Definition at line 657 of file HBallMeshManager.cs.

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

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:

void HBallMeshManager.SetBrightness ( float  val)

Definition at line 571 of file HBallMeshManager.cs.

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

Sets the color of a specific atom.

(Atom selection)

Parameters
colColor.
atomNumAtom number.

Implements GenericManager.

Definition at line 285 of file HBallMeshManager.cs.

References ApplyTextures(), Molecule.Model.MoleculeModel.atomsColorList, Molecule.Model.MoleculeModel.atomsTypelist, and HStickMeshManager.resetColors.

+ Here is the call graph for this function:

override void HBallMeshManager.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 319 of file HBallMeshManager.cs.

References Molecule.Model.MoleculeModel.atomsLocalScaleList, Molecule.Model.MoleculeModel.atomsNamelist, and UI.GUIDisplay.newScale.

override void HBallMeshManager.SetRadii ( int  id)
virtual

Changes the scale for Atom selection.

Parameters
idIdentifier of the selected atom.

Implements GenericManager.

Definition at line 434 of file HBallMeshManager.cs.

void HBallMeshManager.SetTexture ( Texture  texture)

Definition at line 438 of file HBallMeshManager.cs.

References HStickMeshManager.resetTexture, and HStickMeshManager.texture.

Referenced by SetTexture().

+ Here is the caller graph for this function:

void HBallMeshManager.SetTexture ( string  resource_name)

Definition at line 445 of file HBallMeshManager.cs.

References SetTexture().

+ Here is the call graph for this function:

override void HBallMeshManager.showHydrogens ( bool  hide)
virtual

Implements GenericManager.

Definition at line 628 of file HBallMeshManager.cs.

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

+ Here is the call graph for this function:

override void HBallMeshManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 64 of file HBallMeshManager.cs.

void HBallMeshManager.Update ( )
private

Definition at line 670 of file HBallMeshManager.cs.

References ResetBrightness(), ResetRadii(), and ResetShininess().

+ Here is the call graph for this function:

Member Data Documentation

float HBallMeshManager.brightness = 1.0f
static

Definition at line 21 of file HBallMeshManager.cs.

Referenced by RepresentationOldGUI.AtomMenu(), and AtomsGUI.Brightness().

GameObject [] HBallMeshManager.collidersGO
GameObject HBallMeshManager.collidersParent
Dictionary<int,KeyValuePair<int,int> > HBallMeshManager.coordAtomTexture
GameObject [] HBallMeshManager.hball_meshes = new GameObject[0]
Material [] HBallMeshManager.materialsAtoms

Definition at line 18 of file HBallMeshManager.cs.

Material [] HBallMeshManager.materialsSticks

Definition at line 20 of file HBallMeshManager.cs.

bool HBallMeshManager.resetBrightness = false
static

Definition at line 23 of file HBallMeshManager.cs.

Referenced by RepresentationOldGUI.AtomMenu(), and AtomsGUI.Brightness().

bool HBallMeshManager.resetRadii = false
static
bool HBallMeshManager.resetShininess = false
static

Definition at line 25 of file HBallMeshManager.cs.

Referenced by RepresentationOldGUI.RenderingParameters().

float HBallMeshManager.scaleAtoms = 1.0f
static

Definition at line 26 of file HBallMeshManager.cs.

int HBallMeshManager.selectionAtoms
static

Definition at line 15 of file HBallMeshManager.cs.

float HBallMeshManager.shininess = 0.0f
static

Definition at line 22 of file HBallMeshManager.cs.

Referenced by RepresentationOldGUI.RenderingParameters(), and ResetShininess().

Texture2D [] HBallMeshManager.texturesAtoms

Definition at line 19 of file HBallMeshManager.cs.

List<int> HBallMeshManager.texturesToUpdate
private

Definition at line 16 of file HBallMeshManager.cs.


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