Torque3D Documentation / _generateds / GuiParticleGraphCtrl

GuiParticleGraphCtrl

Engine/source/gui/editor/guiParticleGraphCtrl.h

More...

Classes:

Public Types

enum
Constants {
  MaxPlots = 32
  MaxDataPoints = 200
}
enum
GraphType {
  Point 
  Polyline 
  Filled 
  Bar 
}

Private Types

Parent 

Protected Attributes

The color of the nuts.

The outline color of the nuts.

The rectangle size to check for clicks on nuts (default 8) which is RectI( pointClick - 4, pointClick - 4, 8, 8 )

Protected Functions

Public Functions

addPlotPoint(S32 plotID, Point2F v, bool setAdded)
DECLARE_CATEGORY("Gui Editor" )
drawNut(const Point2I & nut, S32 size, ColorI & outlineColor, ColorI & nutColor)
getPlotIndex(S32 plotID, F32 x, F32 y)
getPlotPoint(S32 plotID, S32 samples)
bool
inNut(const Point2I & pt, S32 x, S32 y)
bool
isExistingPoint(S32 plotID, S32 point)
onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

bool
setAutoGraphMax(bool autoMax)
setAutoRemove(bool autoRemove)
setGraphHidden(S32 plotID, bool isHidden)
setGraphMax(S32 plotID, Point2F graphMax)
setGraphMaxX(S32 plotID, F32 graphMaxX)
setGraphMaxY(S32 plotID, F32 graphMaxY)
setGraphMin(S32 plotID, Point2F graphMin)
setGraphMinX(S32 plotID, F32 graphMinX)
setGraphMinY(S32 plotID, F32 graphMinY)
setGraphType(S32 plotID, const char * graphType)
setRenderAll(bool renderAll)
setRenderGraphTooltip(bool renderGraphTooltip)

Detailed Description

Public Types

Constants

Enumerator

MaxPlots = 32
MaxDataPoints = 200
GraphType

Enumerator

Point
Polyline
Filled
Bar

Private Types

typedef GuiControl Parent 

Protected Attributes

ColorI mNutColor 

The color of the nuts.

ColorI mOutlineColor 

The outline color of the nuts.

S32 mVertexClickSize 

The rectangle size to check for clicks on nuts (default 8) which is RectI( pointClick - 4, pointClick - 4, 8, 8 )

Public Attributes

Point2F mAddedPoint 
S32 mAddedPointIndex 
bool mAutoMax 
bool mAutoRemove 
Point2I mCursorPos 
Point2F mLastMousePos 
S32 mLastSelectedPoint 
S32 mOriginalSelectedPoint 
PlotInfo mPlots [MaxPlots]
bool mPointWasAdded 
bool mPointXMovementClamped 
bool mRenderAllPoints 
bool mRenderGraphTooltip 
bool mRenderNextGraphTooltip 
S32 mSelectedPlot 
S32 mSelectedPoint 
S32 mTooltipSelectedPlot 

Protected Functions

findHitNut(Point2I hitPoint)

Public Functions

GuiParticleGraphCtrl()

~GuiParticleGraphCtrl()

addPlotPoint(S32 plotID, Point2F v, bool setAdded)

changePlotPoint(S32 plotID, S32 i, Point2F v)

clearAllGraphs()

clearGraph(S32 plotID)

convertToGraphCoord(S32 plotID, Point2I v)

DECLARE_CATEGORY("Gui Editor" )

DECLARE_CONOBJECT(GuiParticleGraphCtrl )

drawNut(const Point2I & nut, S32 size, ColorI & outlineColor, ColorI & nutColor)

getGraphColor(S32 plotID)

getGraphExtent(S32 plotID)

getGraphMax(S32 plotID)

getGraphMin(S32 plotID)

getGraphName(S32 plotID)

getPlotIndex(S32 plotID, F32 x, F32 y)

getPlotPoint(S32 plotID, S32 samples)

getSelectedPlot()

getSelectedPoint()

inNut(const Point2I & pt, S32 x, S32 y)

insertPlotPoint(S32 plotID, S32 i, Point2F v)

isExistingPoint(S32 plotID, S32 point)

onMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseMove(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

onRightMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onRightMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onRightMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiControl

removePlotPoint(S32 plotID, S32 i)

renderGraphTooltip(Point2I cursorPos, StringTableEntry tooltip)

resetSelectedPoint()

setAutoGraphMax(bool autoMax)

setAutoRemove(bool autoRemove)

setGraphHidden(S32 plotID, bool isHidden)

setGraphMax(S32 plotID, Point2F graphMax)

setGraphMaxX(S32 plotID, F32 graphMaxX)

setGraphMaxY(S32 plotID, F32 graphMaxY)

setGraphMin(S32 plotID, Point2F graphMin)

setGraphMinX(S32 plotID, F32 graphMinX)

setGraphMinY(S32 plotID, F32 graphMinY)

setGraphName(S32 plotID, StringTableEntry graphName)

setGraphType(S32 plotID, const char * graphType)

setPointXMovementClamped(bool clamped)

setRenderAll(bool renderAll)

setRenderGraphTooltip(bool renderGraphTooltip)

setSelectedPlot(S32 plotID)

setSelectedPoint(S32 point)