Forge
|
Histogram is a bar graph to display data frequencey. More...
#include <histogram.h>
Public Member Functions | |
FGAPI | Histogram (const unsigned pNBins, const dtype pDataType) |
Creates a Histogram object. More... | |
FGAPI | Histogram (const Histogram &pOther) |
Copy constructor for Histogram. More... | |
FGAPI | ~Histogram () |
Histogram Destructor. More... | |
FGAPI void | setColor (const Color pColor) |
Set the color of bar in the bar graph(histogram) More... | |
FGAPI void | setColor (const float pRed, const float pGreen, const float pBlue, const float pAlpha) |
Set the color of bar in the bar graph(histogram) More... | |
FGAPI void | setLegend (const char *pLegend) |
Set legend for histogram plot. More... | |
FGAPI unsigned | vertices () const |
Get the buffer identifier for vertices. More... | |
FGAPI unsigned | colors () const |
Get the buffer identifier for color values per vertex. More... | |
FGAPI unsigned | alphas () const |
Get the buffer identifier for alpha values per vertex. More... | |
FGAPI unsigned | verticesSize () const |
Get the vertex buffer size in bytes. More... | |
FGAPI unsigned | colorsSize () const |
Get the colors buffer size in bytes. More... | |
FGAPI unsigned | alphasSize () const |
Get the alpha values buffer size in bytes. More... | |
FGAPI fg_histogram | get () const |
Get the handle to internal implementation of Histogram. More... | |
Histogram is a bar graph to display data frequencey.
FGAPI unsigned alphas | ( | ) | const |
Get the buffer identifier for alpha values per vertex.
FGAPI unsigned alphasSize | ( | ) | const |
Get the alpha values buffer size in bytes.
FGAPI unsigned colors | ( | ) | const |
Get the buffer identifier for color values per vertex.
FGAPI unsigned colorsSize | ( | ) | const |
Get the colors buffer size in bytes.
FGAPI fg_histogram get | ( | ) | const |
Get the handle to internal implementation of Histogram.
Set the color of bar in the bar graph(histogram)
[in] | pColor | takes values of type forge::Color to define bar color |
FGAPI void setColor | ( | const float | pRed, |
const float | pGreen, | ||
const float | pBlue, | ||
const float | pAlpha | ||
) |
Set the color of bar in the bar graph(histogram)
This is global alpha value for the histogram rendering that takes effect if individual bar alphas are not set by calling the following member functions
[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] |
[in] | pAlpha | is Alpha component in range [0, 1] |
FGAPI void setLegend | ( | const char * | pLegend | ) |
Set legend for histogram plot.
[in] | pLegend |
FGAPI unsigned vertices | ( | ) | const |
Get the buffer identifier for vertices.
FGAPI unsigned verticesSize | ( | ) | const |
Get the vertex buffer size in bytes.