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

Public Member Functions

 DepthCueing ()
 
void Darken ()
 
void Revert ()
 

Static Public Attributes

static bool isEnabled = false
 
static bool reset = false
 
static float POWER = 2
 

Private Member Functions

void BuildColorList ()
 
bool InBounds (int x, int y, int z)
 

Private Attributes

ReadDX readDx
 
float[,,] depth
 
BallUpdate[] balls
 
int xDim
 
int yDim
 
int zDim
 
float depthAmplitude
 

Static Private Attributes

static Vector3 invDelta
 
static Vector3 origin = MoleculeModel.MinValue
 
static float OFFSET = 1.0f
 
static float MAX_DEPTH = -10.0f
 
static List< Color > originalColors
 

Detailed Description

Definition at line 67 of file DepthCueing.cs.

Constructor & Destructor Documentation

DepthCueing.DepthCueing ( )

Initializes a new instance of the DepthCueing class.

Definition at line 88 of file DepthCueing.cs.

References ReadDX._grid, BuildColorList(), ReadDX.GetDelta(), ReadDX.GetOrigin(), ElectrostaticManager.readdx, and reset.

+ Here is the call graph for this function:

Member Function Documentation

void DepthCueing.BuildColorList ( )
private

Builds the list of the original colors, that is before the Depth Cueing effect is applied.

Definition at line 122 of file DepthCueing.cs.

References Molecule.Model.MoleculeModel.atomsColorList.

Referenced by DepthCueing().

+ Here is the caller graph for this function:

void DepthCueing.Darken ( )

Darkens the molecule.

This performs the actual Depth Cueing effect.

Definition at line 141 of file DepthCueing.cs.

References BallUpdate.atomcolor, Molecule.Model.MoleculeModel.atomsColorList, BallUpdate.number, OFFSET, and BallUpdate.resetColors.

Referenced by AdvancedOptionsOldGUI.AdvOptions().

+ Here is the caller graph for this function:

bool DepthCueing.InBounds ( int  x,
int  y,
int  z 
)
private

This function is currently not used, but can be useful for debugging, to check whether the index computed matches an actual location in the grid, and use various prints if that is not the case.

Definition at line 131 of file DepthCueing.cs.

void DepthCueing.Revert ( )

Reverts the molecule to its original colors, that is before the Depth Cueing effect was applied.

Definition at line 180 of file DepthCueing.cs.

References Molecule.Model.MoleculeModel.atomsColorList, originalColors, and BallUpdate.resetColors.

Referenced by AdvancedOptionsOldGUI.AdvOptions().

+ Here is the caller graph for this function:

Member Data Documentation

BallUpdate [] DepthCueing.balls
private

Definition at line 72 of file DepthCueing.cs.

float [,,] DepthCueing.depth
private

Definition at line 69 of file DepthCueing.cs.

float DepthCueing.depthAmplitude
private

Definition at line 74 of file DepthCueing.cs.

Vector3 DepthCueing.invDelta
staticprivate

Definition at line 70 of file DepthCueing.cs.

bool DepthCueing.isEnabled = false
static

Definition at line 80 of file DepthCueing.cs.

Referenced by AdvancedOptionsOldGUI.AdvOptions().

float DepthCueing.MAX_DEPTH = -10.0f
staticprivate

Definition at line 77 of file DepthCueing.cs.

float DepthCueing.OFFSET = 1.0f
staticprivate

Definition at line 76 of file DepthCueing.cs.

Referenced by Darken().

Vector3 DepthCueing.origin = MoleculeModel.MinValue
staticprivate

Definition at line 71 of file DepthCueing.cs.

List<Color> DepthCueing.originalColors
staticprivate

Definition at line 78 of file DepthCueing.cs.

Referenced by Revert().

float DepthCueing.POWER = 2
static

Definition at line 82 of file DepthCueing.cs.

ReadDX DepthCueing.readDx
private

Definition at line 68 of file DepthCueing.cs.

bool DepthCueing.reset = false
static
int DepthCueing.xDim
private

Definition at line 73 of file DepthCueing.cs.

int DepthCueing.yDim
private

Definition at line 73 of file DepthCueing.cs.

int DepthCueing.zDim
private

Definition at line 73 of file DepthCueing.cs.


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