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

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
 

Detailed Description

Definition at line 5 of file Ribbons.cs.

Member Function Documentation

void Ribbons.AddControlPoints ( Vector3  ca0,
Vector3  ox0,
Vector3  ca1,
int  ss,
int  handedness 
)
private

Definition at line 191 of file Ribbons.cs.

References BSpline.GetCPoint(), LinearComb(), and BSpline.SetCPoint().

Referenced by ConstructControlPoints().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Ribbons.CalculateSecondaryStructures ( List< Dictionary< string, Vector3 >>  residueDicts,
int[]  ss,
int[]  handedness 
)
private

Definition at line 84 of file Ribbons.cs.

References CalculateTorsionalAngle(), COIL, HELIX, LHANDED, RHANDED, STRAND, and WeirdDistance().

Referenced by CreateRibbons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float Ribbons.CalculateTorsionalAngle ( Vector3  at0,
Vector3  at1,
Vector3  at2,
Vector3  at3,
bool  print 
)
private

Definition at line 46 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures().

+ Here is the caller graph for this function:

int Ribbons.ComputeNbRes ( string  chain)
private

Definition at line 1092 of file Ribbons.cs.

References Molecule.Model.MoleculeModel.resChainList2.

Referenced by CreateSSlist().

+ Here is the caller graph for this function:

void Ribbons.ConstructControlPoints ( List< Dictionary< string, Vector3 >>  residueDicts,
int  res,
int  ss,
int  handedness 
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

List<int> Ribbons.Copy ( List< int >  l)
private

Definition at line 861 of file Ribbons.cs.

Referenced by CreateRibbons().

+ Here is the caller graph for this function:

void Ribbons.CreateRibbons ( List< Dictionary< string, Vector3 >>  residueDicts,
List< int >  sslist,
List< int >  handedlist 
)
private
void Ribbons.CreateSSlist ( ref List< int >  sslist,
ref List< int >  handednesslist 
)
private

Creates secondary structure list and handedness list using ss informations from the pdb file.

Parameters
sslistSslist.
handednesslistHandednesslist.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

List<float[]> Ribbons.FindHelix ( string  chain)
private

Finds helices by chain in ssHelixList (informations from the pdb file).

Returns
A list of helix.
Parameters
chainChain.

Definition at line 1058 of file Ribbons.cs.

References Molecule.Model.MoleculeModel.helixChainList, and Molecule.Model.MoleculeModel.ssHelixList.

Referenced by CreateSSlist().

+ Here is the caller graph for this function:

List<float[]> Ribbons.FindStrand ( string  chain)
private

Find strands by chain in ssStrandList (informations from the pdb file).

Returns
A list of strand.
Parameters
chainChain.

Definition at line 1079 of file Ribbons.cs.

References Molecule.Model.MoleculeModel.ssStrandList, and Molecule.Model.MoleculeModel.strandChainList.

Referenced by CreateSSlist().

+ Here is the caller graph for this function:

void Ribbons.GenerateArrowRibbon ( List< Vector3 >  vertices,
List< Vector3 >  normals,
List< int >  triangles 
)
private

Definition at line 363 of file Ribbons.cs.

References ARROW_WIDTH, BSpline.Deval(), and BSpline.Feval().

Referenced by CreateRibbons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Ribbons.GenerateFlatRibbon ( List< Vector3 >  vertices,
List< Vector3 >  normals,
List< int >  triangles 
)
private

Definition at line 634 of file Ribbons.cs.

References BSpline.Deval(), and BSpline.Feval().

Referenced by CreateRibbons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Ribbons.GenerateSpline ( int  n,
List< Vector3 >  vertices 
)
private

Definition at line 330 of file Ribbons.cs.

References BSpline.Feval().

Referenced by CreateRibbons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Color32 Ribbons.GetColorChain ( string  type)
static

Definition at line 1226 of file Ribbons.cs.

Referenced by SurfaceManager.ColorVertices(), and CreateRibbons().

+ Here is the caller graph for this function:

static void Ribbons.InitCol ( )
static

Definition at line 1208 of file Ribbons.cs.

References ColorObject.color.

Referenced by SurfaceManager.ColorVertices(), and CreateRibbons().

+ Here is the caller graph for this function:

Vector3 Ribbons.LinearComb ( float  scalar0,
Vector3  vector0,
float  scalar1,
Vector3  vector1 
)
private

Definition at line 186 of file Ribbons.cs.

Referenced by AddControlPoints(), and ConstructControlPoints().

+ Here is the caller graph for this function:

void Ribbons.ShiftControlPoints ( )
private

Definition at line 238 of file Ribbons.cs.

References BSpline.ShiftBSplineCPoints().

Referenced by ConstructControlPoints().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

List<float[]> Ribbons.SortStrand ( List< float[]>  tmpstrandlist)
private

Definition at line 1105 of file Ribbons.cs.

Referenced by CreateSSlist().

+ Here is the caller graph for this function:

float Ribbons.WeirdDistance ( float  x1,
float  y1,
float  x2,
float  y2 
)
private

Definition at line 78 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures().

+ Here is the caller graph for this function:

Member Data Documentation

float Ribbons.ARROW_WIDTH = 1.8f
static
ColorObject Ribbons.ChainColorA = new ColorObject(new Color32( 10, 3,200,50))
static
ColorObject Ribbons.ChainColorB = new ColorObject(new Color32( 10,170, 34,50))
static
ColorObject Ribbons.ChainColorC = new ColorObject(new Color32( 0,150,150,50))
static
ColorObject Ribbons.ChainColorD = new ColorObject(new Color32( 0,180, 0,50))
static
ColorObject Ribbons.ChainColorE = new ColorObject(new Color32( 0,170,200,50))
static
const int Ribbons.COIL = 2
private

Definition at line 23 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures().

ColorObject Ribbons.COIL_COLOR = new ColorObject(new Color32(255,255,255,255))
static
bool Ribbons.createss = false
private

Definition at line 17 of file Ribbons.cs.

string Ribbons.currentchain = ""
staticprivate

Definition at line 19 of file Ribbons.cs.

Referenced by CreateRibbons().

int Ribbons.firstresnb = Molecule.Model.MoleculeModel.firstresnb
private

Definition at line 1131 of file Ribbons.cs.

Referenced by CreateSSlist().

Vector3 Ribbons.flipTestV
private

Definition at line 8 of file Ribbons.cs.

List<int> Ribbons.handedlist = new List<int> ()

Definition at line 15 of file Ribbons.cs.

const int Ribbons.HELIX = 0
private

Definition at line 21 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures(), and CreateRibbons().

ColorObject Ribbons.HELIX_COLOR = new ColorObject(new Color32(255,0,0,255))
static
float Ribbons.HELIX_DIAM = 1.8f
static

Definition at line 40 of file Ribbons.cs.

Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().

const int Ribbons.LHANDED = -1
private

Definition at line 24 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures().

bool Ribbons.mustSplitDictList = false
static

Definition at line 7 of file Ribbons.cs.

Referenced by ParsePDB.ReadPDB2().

int Ribbons.RENDER_MODE = 1
staticprivate

Definition at line 28 of file Ribbons.cs.

const int Ribbons.RHANDED = 1
private

Definition at line 25 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures().

int Ribbons.RIBBON_DETAIL = 4
staticprivate

Definition at line 27 of file Ribbons.cs.

string Ribbons.ribbontag = "RibbonObjA"
static

Definition at line 18 of file Ribbons.cs.

Referenced by PostProcessing.GenerateMeshes().

float [] Ribbons.ribbonWidth = {1.5f, 1.7f, 0.3f}
static

Definition at line 44 of file Ribbons.cs.

Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().

BSpline Ribbons.splineCenter
private

Definition at line 9 of file Ribbons.cs.

BSpline Ribbons.splineSide1
private

Definition at line 10 of file Ribbons.cs.

BSpline Ribbons.splineSide2
private

Definition at line 11 of file Ribbons.cs.

Dictionary<string, Color32> Ribbons.ss_chain_col = null
staticprivate

Definition at line 1206 of file Ribbons.cs.

List<int> Ribbons.sslist = new List<int> ()

Definition at line 16 of file Ribbons.cs.

const int Ribbons.STRAND = 1
private

Definition at line 22 of file Ribbons.cs.

Referenced by CalculateSecondaryStructures(), and CreateRibbons().

ColorObject Ribbons.STRAND_COLOR = new ColorObject(new Color32(0,0,255,255))
static
float Ribbons.THICKNESS = 0.3f
static

Definition at line 41 of file Ribbons.cs.

Referenced by SecondaryStructureOldGUI.SecStructMenu(), and SecSGUI.UpdateRibbonsProp().

int Ribbons.uspacing
private

Definition at line 12 of file Ribbons.cs.

int Ribbons.vIndex
private

Definition at line 13 of file Ribbons.cs.


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