35     public static Texture2D 
helixButton = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    37     public static Texture2D 
sheetButton = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    39     public static Texture2D 
coilButton = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    41     public static Texture2D 
chainbuttonA = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    43     public static Texture2D 
chainbuttonB = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    45     public static Texture2D 
chainbuttonC = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    47     public static Texture2D 
chainbuttonD = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    49     public static Texture2D 
chainbuttonE = 
new Texture2D(20,10,TextureFormat.ARGB32,
false);
    62         GUILayout.BeginHorizontal();
    63         GUILayout.Box(
"Secondary structures");
    64         GUILayout.EndHorizontal();
    66         GUILayout.BeginHorizontal();
    68             new GUIContent(
"Enable Secondary structures", 
"Switch between all-atoms and secondary structures representation"));
    70         if(!ssToggled && toggle_SEC_STRUCT) { 
    77             if (ssToggled && !toggle_SEC_STRUCT) { 
    86         GUILayout.EndHorizontal();
    99         GUILayout.BeginHorizontal();
   101             "Helix Width: " + 
Ribbons.
ribbonWidth[0].ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   102         GUILayout.EndHorizontal();
   104         GUILayout.BeginHorizontal();
   106             "Sheet Width: " + 
Ribbons.
ribbonWidth[1].ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   107         GUILayout.EndHorizontal();
   109         GUILayout.BeginHorizontal();
   111             "Coil Width: " + 
Ribbons.
ribbonWidth[2].ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   112         GUILayout.EndHorizontal();
   114         GUILayout.BeginHorizontal();
   116             "Thickness: " + 
Ribbons.
THICKNESS.ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   117         GUILayout.EndHorizontal();
   119         GUILayout.BeginHorizontal();
   121             "Helix diameter: " + 
Ribbons.
HELIX_DIAM.ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   122         GUILayout.EndHorizontal();
   124         GUILayout.BeginHorizontal();
   126             "Arrow width: " + 
Ribbons.
ARROW_WIDTH.ToString(
"0.00"), 
"", 
true, sliderWidth, labelWidth, 
true);
   127         GUILayout.EndHorizontal();
   129         GUILayout.BeginHorizontal ();
   132         if(GUILayout.Button(
new GUIContent(
"Color by ss")))
   134         GUILayout.EndHorizontal();
   137             GUILayout.BeginHorizontal();
   138             GUILayout.Label(
"Helix Color :");
   139             GUILayout.FlexibleSpace();
   140             if(GUILayout.Button(helixButton,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   143             GUILayout.EndHorizontal();
   145             GUILayout.BeginHorizontal();
   146             GUILayout.Label(
"Sheet Color :");
   147             GUILayout.FlexibleSpace();
   148             if(GUILayout.Button(sheetButton,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   151             GUILayout.EndHorizontal();
   153             GUILayout.BeginHorizontal();
   154             GUILayout.Label(
"Coil Color :");
   155             GUILayout.FlexibleSpace();
   156             if(GUILayout.Button(coilButton,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   159             GUILayout.EndHorizontal();
   163         GUILayout.BeginHorizontal ();
   166         if(GUILayout.Button(
new GUIContent(
"Color by chain")))
   168         GUILayout.EndHorizontal();
   173                 GUILayout.BeginHorizontal();
   175                     new GUIContent(
"Show domains", 
"Color by domains"));
   176                 GUILayout.EndHorizontal();}
   178             GUILayout.BeginHorizontal();
   179             GUILayout.Label(
"Chain A :");
   180             if(GUILayout.Button(chainbuttonA,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   183             GUILayout.EndHorizontal();
   185             GUILayout.BeginHorizontal();
   186             GUILayout.Label(
"Chain B :");
   187             if(GUILayout.Button(chainbuttonB,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   190             GUILayout.EndHorizontal();
   192             GUILayout.BeginHorizontal();
   193             GUILayout.Label(
"Chain C :");
   194             if(GUILayout.Button(chainbuttonC,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   197             GUILayout.EndHorizontal();
   199             GUILayout.BeginHorizontal();
   200             GUILayout.Label(
"Chain D :");
   201             if(GUILayout.Button(chainbuttonD,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   204             GUILayout.EndHorizontal();
   206             GUILayout.BeginHorizontal();
   207             GUILayout.Label(
"Chain E :");
   208             if(GUILayout.Button(chainbuttonE,GUILayout.MinWidth(100),GUILayout.MinHeight(20))){
   211             GUILayout.EndHorizontal();
   214         GUILayout.BeginHorizontal();
   218         if(GUILayout.Button(
new GUIContent(
"Apply changes"))) {
   227         GUILayout.EndHorizontal();
   244         GUILayout.BeginHorizontal();
   245         GUILayout.Box(
"Bfactor Representation");
   246         GUILayout.EndHorizontal();
   248         GUILayout.BeginHorizontal();
   250         GUILayout.EndHorizontal ();
   251         GUILayout.BeginHorizontal();
   253         GUILayout.EndHorizontal ();
   254         GUILayout.BeginHorizontal();
   256         GUILayout.EndHorizontal ();
   257         GUILayout.BeginHorizontal();
   259         GUILayout.EndHorizontal ();
   265         if(st == 
"All atoms")
   266             return(
"C-alpha trace");
   272         if(st == 
"All atoms")
   321         GUILayout.BeginHorizontal ();
   327                 structType = 
"All atoms";
   333                 structType = 
"B Factor";
   351         GUILayout.EndHorizontal ();
   352         if (Event.current.type == EventType.Repaint)
   385         bool isChain = (structType == 
"B Factor");
   390             "Smoothness", 
"Smoothness of the Bfactor color/radius Representation", isChain, sliderWidth, labelWidth, 
true);
   401         if (Event.current.type == EventType.Repaint)
   410         bool isChain = (structType == 
"B Factor");
   416         highBFradius = 
GUIMoleculeController.
LabelSlider(highBFradius, 1.0f, 2.0f, 
"High value radius", 
"Set highest Bfactor radius value", isChain, sliderWidth, labelWidth, 
true);
   428         bool isChain = (structType == 
"B Factor");
   431         GUI.enabled = isChain;
   433         GUILayout.Label (
"Choose scale");
   434         GUILayout.Label (
"Min");
   437         GUILayout.Label (
"Max");
   440         GUILayout.EndHorizontal ();
   441         GUILayout.BeginHorizontal ();
   443         if (GUILayout.Button (
new GUIContent (
"Rescaling", 
"Rescale Bfactor values"), GUILayout.Width (buttonWidth))) {
   451         if (GUILayout.Button (
new GUIContent (
"Reset", 
"Reset to original Bfactor values"), GUILayout.Width (buttonWidth))){
 static bool toggle_NA_HIDE
 
static float highBFradius
Radius used for the highest B factor value. 
 
static int smoothnessFactor
 
static ColorObject ChainColorD
 
static bool ssDivCol
When true, triggers the per domain coloring. 
 
static Texture2D chainbuttonB
 
static Texture2D chainbuttonC
 
static string structTypeButtonLabel(string st)
 
static bool secondarystruct
Switch between all atoms and C-alpha trace or BFactor secondary structure representation. 
 
static Texture2D chainbuttonE
 
static Color[] chainbuttonAnew
 
static Texture2D chainbuttonA
 
static int secStructMenuWidth
 
static ColorObject ChainColorB
 
static void HideMolecule()
 
static bool toggle_bf
Triggers the C-alpha trace regeneration when switching to it. 
 
static void CreateBFRep()
 
static Color[] chainbuttonBnew
 
static float[] ribbonWidth
 
static bool toggle_SEC_STRUCT
Triggers the switch between atom and secondary structure generation and rendering. 
 
static bool ssColChain
When true, triggers the per chain secondary structure coloring. 
 
static ColorObject COIL_COLOR
 
static void ChooseSmoothness_BF()
Chooses the smoothness of the BFactor color/radius Representation. 
 
static Color[] coilButtonNew
 
static Color[] helixButtonNew
 
static void DestroyAtomsAndBonds()
 
static void SecStructMenu(int a)
Defines the menu for handling secondary structures (with ribbons) 
 
static Texture2D coilButton
 
static ColorObject ChainColorC
 
static bool changeStructure
 
static void ChooseStructure_BF()
Induces switch between all-atom and Bfactor color/radius representation 
 
static Texture2D sheetButton
 
static List< float[]> CatomsLocationlist
The coordinates of each Carbon alpha. 
 
static ColorObject ChainColorA
 
static Color[] sheetButtonNew
 
static bool ssColStruct
When true, triggers the per secondary structure type coloring. 
 
static Color[] chainbuttonEnew
 
static string structType
The current rendered structure type. 
 
static bool isRescale
When true, triggers the B factor value rescaling. 
 
static float LabelSlider(float sliderValue, float sliderMinValue, float sliderMaxValue, string labelText, string toolTip, bool enable, int sliderwidth, int labelwidth=100, bool newLine=false)
 
static void MinMaxChoice()
Chooses min and max values to use for BFactor Representation 
 
!WiP Includes FLAGS of GUI. 
 
static SecondaryStructureManager getSecondaryStructureManager()
 
static ColorObject STRAND_COLOR
 
static bool SetTitleExit(string s)
This is a somewhat odd but very convenient function. 
 
static Color[] chainbuttonCnew
 
static void SetHighBFSlider()
Display slider setting the radius value for the highest Bfactor 
 
static void CreateColorPicker(ColorObject col, string title, List< string > atomTarget, string residueTarget="All", string chainTarget="All")
 
static ColorObject ChainColorE
 
static string structTypeButtonLabel_BF(string st)
 
static Color[] chainbuttonDnew
 
static float globalRadius
 
static bool hasMoleculeDisplay
 
static void ShowMolecule()
 
static Texture2D chainbuttonD
 
static bool showSecStructMenu
Triggers the secondary structure menu display. 
 
static Texture2D helixButton
 
static void SetAtomStyle()
Sets the atom style. 
 
static ColorObject HELIX_COLOR