Definition at line 66 of file AmbientOcclusion.cs.
AmbientOcclusion.AmbientOcclusion |
( |
| ) |
|
Initializes a new instance of the AmbientOcclusion class.
Definition at line 217 of file AmbientOcclusion.cs.
References Molecule.Model.MoleculeModel.atomsLocationlist, AverageOfSurroundingCubes(), BuildColorList(), FillFacesWithZeros(), PDBtoDEN.fudgeFactor, PDBtoDEN.GridS, Molecule.Model.MoleculeModel.MinValue, SetOcclusionGridBounds(), PDBtoDEN.TranPDBtoDEN(), WeightedAverageOfSurroundingCubes(), xDim, yDim, and zDim.
static float AmbientOcclusion.AverageOfSurroundingCubes |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
staticprivate |
Computes the sum of the surrounding cubes.
That is the eight cubes around the cube of interest at the same Z coordinate, the 9 cubes right below (z-1) and the 9 cubes right above (z+1).
- Returns
- The of surrounding cubes.
- Parameters
-
i | X coordinate of the cube |
j | Y coordinate of the cube |
k | Z coordinate of the cube |
Definition at line 113 of file AmbientOcclusion.cs.
Referenced by AmbientOcclusion().
static void AmbientOcclusion.BuildColorList |
( |
| ) |
|
|
staticprivate |
static void AmbientOcclusion.FillFacesWithZeros |
( |
| ) |
|
|
staticprivate |
This fills the "faces" of the cube with zeros, because they do not have the necessary number of neighbors for a proper sum.
In practice the grid is probably much larger than the molecules, which means these locations do not contain any atom and therefore do not matter, but just in case...
Definition at line 168 of file AmbientOcclusion.cs.
References xDim, yDim, and zDim.
Referenced by AmbientOcclusion().
void AmbientOcclusion.Occlude |
( |
| ) |
|
void AmbientOcclusion.Revert |
( |
| ) |
|
static void AmbientOcclusion.SetOcclusionGridBounds |
( |
| ) |
|
|
staticprivate |
static float AmbientOcclusion.WeightedAverageOfSurroundingCubes |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
staticprivate |
float AmbientOcclusion.compensationFactor = 1.30f |
|
staticprivate |
const float AmbientOcclusion.cornerCoef = 0.25f |
|
private |
Vector3 AmbientOcclusion.delta |
|
staticprivate |
float [,,] AmbientOcclusion.density |
|
staticprivate |
const float AmbientOcclusion.diagCoef = 0.707106781186548f |
|
private |
const float AmbientOcclusion.faceCoef = 1f |
|
private |
Vector3 AmbientOcclusion.fudgeFactor |
|
staticprivate |
Vector3 AmbientOcclusion.inverseDelta |
|
staticprivate |
bool AmbientOcclusion.isEnabled = false |
|
static |
float AmbientOcclusion.maxDensity = -float.MaxValue |
|
staticprivate |
float AmbientOcclusion.minDensity = float.MaxValue |
|
staticprivate |
float [,,] AmbientOcclusion.occlusion |
|
staticprivate |
Vector3 AmbientOcclusion.origin = MoleculeModel.MinValue |
|
staticprivate |
List<Color> AmbientOcclusion.originalColors |
|
staticprivate |
GameObject AmbientOcclusion.pdb2den |
|
staticprivate |
bool AmbientOcclusion.reset = false |
|
static |
const float AmbientOcclusion.totalWeightFactor = 1f/(6f*faceCoef + 12f*diagCoef + 8f*cornerCoef) |
|
private |
bool AmbientOcclusion.weighted = true |
|
staticprivate |
int AmbientOcclusion.xDim |
|
staticprivate |
int AmbientOcclusion.yDim |
|
staticprivate |
int AmbientOcclusion.zDim |
|
staticprivate |
The documentation for this class was generated from the following file: