Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Visualization.LineGrapher Class Reference

Inherits MonoBehaviour.

Inherited by C2M2.NeuronalDynamics.Interaction.UI.NDLineGraph.

Public Member Functions

virtual void AddValue (float x, float y)
 
void SetLabels (string title="", string xLabel="", string yLabel="")
 
void DestroyPlot ()
 

Public Attributes

RectTransform backgroundPanel = null
 
LineRenderer pointsRenderer
 
GraphCursor cursor = null
 
GraphPointer pointerLines = null
 
RectTransform closeButton = null
 
Color outlineColor
 
Color labelColor
 
RectTransform infoPanel = null
 
RectTransform infoPanelButton = null
 
float graphWidth = 500f
 
float localOriginX = 50f
 
float localOriginY = 50f
 
float globalLineWidth = 4f
 
TextMeshProUGUI title
 
TextMeshProUGUI yLabel
 
TextMeshProUGUI xLabel
 
TextMeshProUGUI xMinLabel
 
TextMeshProUGUI xMaxLabel
 
TextMeshProUGUI yMinLabel
 
TextMeshProUGUI yMaxLabel
 
List< Vector3 > positions
 

Properties

LineRenderer Outline [get, set]
 
int MaxSamples [get, set]
 
string TitleStr [get, set]
 
string YLabelStr [get, set]
 
string XLabelStr [get, set]
 
int XPrecision [get, set]
 
float XMin [get, set]
 
string XMinStr [set]
 
float XMax [get, set]
 
string XMaxStr [set]
 
int YPrecision [get, set]
 
float YMin [get, set]
 
string YMinStr [set]
 
float YMax [get, set]
 
string YMaxStr [set]
 
RectTransform rt [get, private set]
 

Private Member Functions

void Awake ()
 
void UpdateScale ()
 

Private Attributes

LineRenderer outline
 
int maxSamples = 100
 
string titleStr = ""
 
string yLabelStr = ""
 
string xLabelStr = ""
 
int xPrecision = 3
 
string xPrecFormat = "F3"
 
int maxXPrec = 6
 
float xMin = float.PositiveInfinity
 
float xMax = float.NegativeInfinity
 
int yPrecision = 3
 
string yPrecFormat = "F3"
 
int maxYPrec = 6
 
float yMin = float.PositiveInfinity
 
float yMax = float.NegativeInfinity
 

Member Function Documentation

◆ AddValue()

virtual void C2M2.Visualization.LineGrapher.AddValue ( float  x,
float  y 
)
virtual

◆ Awake()

void C2M2.Visualization.LineGrapher.Awake ( )
private

◆ DestroyPlot()

void C2M2.Visualization.LineGrapher.DestroyPlot ( )

◆ SetLabels()

void C2M2.Visualization.LineGrapher.SetLabels ( string  title = "",
string  xLabel = "",
string  yLabel = "" 
)

◆ UpdateScale()

void C2M2.Visualization.LineGrapher.UpdateScale ( )
private

Instead of rescaling the entire array of values each frame, this scales the line renderer's transform, saving tons of performance over rescaling each point individually

Member Data Documentation

◆ backgroundPanel

RectTransform C2M2.Visualization.LineGrapher.backgroundPanel = null

◆ closeButton

RectTransform C2M2.Visualization.LineGrapher.closeButton = null

◆ cursor

GraphCursor C2M2.Visualization.LineGrapher.cursor = null

◆ globalLineWidth

float C2M2.Visualization.LineGrapher.globalLineWidth = 4f

◆ graphWidth

float C2M2.Visualization.LineGrapher.graphWidth = 500f

◆ infoPanel

RectTransform C2M2.Visualization.LineGrapher.infoPanel = null

◆ infoPanelButton

RectTransform C2M2.Visualization.LineGrapher.infoPanelButton = null

◆ labelColor

Color C2M2.Visualization.LineGrapher.labelColor

◆ localOriginX

float C2M2.Visualization.LineGrapher.localOriginX = 50f

◆ localOriginY

float C2M2.Visualization.LineGrapher.localOriginY = 50f

◆ maxSamples

int C2M2.Visualization.LineGrapher.maxSamples = 100
private

◆ maxXPrec

int C2M2.Visualization.LineGrapher.maxXPrec = 6
private

◆ maxYPrec

int C2M2.Visualization.LineGrapher.maxYPrec = 6
private

◆ outline

LineRenderer C2M2.Visualization.LineGrapher.outline
private

◆ outlineColor

Color C2M2.Visualization.LineGrapher.outlineColor

◆ pointerLines

GraphPointer C2M2.Visualization.LineGrapher.pointerLines = null

◆ pointsRenderer

LineRenderer C2M2.Visualization.LineGrapher.pointsRenderer

◆ positions

List<Vector3> C2M2.Visualization.LineGrapher.positions

◆ title

TextMeshProUGUI C2M2.Visualization.LineGrapher.title

◆ titleStr

string C2M2.Visualization.LineGrapher.titleStr = ""
private

◆ xLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.xLabel

◆ xLabelStr

string C2M2.Visualization.LineGrapher.xLabelStr = ""
private

◆ xMax

float C2M2.Visualization.LineGrapher.xMax = float.NegativeInfinity
private

◆ xMaxLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.xMaxLabel

◆ xMin

float C2M2.Visualization.LineGrapher.xMin = float.PositiveInfinity
private

◆ xMinLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.xMinLabel

◆ xPrecFormat

string C2M2.Visualization.LineGrapher.xPrecFormat = "F3"
private

◆ xPrecision

int C2M2.Visualization.LineGrapher.xPrecision = 3
private

◆ yLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.yLabel

◆ yLabelStr

string C2M2.Visualization.LineGrapher.yLabelStr = ""
private

◆ yMax

float C2M2.Visualization.LineGrapher.yMax = float.NegativeInfinity
private

◆ yMaxLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.yMaxLabel

◆ yMin

float C2M2.Visualization.LineGrapher.yMin = float.PositiveInfinity
private

◆ yMinLabel

TextMeshProUGUI C2M2.Visualization.LineGrapher.yMinLabel

◆ yPrecFormat

string C2M2.Visualization.LineGrapher.yPrecFormat = "F3"
private

◆ yPrecision

int C2M2.Visualization.LineGrapher.yPrecision = 3
private

Property Documentation

◆ MaxSamples

int C2M2.Visualization.LineGrapher.MaxSamples
getset

◆ Outline

LineRenderer C2M2.Visualization.LineGrapher.Outline
getset

◆ rt

RectTransform C2M2.Visualization.LineGrapher.rt
getprivate set

◆ TitleStr

string C2M2.Visualization.LineGrapher.TitleStr
getset

◆ XLabelStr

string C2M2.Visualization.LineGrapher.XLabelStr
getset

◆ XMax

float C2M2.Visualization.LineGrapher.XMax
getset

◆ XMaxStr

string C2M2.Visualization.LineGrapher.XMaxStr
setprivate

◆ XMin

float C2M2.Visualization.LineGrapher.XMin
getset

◆ XMinStr

string C2M2.Visualization.LineGrapher.XMinStr
setprivate

◆ XPrecision

int C2M2.Visualization.LineGrapher.XPrecision
getset

◆ YLabelStr

string C2M2.Visualization.LineGrapher.YLabelStr
getset

◆ YMax

float C2M2.Visualization.LineGrapher.YMax
getset

◆ YMaxStr

string C2M2.Visualization.LineGrapher.YMaxStr
setprivate

◆ YMin

float C2M2.Visualization.LineGrapher.YMin
getset

◆ YMinStr

string C2M2.Visualization.LineGrapher.YMinStr
setprivate

◆ YPrecision

int C2M2.Visualization.LineGrapher.YPrecision
getset

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