![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
Plotter (String name, Texture2D blankGraph, Color plotColor, Plotter parent) | |
Plotter (String name, Texture2D blankGraph, float min, float max, Color plotColor, Plotter parent) | |
void | InitPlotterChild (String name, Texture2D blankGraph, float min, float max, Color plotColor, Plotter parent) |
Plotter (String name, Texture2D blankGraph, float min, float max, Color plotColor, Vector2 pos) | |
Plotter (String name, Texture2D blankGraph, float min, float max, Color plotColor, ref Texture2D renderTextureReference) | |
void | Add (float y) |
void | Draw () |
void | AddChild (Plotter child) |
Public Attributes | |
Boolean | child = false |
Private Member Functions | |
void | DrawLine (Texture2D tex, int x0, int y0, int x1, int y1, Color col) |
void | DrawChild () |
Private Attributes | |
Plotter | Parent |
String | name = "" |
Color | plotColor = Color.green |
Texture2D | grid |
int | gridWidth = 354 |
int | gridHeight = 262 |
float | minValue |
float | maxValue |
float | scale |
int | floor |
int | top |
Color[] | buffer |
int[] | data |
int | dataIndex = -1 |
bool | dataFull = false |
int | zeroLine = -1 |
Dictionary< String, Plotter > | children = new Dictionary<string, Plotter>() |
Plotter class for generating graphs
Definition at line 110 of file PlotManager.cs.
PlotManager.Plotter.Plotter | ( | String | name, |
Texture2D | blankGraph, | ||
Color | plotColor, | ||
Plotter | parent | ||
) |
Definition at line 137 of file PlotManager.cs.
References PlotManager.Plotter.InitPlotterChild(), PlotManager.Plotter.maxValue, and PlotManager.Plotter.minValue.
PlotManager.Plotter.Plotter | ( | String | name, |
Texture2D | blankGraph, | ||
float | min, | ||
float | max, | ||
Color | plotColor, | ||
Plotter | parent | ||
) |
Definition at line 142 of file PlotManager.cs.
References PlotManager.Plotter.InitPlotterChild().
PlotManager.Plotter.Plotter | ( | String | name, |
Texture2D | blankGraph, | ||
float | min, | ||
float | max, | ||
Color | plotColor, | ||
Vector2 | pos | ||
) |
Definition at line 173 of file PlotManager.cs.
References PlotManager.Plotter.floor, PlotManager.Plotter.grid, PlotManager.Plotter.gridWidth, PlotManager.Plotter.name, PlotManager.Plotter.plotColor, PlotManager.Plotter.scale, and ArtemisClientLoop.totalEnergyPlotTexture.
PlotManager.Plotter.Plotter | ( | String | name, |
Texture2D | blankGraph, | ||
float | min, | ||
float | max, | ||
Color | plotColor, | ||
ref Texture2D | renderTextureReference | ||
) |
Definition at line 201 of file PlotManager.cs.
References PlotManager.Plotter.floor, PlotManager.Plotter.grid, PlotManager.Plotter.gridWidth, PlotManager.Plotter.name, PlotManager.Plotter.plotColor, and PlotManager.Plotter.scale.
void PlotManager.Plotter.Add | ( | float | y | ) |
Add data to buffer
y | Value to add |
Definition at line 232 of file PlotManager.cs.
References PlotManager.Plotter.dataIndex, PlotManager.Plotter.floor, PlotManager.Plotter.scale, and PlotManager.Plotter.top.
void PlotManager.Plotter.AddChild | ( | Plotter | child | ) |
Link a child Plotter to this
child | Child plotter reference |
Definition at line 402 of file PlotManager.cs.
References PlotManager.Plotter.name.
Referenced by PlotManager.Plotter.InitPlotterChild().
void PlotManager.Plotter.Draw | ( | ) |
Draw the graph.
(Must be called from OnGui)
Definition at line 294 of file PlotManager.cs.
References PlotManager.Plotter.dataIndex, and PlotManager.Plotter.DrawLine().
|
private |
Draw Child Graphs
Definition at line 356 of file PlotManager.cs.
References PlotManager.Plotter.dataIndex, PlotManager.Plotter.DrawLine(), and PlotManager.Plotter.grid.
|
private |
Definition at line 248 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Draw(), and PlotManager.Plotter.DrawChild().
void PlotManager.Plotter.InitPlotterChild | ( | String | name, |
Texture2D | blankGraph, | ||
float | min, | ||
float | max, | ||
Color | plotColor, | ||
Plotter | parent | ||
) |
Definition at line 147 of file PlotManager.cs.
References PlotManager.Plotter.AddChild(), PlotManager.Plotter.floor, PlotManager.Plotter.grid, PlotManager.Plotter.gridWidth, PlotManager.Plotter.name, PlotManager.Plotter.plotColor, and PlotManager.Plotter.scale.
Referenced by PlotManager.Plotter.Plotter().
|
private |
Definition at line 128 of file PlotManager.cs.
Boolean PlotManager.Plotter.child = false |
Definition at line 113 of file PlotManager.cs.
|
private |
Definition at line 135 of file PlotManager.cs.
|
private |
Definition at line 129 of file PlotManager.cs.
|
private |
Definition at line 131 of file PlotManager.cs.
|
private |
Definition at line 130 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Add(), PlotManager.Plotter.Draw(), and PlotManager.Plotter.DrawChild().
|
private |
Definition at line 125 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Add(), PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 118 of file PlotManager.cs.
Referenced by PlotManager.Plotter.DrawChild(), PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 120 of file PlotManager.cs.
|
private |
Definition at line 119 of file PlotManager.cs.
Referenced by PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 123 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Plotter().
|
private |
Definition at line 122 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Plotter().
|
private |
Definition at line 115 of file PlotManager.cs.
Referenced by PlotManager.Plotter.AddChild(), PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 114 of file PlotManager.cs.
|
private |
Definition at line 116 of file PlotManager.cs.
Referenced by PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 124 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Add(), PlotManager.Plotter.InitPlotterChild(), and PlotManager.Plotter.Plotter().
|
private |
Definition at line 126 of file PlotManager.cs.
Referenced by PlotManager.Plotter.Add().
|
private |
Definition at line 133 of file PlotManager.cs.