1 using System.Collections.Generic;
78 public static ArrayList atomOrderList=
new ArrayList();
82 public static GameObject AtomSphereParent =
new GameObject(
"AtomSphereParent");
96 if(AtomSphereParent == null)
97 AtomSphereParent =
new GameObject(
"AtomSphereParent");
106 atomtype = type_atom;
116 GameObject sphereManagerObj = GameObject.FindGameObjectWithTag(
"SphereManager");
118 sphereManager.
Init();
126 Vector3 vl=
new Vector3();
128 List<GameObject> gameObjectList =
new List<GameObject>();
130 for(
int i=0;i<alist.Count;i++)
135 float [] a=alist[i] as
float[];
142 o = GameObject.CreatePrimitive(PrimitiveType.Sphere);
143 gameObjectList.Add(o);
144 o.transform.position = vl;
146 o.transform.parent = AtomSphereParent.transform;
150 comp1.enabled =
true;
152 o.transform.GetComponent<Renderer>().material.SetColor(
"_Color", aModel.
baseColor);
virtual void SetRayonFactor(float rf)
static bool secondarystruct
Switch between all atoms and C-alpha trace or BFactor secondary structure representation.
void DisplayAtomMethodBySphere(IList alist, IList typelist)
static List< AtomModel > atomsTypelist
The type of each atom.
void DisplayAtoms(UIData.AtomType type_atom, bool force_display=false)
static List< float[]> CaSplineList
The coordinates of each Carbon alpha in the CA-Spline.
!WiP Includes FLAGS of GUI.
static bool isParticlesInitialized
override void Init()
Initializes this sphere manager.
static GameObject[] sphereGameObjects
static bool isSphereLoaded
static List< AtomModel > CaSplineTypeList
Type of each carbon alpha in the CA-Spline.
static List< float[]> atomsLocationlist
The coordinates of each atom.