![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
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 |
Definition at line 67 of file DepthCueing.cs.
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.
|
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().
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().
|
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().
|
private |
Definition at line 72 of file DepthCueing.cs.
|
private |
Definition at line 69 of file DepthCueing.cs.
|
private |
Definition at line 74 of file DepthCueing.cs.
|
staticprivate |
Definition at line 70 of file DepthCueing.cs.
|
static |
Definition at line 80 of file DepthCueing.cs.
Referenced by AdvancedOptionsOldGUI.AdvOptions().
|
staticprivate |
Definition at line 77 of file DepthCueing.cs.
|
staticprivate |
Definition at line 76 of file DepthCueing.cs.
Referenced by Darken().
|
staticprivate |
Definition at line 71 of file DepthCueing.cs.
|
staticprivate |
Definition at line 78 of file DepthCueing.cs.
Referenced by Revert().
|
static |
Definition at line 82 of file DepthCueing.cs.
|
private |
Definition at line 68 of file DepthCueing.cs.
|
static |
Definition at line 81 of file DepthCueing.cs.
Referenced by AdvancedOptionsOldGUI.AdvOptions(), Molecule3D.clearScene(), and DepthCueing().
|
private |
Definition at line 73 of file DepthCueing.cs.
|
private |
Definition at line 73 of file DepthCueing.cs.
|
private |
Definition at line 73 of file DepthCueing.cs.