|
Forge
|
Line graph to display plots. More...
#include <plot.h>
Public Member Functions | |
| FGAPI | Plot (unsigned pNumPoints, dtype pDataType, fg::PlotType=fg::FG_LINE, fg::MarkerType=fg::FG_NONE) |
| Creates a Plot object. More... | |
| FGAPI | Plot (const Plot &other) |
| Copy constructor for Plot. More... | |
| FGAPI | ~Plot () |
| Plot Destructor. More... | |
| FGAPI void | setColor (fg::Color col) |
| Set the color of line graph(plot) More... | |
| FGAPI void | setColor (float pRed, float pGreen, float pBlue) |
| Set the color of line graph(plot) More... | |
| FGAPI void | setAxesLimits (float pXmax, float pXmin, float pYmax, float pYmin) |
| Set the chart axes limits. More... | |
| FGAPI void | setAxesTitles (const char *pXTitle, const char *pYTitle) |
| Set axes titles in histogram(bar chart) 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 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::_Plot * | get () const |
| Get the handle to internal implementation of Histogram. More... | |
Line graph to display plots.
| FGAPI Plot | ( | unsigned | pNumPoints, |
| dtype | pDataType, | ||
| fg::PlotType | = fg::FG_LINE, |
||
| fg::MarkerType | = fg::FG_NONE |
||
| ) |
| FGAPI void setAxesLimits | ( | float | pXmax, |
| float | pXmin, | ||
| float | pYmax, | ||
| float | pYmin | ||
| ) |
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 |
| FGAPI void setAxesTitles | ( | const char * | pXTitle, |
| const char * | pYTitle | ||
| ) |
Set axes titles in histogram(bar chart)
| [in] | pXTitle | is X-Axis title |
| [in] | pYTitle | is Y-Axis title |
Set the color of line graph(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 line graph(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.