3 using System.Collections.Generic;
47 if(ringblending == null)
52 for(
int i=0;i<ringBlendingList.Count;i++)
53 GameObject.Destroy(ringBlendingList[i]);
54 ringBlendingList.Clear();
61 List<List<GameObject>> allrings = SR.
createSugarRibs(RibbonsThickness, sugaronly, thickness_Little, thickness_BIG,
62 thickness_bond_6_C1_C4, thickness_6_other, thickness_bond_5, lighter_color_factor_ring, lighter_color_factor_bond,
63 ColorationModeRing, ColorationModeBond, BondColor, RingColor, OxySphereSize,OxySphereColor);
65 sugarRibsLittleList.AddRange(allrings[0]);
66 sugarRibsBigList.AddRange(allrings[1]);
67 sugarRibsBondList.AddRange(allrings[2]);
70 BondColorcheck.
color=Color.white;
71 BondColor.
color=Color.white;
72 RingColorcheck.
color = Color.white;
73 RingColor.
color = Color.white;
74 OxySphereColorCheck.
color = Color.red;
81 for(
int i=0;i<sugarRibsBigList.Count;i++)
82 GameObject.Destroy(sugarRibsBigList[i]);
83 sugarRibsBigList.Clear();
84 for(
int i=0;i<sugarRibsLittleList.Count;i++)
85 GameObject.Destroy(sugarRibsLittleList[i]);
86 sugarRibsLittleList.Clear();
87 for(
int i=0;i<sugarRibsBondList.Count;i++)
88 GameObject.Destroy(sugarRibsBondList[i]);
89 sugarRibsBondList.Clear();
99 for(
int i=0;i<oxySphereList.Count;i++)
100 GameObject.Destroy(oxySphereList[i]);
101 oxySphereList.Clear();
105 for(
int i=0;i<oxySphereList.Count;i++)
106 oxySphereList[i].transform.localScale =
new Vector3(OxySphereSize, OxySphereSize, OxySphereSize);
110 for(
int i=0;i<oxySphereList.Count;i++)
111 oxySphereList[i].GetComponent<Renderer>().material.color = OxySphereColor.
color;
114 return oxySphereList.Count;
133 RibbonsThickness=0.15f;
134 thickness_Little=1.8f;
136 thickness_bond_6_C1_C4=0.2f;
137 thickness_6_other=0.16f;
138 thickness_bond_5=0.2f;
139 lighter_color_factor_ring=0.35f;
140 lighter_color_factor_bond=0.35f;
141 ColorationModeRing=0;
142 ColorationModeBond=0;
144 OxySphereColor.
color=Color.red;
145 lighter_color_factor_bond=0.35f;
146 lighter_color_factor_ring=0.35f;
199 GameObject hbmeshManagerObj = GameObject.FindGameObjectWithTag(
"HBallMeshManager");
201 GameObject hStickMeshManagerObj = GameObject.FindGameObjectWithTag(
"HStickMeshManager");
247 GameObject hbmeshManagerObj = GameObject.FindGameObjectWithTag(
"HBallMeshManager");
249 GameObject hStickMeshManagerObj = GameObject.FindGameObjectWithTag(
"HStickMeshManager");
static bool toggle_NA_HIDE
static void UpdateOxySphereSize()
static void ShowRingOxySphere()
static void CreateRingBlending()
static StickUpdate[] sticks
static void DestroyOxySphere()
static int ColorationModeBond
static float OxySphereSizeCheck
void hideAtom(int idAtom, bool show)
static void ResetSugarRibbons(bool sugaronly=false)
static float lighter_color_factor_bond
static void DestroySugarRibs()
static float thickness_6_other
static bool toggle_OXYGEN
static float thickness_bond_6_C1_C4
static void UpdateSugarRibsBondColor(int mode=-1)
static void ShowOxySphere(int colotype=0)
static void show_HyperBalls_Sugar(bool show)
this class is made to fill cycle inside a molecule with a semi-transparent polygon to have a effect o...
static void UpdateSugarRibsRingColor(int mode=-1)
static void DestroyRingBlending()
static ColorObject OxySphereColorCheck
List< GameObject > CreateRingBlending()
This function will convert the molecule to a "graph" (an object "GraphVertex" is made from each atoms...
static ColorObject RingColorcheck
static List< AtomModel > atomsTypelist
The type of each atom.
List< GameObject > ShowOxySphere()
static int OxySphereCount()
static ColorObject BondColor
static float RibbonsThickness
static BallUpdateHB[] hballs
List< List< GameObject > > createSugarRibs(float RibbonsThickness, bool sugarOnly, float thickness_Little, float thickness_BIG, float thickness_bond_6_C1_C4, float thickness_6_other, float thickness_bond_5, float lighter_color_factor_ring, float lighter_color_factor_bond, int color_mode_ring, int color_mode_bond, ColorObject bondcolor, ColorObject ringcolor, float OxySphereSize, ColorObject OxySphereColor)
static void CreateSugarRibs(bool sugaronly)
static float lighter_color_factor_bond_check
static float thickness_bond_5
void hideBondForAtom(int idAtom, bool show)
static float lighter_color_factor_ring
static List< GameObject > ringBlendingList
List< GameObject > ShowOxySphere(int colortype)
!WiP Includes FLAGS of GUI.
static List< GameObject > sugarRibsBondList
static ColorObject RingColor
static void UpdateOxySphereColor()
static ColorObject OxySphereColor
static List< GameObject > sugarRibsLittleList
static void ResetDefaultParametersSugarRibbons()
static List< string > atomsResnamelist
The name of the residue to which each atom belongs.
static RingBlending ringblending
void updateColorRing(List< GameObject > objs, ColorObject newColor)
static List< string > sugarResname
static float thickness_BIG
static float lighter_color_factor_ring_check
static float thickness_Little
static List< GameObject > sugarRibsBigList
static void Hide_No_Sugar_Hyperballs(bool show)
static float OxySphereSize
static int ColorationModeRing
void updateColorBond(List< GameObject > objs, ColorObject newColor)
static ColorObject BondColorcheck
static List< GameObject > oxySphereList