UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
override void | Init () |
override void | CreatePoints () |
Public Member Functions inherited from Volumetric | |
void | ShowHide () |
void | Clear () |
Private Attributes | |
GameObject | pdb2den |
PDBtoDEN | genDensity |
float | maxDensity = float.MinValue |
float | minDensity = float.MaxValue |
float | densityAmplitude |
Static Private Attributes | |
static Vector3 | inverseDelta |
static Vector3 | fudgeFactor |
Additional Inherited Members | |
Public Attributes inherited from Volumetric | |
int | pNumber |
Static Public Attributes inherited from Volumetric | |
static float | particleScale = 2.5f |
Protected Member Functions inherited from Volumetric | |
void | AlphaCulling (float cull) |
void | BuildParticleArray () |
void | SetParticleSystem () |
Protected Attributes inherited from Volumetric | |
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 inherited from Volumetric | |
static Vector3 | delta |
static Vector3 | origin = MoleculeModel.MinValue |
Definition at line 70 of file VolumetricDensity.cs.
|
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.
Implements Volumetric.
Definition at line 122 of file VolumetricDensity.cs.
References Volumetric.ALPHA_THRESHOLD, Volumetric.density, densityAmplitude, Volumetric.dynPoints, Volumetric.origin, and Volumetric.particleScale.
|
virtual |
Initializes this instance.
To be called whenever you wish to create a particle system for volumetric rendering.
Implements Volumetric.
Definition at line 80 of file VolumetricDensity.cs.
References Volumetric.delta, PDBtoDEN.delta, Volumetric.density, PDBtoDEN.fudgeFactor, PDBtoDEN.GridS, minDensity, Molecule.Model.MoleculeModel.MinValue, Volumetric.origin, Volumetric.SetParticleSystem(), and PDBtoDEN.TranPDBtoDEN().
Referenced by SurfaceManager.ShowHideVolumetricDensity().
|
private |
Definition at line 75 of file VolumetricDensity.cs.
Referenced by CreatePoints().
|
staticprivate |
Definition at line 78 of file VolumetricDensity.cs.
|
private |
Definition at line 72 of file VolumetricDensity.cs.
|
staticprivate |
Definition at line 77 of file VolumetricDensity.cs.
|
private |
Definition at line 73 of file VolumetricDensity.cs.
|
private |
Definition at line 74 of file VolumetricDensity.cs.
Referenced by Init().
|
private |
Definition at line 71 of file VolumetricDensity.cs.