class StackedBar: public DataElement
Implements a stacked bar data element. A stacked bar is a grouping of several bar data elements and a common label.
Inherits from DataElement.
StackedBar | Implements a stacked bar data element. |
Functions | |
StackedBar | Initializes the object. |
~StackedBar | Releases all allocated resources. |
Draw | Draws the stacked bar. |
DrawLabels | Draws the label assigned to the stacked bar. |
ChangePosition | Changes the position of the stacked bar. |
Scale | Scales the object. |
ChangeAlpha | Unused function. |
GetDataGroup | Returns the data group connected to the stacked bar. |
GetBars | Returns a vector containing all bars of the stacked bar. |
StackedBar( DataGroup * pDataGroup, float fLeft, float fWidth, double dHighestGridValue )
Initializes the object.
pDataGroup | Pointer to the data group object that shall be represented by the stacked bar. |
fLeft | The x value of the bars. |
fWidth | The width of the bars. |
dHighestGridValue | Highest grid value indicating how much the bars have to be scaled to fit. |
void Draw( QPainter * pPainter )
Draws the stacked bar. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the stacked bar. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Changes the position of the stacked bar. Inherited from AlterableObject.
fDeltaLeft | Total horizontal distance. |
fDeltaTop | Unused parameter. |
fDeltaBottom | Unused parameter. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Scales the object. Inherited from DataElement.
fDeltaWidth | Total horizontal scaling value. |
fDeltaHeight | Unused parameter. |
void ChangeAlpha( float fDeltaAlpha )
Unused function. Inherited from AlterableObject.
fDeltaAlpha | Unused parameter. |
Implements a stacked bar data element.
class StackedBar: public DataElement
Initializes the object.
StackedBar( DataGroup * pDataGroup, float fLeft, float fWidth, double dHighestGridValue )
Releases all allocated resources.
~StackedBar()
Draws the stacked bar.
void Draw( QPainter * pPainter )
Draws the label assigned to the stacked bar.
void DrawLabels( QPainter * pPainter )
Changes the position of the stacked bar.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Scales the object.
void Scale( float fDeltaWidth, float fDeltaHeight )
Unused function.
void ChangeAlpha( float fDeltaAlpha )
Returns the data group connected to the stacked bar.
DataGroup* GetDataGroup()
Returns a vector containing all bars of the stacked bar.
std::vector<Bar*> GetBars()
Abstract class that implements the skeleton of a data element.
class DataElement: public AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
class AlterableObject