UnityMol  0.9.6-875
UnityMol viewer / In developement
PlotManager.Plotter Class Reference
+ Collaboration diagram for PlotManager.Plotter:

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, Plotterchildren = new Dictionary<string, Plotter>()
 

Detailed Description

Plotter class for generating graphs

Definition at line 110 of file PlotManager.cs.

Constructor & Destructor Documentation

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.

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

PlotManager.Plotter.Plotter ( String  name,
Texture2D  blankGraph,
float  min,
float  max,
Color  plotColor,
Vector2  pos 
)
PlotManager.Plotter.Plotter ( String  name,
Texture2D  blankGraph,
float  min,
float  max,
Color  plotColor,
ref Texture2D  renderTextureReference 
)

Member Function Documentation

void PlotManager.Plotter.Add ( float  y)

Add data to buffer

Parameters
yValue 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

Parameters
childChild plotter reference

Definition at line 402 of file PlotManager.cs.

References PlotManager.Plotter.name.

Referenced by PlotManager.Plotter.InitPlotterChild().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

void PlotManager.Plotter.DrawChild ( )
private

Draw Child Graphs

Definition at line 356 of file PlotManager.cs.

References PlotManager.Plotter.dataIndex, PlotManager.Plotter.DrawLine(), and PlotManager.Plotter.grid.

+ Here is the call graph for this function:

void PlotManager.Plotter.DrawLine ( Texture2D  tex,
int  x0,
int  y0,
int  x1,
int  y1,
Color  col 
)
private

Definition at line 248 of file PlotManager.cs.

Referenced by PlotManager.Plotter.Draw(), and PlotManager.Plotter.DrawChild().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Color [] PlotManager.Plotter.buffer
private

Definition at line 128 of file PlotManager.cs.

Boolean PlotManager.Plotter.child = false

Definition at line 113 of file PlotManager.cs.

Dictionary<String, Plotter> PlotManager.Plotter.children = new Dictionary<string, Plotter>()
private

Definition at line 135 of file PlotManager.cs.

int [] PlotManager.Plotter.data
private

Definition at line 129 of file PlotManager.cs.

bool PlotManager.Plotter.dataFull = false
private

Definition at line 131 of file PlotManager.cs.

int PlotManager.Plotter.dataIndex = -1
private
int PlotManager.Plotter.floor
private
Texture2D PlotManager.Plotter.grid
private
int PlotManager.Plotter.gridHeight = 262
private

Definition at line 120 of file PlotManager.cs.

int PlotManager.Plotter.gridWidth = 354
private
float PlotManager.Plotter.maxValue
private

Definition at line 123 of file PlotManager.cs.

Referenced by PlotManager.Plotter.Plotter().

float PlotManager.Plotter.minValue
private

Definition at line 122 of file PlotManager.cs.

Referenced by PlotManager.Plotter.Plotter().

String PlotManager.Plotter.name = ""
private
Plotter PlotManager.Plotter.Parent
private

Definition at line 114 of file PlotManager.cs.

Color PlotManager.Plotter.plotColor = Color.green
private
float PlotManager.Plotter.scale
private
int PlotManager.Plotter.top
private

Definition at line 126 of file PlotManager.cs.

Referenced by PlotManager.Plotter.Add().

int PlotManager.Plotter.zeroLine = -1
private

Definition at line 133 of file PlotManager.cs.


The documentation for this class was generated from the following file: