![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
abstract void | Init () |
abstract void | CreatePoints () |
void | ShowHide () |
void | Clear () |
Public Attributes | |
int | pNumber |
Static Public Attributes | |
static float | particleScale = 2.5f |
Protected Member Functions | |
void | AlphaCulling (float cull) |
void | BuildParticleArray () |
void | SetParticleSystem () |
Protected Attributes | |
float | ALPHA_THRESHOLD = 0.05f |
bool | raise = false |
float | ALPHA_FACTOR = 7f |
float[,,] | density |
ParticleSystem.Particle[] | points |
List< ParticleSystem.Particle > | dynPoints = new List<ParticleSystem.Particle>() |
Static Protected Attributes | |
static Vector3 | delta |
static Vector3 | origin = MoleculeModel.MinValue |
Definition at line 70 of file Volumetric.cs.
|
protected |
Removes from the dynamic particle list all particles whose alpha component is lower than ALPHA_THRESHOLD.
Currently not used, since dynamic lists are culled during their creation.
Definition at line 119 of file Volumetric.cs.
References dynPoints.
|
protected |
Builds the static particle array from the dynamic list.
Definition at line 127 of file Volumetric.cs.
References dynPoints, pNumber, and points.
Referenced by SetParticleSystem().
void Volumetric.Clear | ( | ) |
Clears this instance.
It empties the list of points, resets the number of particles, and disables the renderer. To be called when you want to destroy the particle system.
Definition at line 105 of file Volumetric.cs.
References dynPoints, ElectrostaticManager.particleSystem, and points.
Referenced by AdvancedOptionsOldGUI.AdvOptions(), and SurfaceManager.ShowHideVolumetricDensity().
|
pure virtual |
Creates the points for this particle system.
More precisely, it fills the dynamic list called dynPoints with particles of the right color, transparency and position. This list is raw, i.e. it contains one particle for each point of the grid. Therefore, it is typically very large.
Implemented in VolumetricDensity, VolumetricFields, and VolumetricDepth.
Referenced by SetParticleSystem().
|
pure virtual |
Initializes this instance.
To be called whenever you wish to create a particle system for volumetric rendering.
Implemented in VolumetricDensity, VolumetricFields, and VolumetricDepth.
|
protected |
Sets the particle system.
This creates the dynamic particle list, builds the static particle array, "sets" it to the particle system, and enables the renderer.
Definition at line 140 of file Volumetric.cs.
References BuildParticleArray(), CreatePoints(), ElectrostaticManager.particleSystem, and points.
Referenced by VolumetricDepth.Init(), VolumetricFields.Init(), and VolumetricDensity.Init().
void Volumetric.ShowHide | ( | ) |
Definition at line 97 of file Volumetric.cs.
References ElectrostaticManager.particleSystem.
Referenced by ElectrostaticManager.CreateVolumetricFields().
|
protected |
Definition at line 75 of file Volumetric.cs.
Referenced by VolumetricDepth.CreatePoints(), and VolumetricFields.CreatePoints().
|
protected |
Definition at line 72 of file Volumetric.cs.
Referenced by VolumetricDepth.CreatePoints(), VolumetricFields.CreatePoints(), and VolumetricDensity.CreatePoints().
|
staticprotected |
Definition at line 82 of file Volumetric.cs.
Referenced by VolumetricDepth.CreatePoints(), VolumetricFields.CreatePoints(), VolumetricDepth.Init(), VolumetricFields.Init(), and VolumetricDensity.Init().
|
protected |
Definition at line 77 of file Volumetric.cs.
Referenced by VolumetricDepth.CreatePoints(), VolumetricFields.CreatePoints(), VolumetricDensity.CreatePoints(), VolumetricDepth.Init(), VolumetricFields.Init(), and VolumetricDensity.Init().
|
protected |
Definition at line 80 of file Volumetric.cs.
Referenced by AlphaCulling(), BuildParticleArray(), Clear(), VolumetricDepth.CreatePoints(), VolumetricFields.CreatePoints(), and VolumetricDensity.CreatePoints().
|
staticprotected |
Definition at line 83 of file Volumetric.cs.
Referenced by VolumetricDepth.CreatePoints(), VolumetricFields.CreatePoints(), VolumetricDensity.CreatePoints(), VolumetricDepth.Init(), VolumetricFields.Init(), and VolumetricDensity.Init().
|
static |
Definition at line 71 of file Volumetric.cs.
Referenced by VolumetricFields.CreatePoints(), and VolumetricDensity.CreatePoints().
int Volumetric.pNumber |
Definition at line 81 of file Volumetric.cs.
Referenced by BuildParticleArray().
|
protected |
Definition at line 79 of file Volumetric.cs.
Referenced by BuildParticleArray(), Clear(), and SetParticleSystem().
|
protected |
Definition at line 74 of file Volumetric.cs.