Forge
|
3d graph to display 3d line plots. More...
#include <plot3.h>
Public Member Functions | |
FGAPI | Plot3 (unsigned pNumPoints, dtype pDataType, PlotType pPlotType=fg::FG_LINE, MarkerType pMarkerType=fg::FG_NONE) |
Creates a Plot3 object. More... | |
FGAPI | Plot3 (const Plot3 &other) |
Copy constructor for Plot3. More... | |
FGAPI | ~Plot3 () |
Plot3 Destructor. More... | |
FGAPI void | setColor (fg::Color col) |
Set the color of the 3d line plot. More... | |
FGAPI void | setColor (float pRed, float pGreen, float pBlue) |
Set the color of the 3d line plot. More... | |
FGAPI void | setAxesLimits (float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin) |
Set the chart axes limits. More... | |
FGAPI void | setAxesTitles (const char *pXTitle, const char *pYTitle, const char *pZTitle) |
Set axes titles. More... | |
FGAPI float | xmax () const |
Get X-Axis maximum value. More... | |
FGAPI float | xmin () const |
Get X-Axis minimum value. More... | |
FGAPI float | ymax () const |
Get Y-Axis maximum value. More... | |
FGAPI float | ymin () const |
Get Y-Axis minimum value. More... | |
FGAPI float | zmax () const |
Get Z-Axis maximum value. More... | |
FGAPI float | zmin () const |
Get Z-Axis minimum value. More... | |
FGAPI unsigned | vbo () const |
Get the OpenGL Vertex Buffer Object identifier. More... | |
FGAPI unsigned | size () const |
Get the OpenGL Vertex Buffer Object resource size. More... | |
FGAPI internal::_Plot3 * | get () const |
Get the handle to internal implementation of _Surface. More... | |
3d graph to display 3d line plots.
FGAPI Plot3 | ( | unsigned | pNumPoints, |
dtype | pDataType, | ||
PlotType | pPlotType = fg::FG_LINE , |
||
MarkerType | pMarkerType = fg::FG_NONE |
||
) |
Creates a Plot3 object.
[in] | pNumPoints | is number of data points |
[in] | pDataType | takes one of the values of dtype that indicates the integral data type of plot data |
[in] | pPlotType | is the render type which can be one of PlotType (valid choices are FG_LINE and FG_SCATTER) |
[in] | pMarkerType | is the type of MarkerType to draw for FG_SCATTER plot type |
FGAPI internal::_Plot3* get | ( | ) | const |
Get the handle to internal implementation of _Surface.
FGAPI void setAxesLimits | ( | float | pXmax, |
float | pXmin, | ||
float | pYmax, | ||
float | pYmin, | ||
float | pZmax, | ||
float | pZmin | ||
) |
Set the chart axes limits.
[in] | pXmax | is X-Axis maximum value |
[in] | pXmin | is X-Axis minimum value |
[in] | pYmax | is Y-Axis maximum value |
[in] | pYmin | is Y-Axis minimum value |
[in] | pZmax | is Z-Axis maximum value |
[in] | pZmin | is Z-Axis minimum value |
FGAPI void setAxesTitles | ( | const char * | pXTitle, |
const char * | pYTitle, | ||
const char * | pZTitle | ||
) |
Set axes titles.
[in] | pXTitle | is X-Axis title |
[in] | pYTitle | is Y-Axis title |
[in] | pZTitle | is Z-Axis title |
Set the color of the 3d line plot.
[in] | col | takes values of fg::Color to define plot color |
FGAPI void setColor | ( | float | pRed, |
float | pGreen, | ||
float | pBlue | ||
) |
Set the color of the 3d line plot.
[in] | pRed | is Red component in range [0, 1] |
[in] | pGreen | is Green component in range [0, 1] |
[in] | pBlue | is Blue component in range [0, 1] |
FGAPI unsigned size | ( | ) | const |
Get the OpenGL Vertex Buffer Object resource size.
FGAPI unsigned vbo | ( | ) | const |
Get the OpenGL Vertex Buffer Object identifier.
FGAPI float xmax | ( | ) | const |
Get X-Axis maximum value.
FGAPI float xmin | ( | ) | const |
Get X-Axis minimum value.
FGAPI float ymax | ( | ) | const |
Get Y-Axis maximum value.
FGAPI float ymin | ( | ) | const |
Get Y-Axis minimum value.
FGAPI float zmax | ( | ) | const |
Get Z-Axis maximum value.
FGAPI float zmin | ( | ) | const |
Get Z-Axis minimum value.