3 using System.Collections.Generic;
24 totalEnergyGameObject = GameObject.CreatePrimitive(PrimitiveType.Quad);
25 totalEnergyGameObject.name =
"TotalEnergyPlot";
27 totalEnergyGameObject.transform.parent = Camera.main.transform;
28 totalEnergyGameObject.transform.LookAt(-Camera.main.transform.position);
30 totalEnergyGameObject.GetComponent<MeshRenderer>().material =
new Material(Shader.Find(
"Transparent/Zsorted"));
35 totalEnergyGameObject.transform.localPosition =
new Vector3(0f, 0f, 3f);
36 totalEnergyGameObject.transform.rotation = Camera.main.transform.rotation;
38 toggleTotalEnergyPlot =
true;
43 toggleTotalEnergyPlot =
true;
44 totalEnergyGameObject.SetActive(
true);
49 totalEnergyGameObject.SetActive(
false);
51 toggleTotalEnergyPlot =
false;
58 GameObject.Destroy(totalEnergyGameObject);
60 toggleTotalEnergyPlot =
false;
68 hbondsEnergyGameObject = GameObject.CreatePrimitive(PrimitiveType.Quad);
69 hbondsEnergyGameObject.name =
"HBondsEnergyPlot";
71 hbondsEnergyGameObject.transform.parent = Camera.main.transform;
72 hbondsEnergyGameObject.transform.LookAt(-Camera.main.transform.position);
74 hbondsEnergyGameObject.GetComponent<MeshRenderer>().material =
new Material(Shader.Find(
"Transparent/Zsorted"));
79 hbondsEnergyGameObject.transform.localPosition =
new Vector3(0f, 0f, 3f);
80 hbondsEnergyGameObject.transform.rotation = Camera.main.transform.rotation;
82 toggleHBondsEnergyPlot =
true;
87 toggleHBondsEnergyPlot =
true;
88 hbondsEnergyGameObject.SetActive(
true);
93 hbondsEnergyGameObject.SetActive(
false);
95 toggleHBondsEnergyPlot =
false;
102 GameObject.Destroy(hbondsEnergyGameObject);
104 toggleHBondsEnergyPlot =
false;
112 stackingEnergyGameObject = GameObject.CreatePrimitive(PrimitiveType.Quad);
113 stackingEnergyGameObject.name =
"TotalEnergyPlot";
115 stackingEnergyGameObject.transform.parent = Camera.main.transform;
116 stackingEnergyGameObject.transform.LookAt(-Camera.main.transform.position);
118 stackingEnergyGameObject.GetComponent<MeshRenderer>().material =
new Material(Shader.Find(
"Transparent/Zsorted"));
123 stackingEnergyGameObject.transform.localPosition =
new Vector3(0f, 0f, 3f);
124 stackingEnergyGameObject.transform.rotation = Camera.main.transform.rotation;
126 toggleStackingEnergyPlot =
true;
131 toggleStackingEnergyPlot =
true;
132 stackingEnergyGameObject.SetActive(
true);
137 stackingEnergyGameObject.SetActive(
false);
139 toggleStackingEnergyPlot =
false;
146 GameObject.Destroy(stackingEnergyGameObject);
148 toggleStackingEnergyPlot =
false;
static bool toggleIMDStackingEnergy
static Texture2D totalEnergyPlotTexture
static bool toggleHBondsEnergyPlot
static GUIStyle artemisPlotWhiteStyle
static bool toggleIMDTotalEnergy
void PlotDestroy(String plotName)
void PlotCreate(String plotName, float min, float max, Color plotColor, Vector2 pos)
Instantiate a new new plot graph
static void deactivateTotalEnergyPlot()
static GameObject totalEnergyGameObject
abstract void ResetIMDSimulationPositions()
static PlotManager Instance
Instance of object
static bool toggleTotalEnergyPlot
static bool toggleStackingEnergyPlot
static void destroyStackingEnergyPlot()
static GUIStyle artemisPlotRedStyle
static void activateStackingEnergyPlot()
static GameObject hbondsEnergyGameObject
static void destroyHBondsEnergyPlot()
static void deactivateStackingEnergyPlot()
static void instantiateStackingEnergyPlot()
static void activateTotalEnergyPlot()
static GameObject stackingEnergyGameObject
!WiP manage GUI, and provide static strings for the GUI.
static void deactivateHBondsEnergyPlot()
static Texture2D stackingEnergyPlotTexture
static Texture2D hbondsEnergyPlotTexture
static void instanciateHBondsEnergyPlot()
static void destroyTotalEnergyPlot()
static bool toggleIMDHBondsEnergy
static GenericManager getCurrentBondManager()
static void instanciateTotalEnergyPlot()
static GUIStyle artemisPlotGreenStyle
static void activateHBondsEnergyPlot()
static GenericManager getCurrentAtomManager()