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

Public Attributes

Vector3 target
 
Shader shaderDifuse
 
Shader shaderTransparent
 
GameObject o
 
GameObject parentObj
 

Private Member Functions

void Start ()
 
void MakeTransparent (int c)
 
void MakeOpaque ()
 
void Update ()
 
void SetDifuseShading (GameObject f)
 
void OnDrawGizmos ()
 

Private Attributes

RaycastHit[] backupHits
 
int count = 0
 
ArrayList AtomsHit = new ArrayList()
 
ArrayList AtomsHitCurrent = new ArrayList()
 
ArrayList TransparentAtoms = new ArrayList()
 
Vector3 sphere_start = Vector3.zero
 

Detailed Description

Definition at line 20 of file TransparentFocus.cs.

Member Function Documentation

void TransparentFocus.MakeOpaque ( )
private

Apply opacity on atoms previously transparent but not in the focus anymore

Definition at line 68 of file TransparentFocus.cs.

Referenced by Update().

+ Here is the caller graph for this function:

void TransparentFocus.MakeTransparent ( int  c)
private

Apply transparence on atoms located between the camera and the target

Definition at line 44 of file TransparentFocus.cs.

Referenced by Update().

+ Here is the caller graph for this function:

void TransparentFocus.OnDrawGizmos ( )
private

Definition at line 191 of file TransparentFocus.cs.

void TransparentFocus.SetDifuseShading ( GameObject  f)
private

Definition at line 183 of file TransparentFocus.cs.

void TransparentFocus.Start ( )
private

Definition at line 35 of file TransparentFocus.cs.

void TransparentFocus.Update ( )
private

Definition at line 90 of file TransparentFocus.cs.

References UI.UIData.atomtype, MakeOpaque(), MakeTransparent(), GuidedNav.GNParameters.optim_target, UI.UIData.optim_view, sphere_start, and target.

+ Here is the call graph for this function:

Member Data Documentation

ArrayList TransparentFocus.AtomsHit = new ArrayList()
private

Definition at line 29 of file TransparentFocus.cs.

ArrayList TransparentFocus.AtomsHitCurrent = new ArrayList()
private

Definition at line 30 of file TransparentFocus.cs.

RaycastHit [] TransparentFocus.backupHits
private

Definition at line 27 of file TransparentFocus.cs.

int TransparentFocus.count = 0
private

Definition at line 28 of file TransparentFocus.cs.

GameObject TransparentFocus.o

Definition at line 25 of file TransparentFocus.cs.

GameObject TransparentFocus.parentObj

Definition at line 26 of file TransparentFocus.cs.

Shader TransparentFocus.shaderDifuse

Definition at line 23 of file TransparentFocus.cs.

Shader TransparentFocus.shaderTransparent

Definition at line 24 of file TransparentFocus.cs.

Vector3 TransparentFocus.sphere_start = Vector3.zero
private

Definition at line 32 of file TransparentFocus.cs.

Referenced by Update().

Vector3 TransparentFocus.target

Definition at line 22 of file TransparentFocus.cs.

Referenced by Update().

ArrayList TransparentFocus.TransparentAtoms = new ArrayList()
private

Definition at line 31 of file TransparentFocus.cs.


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