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

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 ResetRadii ()
 
override void EnableRenderers ()
 
override void DisableRenderers ()
 
override void EnableShadows ()
 
override void DisableShadows ()
 
override void ResetPositions ()
 
override void ResetIMDSimulationPositions ()
 
override void showHydrogens (bool hide)
 

Public Attributes

ParticleSystem pSystem
 
- Public Attributes inherited from GenericManager
bool isInit = false
 

Static Public Attributes

static int pNumber
 
static float radiusFactor
 

Private Member Functions

void CheckParticles ()
 
void ResetColors ()
 
void Update ()
 

Private Attributes

Particle[] sourceParticles
 
ParticleSystem.Particle[] particles
 

Static Private Attributes

static Vector3 LITTLE_OFFSET = new Vector3(0f, 0f, -1f)
 

Detailed Description

Definition at line 68 of file ShurikenParticleManager.cs.

Member Function Documentation

void ShurikenParticleManager.CheckParticles ( )
private

Used for debugging.

Prints the position and color of each particle.

Definition at line 133 of file ShurikenParticleManager.cs.

References pNumber.

override void ShurikenParticleManager.DestroyAll ( )
virtual

Implements GenericManager.

Definition at line 106 of file ShurikenParticleManager.cs.

References GenericManager.isInit.

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

+ Here is the caller graph for this function:

override void ShurikenParticleManager.DisableRenderers ( )
virtual

Disables this script and the renderer of its particle system.

Implements GenericManager.

Definition at line 194 of file ShurikenParticleManager.cs.

Referenced by Update().

+ Here is the caller graph for this function:

override void ShurikenParticleManager.DisableShadows ( )
virtual

Implements GenericManager.

Definition at line 202 of file ShurikenParticleManager.cs.

override void ShurikenParticleManager.EnableRenderers ( )
virtual

Enables this script and the renderer of its particle system.

Implements GenericManager.

Definition at line 179 of file ShurikenParticleManager.cs.

References Molecule.Model.MoleculeModel.atomsLocationlist, UI.UIData.guided, and pNumber.

override void ShurikenParticleManager.EnableShadows ( )
virtual

Implements GenericManager.

Definition at line 198 of file ShurikenParticleManager.cs.

override GameObject ShurikenParticleManager.GetBall ( int  id)
virtual

Implements GenericManager.

Definition at line 122 of file ShurikenParticleManager.cs.

override void ShurikenParticleManager.Init ( )
virtual

Initializes this instance of the ParticleSystem Manager.

Implements GenericManager.

Definition at line 80 of file ShurikenParticleManager.cs.

References GenericManager.isInit, LITTLE_OFFSET, Molecule.Model.MoleculeModel.p, particles, pNumber, and BallUpdate.radiusFactor.

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

+ Here is the caller graph for this function:

void ShurikenParticleManager.ResetColors ( )
private
override void ShurikenParticleManager.ResetIMDSimulationPositions ( )
virtual

Implements GenericManager.

Definition at line 231 of file ShurikenParticleManager.cs.

override void ShurikenParticleManager.ResetPositions ( )
virtual
override void ShurikenParticleManager.ResetRadii ( )
virtual

Resets the radii of the particle balls as needed when it is changed through the GUI.

Implements GenericManager.

Definition at line 153 of file ShurikenParticleManager.cs.

References BallUpdate.oldRadiusFactor, pNumber, and BallUpdate.radiusFactor.

Referenced by Update().

+ Here is the caller graph for this function:

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

Implements GenericManager.

Definition at line 113 of file ShurikenParticleManager.cs.

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

Implements GenericManager.

Definition at line 116 of file ShurikenParticleManager.cs.

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

Implements GenericManager.

Definition at line 119 of file ShurikenParticleManager.cs.

override void ShurikenParticleManager.SetRadii ( int  atomNum)
virtual

Implements GenericManager.

Definition at line 120 of file ShurikenParticleManager.cs.

override void ShurikenParticleManager.showHydrogens ( bool  hide)
virtual

Implements GenericManager.

Definition at line 239 of file ShurikenParticleManager.cs.

References Molecule.Model.MoleculeModel.atomsTypelist, and pNumber.

override void ShurikenParticleManager.ToggleDistanceCueing ( bool  enabling)
virtual

Implements GenericManager.

Definition at line 126 of file ShurikenParticleManager.cs.

void ShurikenParticleManager.Update ( )
private

Definition at line 209 of file ShurikenParticleManager.cs.

References UI.UIData.atomtype, DisableRenderers(), UI.UIData.isFileLoaded, BallUpdate.oldRadiusFactor, BallUpdate.radiusFactor, and ResetRadii().

+ Here is the call graph for this function:

Member Data Documentation

Vector3 ShurikenParticleManager.LITTLE_OFFSET = new Vector3(0f, 0f, -1f)
staticprivate

Definition at line 71 of file ShurikenParticleManager.cs.

Referenced by Init().

ParticleSystem.Particle [] ShurikenParticleManager.particles
private

Definition at line 72 of file ShurikenParticleManager.cs.

Referenced by Init(), and ResetPositions().

int ShurikenParticleManager.pNumber
static
ParticleSystem ShurikenParticleManager.pSystem

Definition at line 69 of file ShurikenParticleManager.cs.

float ShurikenParticleManager.radiusFactor
static

Definition at line 75 of file ShurikenParticleManager.cs.

Particle [] ShurikenParticleManager.sourceParticles
private

Definition at line 70 of file ShurikenParticleManager.cs.


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