Forge
|
Bar graph to display data frequencey. More...
#include <histogram.h>
Public Member Functions | |
FGAPI | Histogram (unsigned pNBins, dtype pDataType) |
Creates a Histogram object. More... | |
FGAPI | Histogram (const Histogram &other) |
Copy constructor for Histogram. More... | |
FGAPI | ~Histogram () |
Histogram Destructor. More... | |
FGAPI void | setBarColor (fg::Color col) |
Set the color of bar in the bar graph(histogram) More... | |
FGAPI void | setBarColor (float pRed, float pGreen, float pBlue) |
Set the color of bar in the bar graph(histogram) 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::_Histogram * | get () const |
Get the handle to internal implementation of Histogram. More... | |
Bar graph to display data frequencey.
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 bar in the bar graph(histogram)
[in] | col | takes values of type fg::Color to define bar color |
FGAPI void setBarColor | ( | float | pRed, |
float | pGreen, | ||
float | pBlue | ||
) |
Set the color of bar in the bar graph(histogram)
[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.