GroupedBar

class GroupedBar: public DataElement

Implements a grouped bar data element.  A grouped bar is a grouping of several bar data elements and a common label.

Inherits from DataElement.

Summary
GroupedBarImplements a grouped bar data element.
Functions
GroupedBarInitializes the object.
~GroupedBarReleases all allocated resources.
DrawDraws the grouped bar.
DrawLabelsDraws the label assigned to the grouped bar.
ChangePositionUnused function.
ScaleUnused function.
ChangeAlphaUnused function.
GetDataGroupReturns the data group connected to the grouped bar.
GetBarsReturns a vector containing all bars of the grouped bar.

Functions

GroupedBar

GroupedBar(DataGroup *pDataGroup,
float fLeft,
float fWidth,
double dHighestGridValue)

Initializes the object.

Parameters

pDataGroupPointer to the data group object that shall be represented by the grouped bar.
fLeftThe x value of the first bar.
fWidthThe width of a single bar.
dHighestGridValueHighest grid value indicating how much the bars have to be scaled to fit.

~GroupedBar

~GroupedBar()

Releases all allocated resources.

Draw

void Draw(QPainter *pPainter)

Draws the grouped bar.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

DrawLabels

void DrawLabels(QPainter *pPainter)

Draws the label assigned to the grouped bar.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

ChangePosition

void ChangePosition(float fDeltaLeft,
float fDeltaTop,
float fDeltaBottom)

Unused function.  Inherited from AlterableObject.

Parameters

fDeltaLeftUnused parameter.
fDeltaTopUnused parameter.
fDeltaBottomUnused parameter.

Scale

void Scale(float fDeltaWidth,
float fDeltaHeight)

Unused function.  Inherited from DataElement.

Parameters

fDeltaWidthUnused parameter.
fDeltaHeightUnused parameter.

ChangeAlpha

void ChangeAlpha(float fDeltaAlpha)

Unused function.  Inherited from AlterableObject.

Parameters

fDeltaAlphaUnused parameter.

GetDataGroup

DataGroup* GetDataGroup()

Returns the data group connected to the grouped bar.

Returns

The data group connected to the grouped bar.

GetBars

std::vector<Bar*> GetBars()

Returns a vector containing all bars of the grouped bar.

Returns

A vector containing all bars of the grouped bar.

class GroupedBar: public DataElement
Implements a grouped bar data element.
GroupedBar(DataGroup *pDataGroup,
float fLeft,
float fWidth,
double dHighestGridValue)
Initializes the object.
~GroupedBar()
Releases all allocated resources.
void Draw(QPainter *pPainter)
Draws the grouped bar.
void DrawLabels(QPainter *pPainter)
Draws the label assigned to the grouped bar.
void ChangePosition(float fDeltaLeft,
float fDeltaTop,
float fDeltaBottom)
Unused function.
void Scale(float fDeltaWidth,
float fDeltaHeight)
Unused function.
void ChangeAlpha(float fDeltaAlpha)
Unused function.
DataGroup* GetDataGroup()
Returns the data group connected to the grouped bar.
std::vector<Bar*> GetBars()
Returns a vector containing all bars of the grouped bar.
class DataElement: public AlterableObject
Abstract class that implements the skeleton of a data element.
class AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
Close