UnityMol  0.9.6-875
UnityMol viewer / In developement
RingBlending Class Reference

Public Member Functions

 RingBlending ()
 
List< GameObject > CreateRingBlending ()
 
List< GameObject > createAllMesh ()
 
GameObject createPCObj (Mesh mesh, string res)
 
GameObject CreateOxygenSphere (int pos)
 
List< GameObject > ShowOxySphere ()
 

Static Public Member Functions

static Mesh[] createAMeshPC (List< float[]> cxLocation)
 

Public Attributes

ArrayList listOfPolygon = new ArrayList()
 
int nbrMono
 
bool showRingBlending
 
List< float[]> coordinates = new List<float[]>()
 
float[] points = new float[3]
 
List< Mesh > meshList = new List<Mesh>()
 
List< GraphVertexmolAsGraph = new List<GraphVertex>()
 
List< List< int > > cycles = new List<List<int>>()
 
List< string > residueslist = new List<string>()
 
List< float[]> atomsLocationlist = new List<float[]>()
 

Static Public Attributes

static int index = 0
 

Detailed Description

this class is made to fill cycle inside a molecule with a semi-transparent polygon to have a effect of filling and locate more easylli aromatic residues or sugar.

Definition at line 15 of file RingBlending.cs.

Constructor & Destructor Documentation

Member Function Documentation

List<GameObject> RingBlending.createAllMesh ( )

this fonction will call the other functions to create all mesh and also create gameobject.

Definition at line 110 of file RingBlending.cs.

References createAMeshPC(), and createPCObj().

Referenced by CreateRingBlending().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Mesh [] RingBlending.createAMeshPC ( List< float[]>  cxLocation)
static

This function will create two mesh.

Each mesh represent a pololygon which fill a residu cycle (ex: sugar or aromatic residues). it returns a list of 2 mesh because with the shader transparent/diffuse don't show two face of a mesh. So there is a mesh for one side and another mesh for the other side.

Returns
The A mesh P.
Parameters
cxLocationlist for atoms location..

Definition at line 145 of file RingBlending.cs.

Referenced by createAllMesh().

+ Here is the caller graph for this function:

GameObject RingBlending.CreateOxygenSphere ( int  pos)

Definition at line 235 of file RingBlending.cs.

Referenced by ShowOxySphere().

+ Here is the caller graph for this function:

GameObject RingBlending.createPCObj ( Mesh  mesh,
string  res 
)

Create an object "RingBlending" (polygon which fill a cycle).

Also add a color (official residue color) and the shader.

Parameters
meshthe mesh (the polygon).
resthe residue name, to get the color.

Definition at line 219 of file RingBlending.cs.

References UI.GUIDisplay.colorByResiduesDict.

Referenced by createAllMesh().

+ Here is the caller graph for this function:

List<GameObject> RingBlending.CreateRingBlending ( )

This function will convert the molecule to a "graph" (an object "GraphVertex" is made from each atoms and countains a list of all atoms neighbor).

It's use to search and locate cycle inside a molecule. Once that we add the each neighbor, we searh cycle. Once we now where is the cycle, we draw polygon to fill them at the right position.

Definition at line 99 of file RingBlending.cs.

References createAllMesh().

Referenced by SugarManager.CreateRingBlending().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

List<GameObject> RingBlending.ShowOxySphere ( )

Definition at line 247 of file RingBlending.cs.

References Molecule.Model.MoleculeModel.atomsNamelist, and CreateOxygenSphere().

Referenced by SugarManager.ShowRingOxySphere().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

List<float[]> RingBlending.atomsLocationlist = new List<float[]>()

Definition at line 33 of file RingBlending.cs.

List<float[]> RingBlending.coordinates = new List<float[]>()

Definition at line 22 of file RingBlending.cs.

List<List<int> > RingBlending.cycles = new List<List<int>>()

Definition at line 30 of file RingBlending.cs.

int RingBlending.index = 0
static

Definition at line 27 of file RingBlending.cs.

ArrayList RingBlending.listOfPolygon = new ArrayList()

Definition at line 18 of file RingBlending.cs.

List<Mesh> RingBlending.meshList = new List<Mesh>()

Definition at line 25 of file RingBlending.cs.

List<GraphVertex> RingBlending.molAsGraph = new List<GraphVertex>()

Definition at line 29 of file RingBlending.cs.

int RingBlending.nbrMono

Definition at line 19 of file RingBlending.cs.

float [] RingBlending.points = new float[3]

Definition at line 23 of file RingBlending.cs.

List<string> RingBlending.residueslist = new List<string>()

Definition at line 31 of file RingBlending.cs.

bool RingBlending.showRingBlending

Definition at line 20 of file RingBlending.cs.


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