![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
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< GraphVertex > | molAsGraph = 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 |
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.
RingBlending.RingBlending | ( | ) |
Definition at line 36 of file RingBlending.cs.
References Molecule.Model.MoleculeModel.atomsLocationlist, Molecule.Model.MoleculeModel.atomsNamelist, Molecule.Model.MoleculeModel.atomsResnamelist, Molecule.Model.MoleculeModel.bondEPList, GraphVertex.coordinate, GraphVertex.id, GraphVertex.resname, and GraphVertex.type.
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().
|
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.
cxLocation | list for atoms location.. |
Definition at line 145 of file RingBlending.cs.
Referenced by createAllMesh().
GameObject RingBlending.CreateOxygenSphere | ( | int | pos | ) |
Definition at line 235 of file RingBlending.cs.
Referenced by ShowOxySphere().
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.
mesh | the mesh (the polygon). |
res | the residue name, to get the color. |
Definition at line 219 of file RingBlending.cs.
References UI.GUIDisplay.colorByResiduesDict.
Referenced by createAllMesh().
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().
List<GameObject> RingBlending.ShowOxySphere | ( | ) |
Definition at line 247 of file RingBlending.cs.
References Molecule.Model.MoleculeModel.atomsNamelist, and CreateOxygenSphere().
Referenced by SugarManager.ShowRingOxySphere().
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.
|
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.