UnityMol  0.9.6-875
UnityMol viewer / In developement
Volumetric Class Referenceabstract
+ Inheritance diagram for Volumetric:
+ Collaboration diagram for Volumetric:

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
 

Detailed Description

Definition at line 70 of file Volumetric.cs.

Member Function Documentation

void Volumetric.AlphaCulling ( float  cull)
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.

void Volumetric.BuildParticleArray ( )
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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

abstract void Volumetric.CreatePoints ( )
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().

+ Here is the caller graph for this function:

abstract void Volumetric.Init ( )
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.

void Volumetric.SetParticleSystem ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Volumetric.ShowHide ( )

Definition at line 97 of file Volumetric.cs.

References ElectrostaticManager.particleSystem.

Referenced by ElectrostaticManager.CreateVolumetricFields().

+ Here is the caller graph for this function:

Member Data Documentation

float Volumetric.ALPHA_FACTOR = 7f
protected

Definition at line 75 of file Volumetric.cs.

Referenced by VolumetricDepth.CreatePoints(), and VolumetricFields.CreatePoints().

float Volumetric.ALPHA_THRESHOLD = 0.05f
protected
Vector3 Volumetric.delta
staticprotected
List<ParticleSystem.Particle> Volumetric.dynPoints = new List<ParticleSystem.Particle>()
protected
Vector3 Volumetric.origin = MoleculeModel.MinValue
staticprotected
float Volumetric.particleScale = 2.5f
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().

ParticleSystem.Particle [] Volumetric.points
protected

Definition at line 79 of file Volumetric.cs.

Referenced by BuildParticleArray(), Clear(), and SetParticleSystem().

bool Volumetric.raise = false
protected

Definition at line 74 of file Volumetric.cs.


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