![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
void | CreateRibbons () |
Static Public Member Functions | |
static void | InitCol () |
static Color32 | GetColorChain (string type) |
Public Attributes | |
List< int > | handedlist = new List<int> () |
List< int > | sslist = new List<int> () |
Static Public Attributes | |
static bool | mustSplitDictList = false |
static string | ribbontag = "RibbonObjA" |
static ColorObject | HELIX_COLOR = new ColorObject(new Color32(255,0,0,255)) |
static ColorObject | STRAND_COLOR = new ColorObject(new Color32(0,0,255,255)) |
static ColorObject | COIL_COLOR = new ColorObject(new Color32(255,255,255,255)) |
static ColorObject | ChainColorA = new ColorObject(new Color32( 10, 3,200,50)) |
static ColorObject | ChainColorB = new ColorObject(new Color32( 10,170, 34,50)) |
static ColorObject | ChainColorC = new ColorObject(new Color32( 0,150,150,50)) |
static ColorObject | ChainColorD = new ColorObject(new Color32( 0,180, 0,50)) |
static ColorObject | ChainColorE = new ColorObject(new Color32( 0,170,200,50)) |
static float | HELIX_DIAM = 1.8f |
static float | THICKNESS = 0.3f |
static float | ARROW_WIDTH = 1.8f |
static float[] | ribbonWidth = {1.5f, 1.7f, 0.3f} |
Private Member Functions | |
float | CalculateTorsionalAngle (Vector3 at0, Vector3 at1, Vector3 at2, Vector3 at3, bool print) |
float | WeirdDistance (float x1, float y1, float x2, float y2) |
void | CalculateSecondaryStructures (List< Dictionary< string, Vector3 >> residueDicts, int[] ss, int[] handedness) |
Vector3 | LinearComb (float scalar0, Vector3 vector0, float scalar1, Vector3 vector1) |
void | AddControlPoints (Vector3 ca0, Vector3 ox0, Vector3 ca1, int ss, int handedness) |
void | ShiftControlPoints () |
void | ConstructControlPoints (List< Dictionary< string, Vector3 >> residueDicts, int res, int ss, int handedness) |
void | GenerateSpline (int n, List< Vector3 > vertices) |
void | GenerateArrowRibbon (List< Vector3 > vertices, List< Vector3 > normals, List< int > triangles) |
void | GenerateFlatRibbon (List< Vector3 > vertices, List< Vector3 > normals, List< int > triangles) |
List< int > | Copy (List< int > l) |
void | CreateRibbons (List< Dictionary< string, Vector3 >> residueDicts, List< int > sslist, List< int >handedlist) |
List< float[]> | FindHelix (string chain) |
List< float[]> | FindStrand (string chain) |
int | ComputeNbRes (string chain) |
List< float[]> | SortStrand (List< float[]> tmpstrandlist) |
void | CreateSSlist (ref List< int > sslist, ref List< int > handednesslist) |
Private Attributes | |
Vector3 | flipTestV |
BSpline | splineCenter |
BSpline | splineSide1 |
BSpline | splineSide2 |
int | uspacing |
int | vIndex |
bool | createss = false |
const int | HELIX = 0 |
const int | STRAND = 1 |
const int | COIL = 2 |
const int | LHANDED = -1 |
const int | RHANDED = 1 |
int | firstresnb = Molecule.Model.MoleculeModel.firstresnb |
Static Private Attributes | |
static string | currentchain = "" |
static int | RIBBON_DETAIL = 4 |
static int | RENDER_MODE = 1 |
static Dictionary< string, Color32 > | ss_chain_col = null |
Definition at line 5 of file Ribbons.cs.
|
private |
Definition at line 191 of file Ribbons.cs.
References BSpline.GetCPoint(), LinearComb(), and BSpline.SetCPoint().
Referenced by ConstructControlPoints().
|
private |
Definition at line 84 of file Ribbons.cs.
References CalculateTorsionalAngle(), COIL, HELIX, LHANDED, RHANDED, STRAND, and WeirdDistance().
Referenced by CreateRibbons().
|
private |
Definition at line 46 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures().
|
private |
Definition at line 1092 of file Ribbons.cs.
References Molecule.Model.MoleculeModel.resChainList2.
Referenced by CreateSSlist().
|
private |
Definition at line 245 of file Ribbons.cs.
References AddControlPoints(), BSpline.CopyCPoints(), BSpline.GetCPoint(), LinearComb(), BSpline.SetCPoint(), ShiftControlPoints(), and BSpline.UpdateMatrix3().
Referenced by CreateRibbons().
|
private |
Definition at line 861 of file Ribbons.cs.
Referenced by CreateRibbons().
void Ribbons.CreateRibbons | ( | ) |
Definition at line 869 of file Ribbons.cs.
References Copy(), CreateSSlist(), currentchain, Molecule.Model.MoleculeModel.firstresnb, Molecule.Model.MoleculeModel.resChainList2, Molecule.Model.MoleculeModel.residueDictionaries, Molecule.Model.MoleculeModel.splits, Molecule.Model.MoleculeModel.ssHelixList, and Molecule.Model.MoleculeModel.ssStrandList.
Referenced by SecondaryStructureManager.CreateRibbons().
|
private |
Definition at line 936 of file Ribbons.cs.
References CalculateSecondaryStructures(), ColorObject.color, ConstructControlPoints(), GenerateArrowRibbon(), GenerateFlatRibbon(), PostProcessing.GenerateMeshes(), GenerateSpline(), GetColorChain(), HELIX, InitCol(), SecondaryStructureOldGUI.ssColChain, SecondaryStructureOldGUI.ssDivCol, and STRAND.
|
private |
Creates secondary structure list and handedness list using ss informations from the pdb file.
sslist | Sslist. |
handednesslist | Handednesslist. |
Definition at line 1138 of file Ribbons.cs.
References ComputeNbRes(), Molecule.Model.MoleculeModel.existingChain, FindHelix(), FindStrand(), firstresnb, UI.UIData.guided, and SortStrand().
Referenced by CreateRibbons().
|
private |
Finds helices by chain in ssHelixList (informations from the pdb file).
chain | Chain. |
Definition at line 1058 of file Ribbons.cs.
References Molecule.Model.MoleculeModel.helixChainList, and Molecule.Model.MoleculeModel.ssHelixList.
Referenced by CreateSSlist().
|
private |
Find strands by chain in ssStrandList (informations from the pdb file).
chain | Chain. |
Definition at line 1079 of file Ribbons.cs.
References Molecule.Model.MoleculeModel.ssStrandList, and Molecule.Model.MoleculeModel.strandChainList.
Referenced by CreateSSlist().
|
private |
Definition at line 363 of file Ribbons.cs.
References ARROW_WIDTH, BSpline.Deval(), and BSpline.Feval().
Referenced by CreateRibbons().
|
private |
Definition at line 634 of file Ribbons.cs.
References BSpline.Deval(), and BSpline.Feval().
Referenced by CreateRibbons().
|
private |
Definition at line 330 of file Ribbons.cs.
References BSpline.Feval().
Referenced by CreateRibbons().
|
static |
Definition at line 1226 of file Ribbons.cs.
Referenced by SurfaceManager.ColorVertices(), and CreateRibbons().
|
static |
Definition at line 1208 of file Ribbons.cs.
References ColorObject.color.
Referenced by SurfaceManager.ColorVertices(), and CreateRibbons().
|
private |
Definition at line 186 of file Ribbons.cs.
Referenced by AddControlPoints(), and ConstructControlPoints().
|
private |
Definition at line 238 of file Ribbons.cs.
References BSpline.ShiftBSplineCPoints().
Referenced by ConstructControlPoints().
|
private |
Definition at line 1105 of file Ribbons.cs.
Referenced by CreateSSlist().
|
private |
Definition at line 78 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures().
|
static |
Definition at line 42 of file Ribbons.cs.
Referenced by GenerateArrowRibbon(), SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().
|
static |
Definition at line 34 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), and SecondaryStructureOldGUI.SecStructMenu().
|
static |
Definition at line 35 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), and SecondaryStructureOldGUI.SecStructMenu().
|
static |
Definition at line 36 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), and SecondaryStructureOldGUI.SecStructMenu().
|
static |
Definition at line 37 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), and SecondaryStructureOldGUI.SecStructMenu().
|
static |
Definition at line 38 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), and SecondaryStructureOldGUI.SecStructMenu().
|
private |
Definition at line 23 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures().
|
static |
Definition at line 32 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.Start().
|
private |
Definition at line 17 of file Ribbons.cs.
|
staticprivate |
Definition at line 19 of file Ribbons.cs.
Referenced by CreateRibbons().
|
private |
Definition at line 1131 of file Ribbons.cs.
Referenced by CreateSSlist().
|
private |
Definition at line 8 of file Ribbons.cs.
List<int> Ribbons.handedlist = new List<int> () |
Definition at line 15 of file Ribbons.cs.
|
private |
Definition at line 21 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures(), and CreateRibbons().
|
static |
Definition at line 30 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.Start().
|
static |
Definition at line 40 of file Ribbons.cs.
Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().
|
private |
Definition at line 24 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures().
|
static |
Definition at line 7 of file Ribbons.cs.
Referenced by ParsePDB.ReadPDB2().
|
staticprivate |
Definition at line 28 of file Ribbons.cs.
|
private |
Definition at line 25 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures().
|
staticprivate |
Definition at line 27 of file Ribbons.cs.
|
static |
Definition at line 18 of file Ribbons.cs.
Referenced by PostProcessing.GenerateMeshes().
|
static |
Definition at line 44 of file Ribbons.cs.
Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().
|
private |
Definition at line 9 of file Ribbons.cs.
|
private |
Definition at line 10 of file Ribbons.cs.
|
private |
Definition at line 11 of file Ribbons.cs.
|
staticprivate |
Definition at line 1206 of file Ribbons.cs.
List<int> Ribbons.sslist = new List<int> () |
Definition at line 16 of file Ribbons.cs.
|
private |
Definition at line 22 of file Ribbons.cs.
Referenced by CalculateSecondaryStructures(), and CreateRibbons().
|
static |
Definition at line 31 of file Ribbons.cs.
Referenced by UI.GUIDisplay.ChangeAllColors(), SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.Start().
|
static |
Definition at line 41 of file Ribbons.cs.
Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().
|
private |
Definition at line 12 of file Ribbons.cs.
|
private |
Definition at line 13 of file Ribbons.cs.