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.
| GroupedBar | Implements a grouped bar data element. |
| Functions | |
| GroupedBar | Initializes the object. |
| ~GroupedBar | Releases all allocated resources. |
| Draw | Draws the grouped bar. |
| DrawLabels | Draws the label assigned to the grouped bar. |
| ChangePosition | Unused function. |
| Scale | Unused function. |
| ChangeAlpha | Unused function. |
| GetDataGroup | Returns the data group connected to the grouped bar. |
| GetBars | Returns a vector containing all bars of the grouped bar. |
GroupedBar( DataGroup * pDataGroup, float fLeft, float fWidth, double dHighestGridValue )
Initializes the object.
| pDataGroup | Pointer to the data group object that shall be represented by the grouped bar. |
| fLeft | The x value of the first bar. |
| fWidth | The width of a single bar. |
| dHighestGridValue | Highest grid value indicating how much the bars have to be scaled to fit. |
void Draw( QPainter * pPainter )
Draws the grouped bar. Inherited from AlterableObject.
| pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the grouped bar. Inherited from AlterableObject.
| pPainter | The QPainter object that shall be used for painting. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Unused function. Inherited from AlterableObject.
| fDeltaLeft | Unused parameter. |
| fDeltaTop | Unused parameter. |
| fDeltaBottom | Unused parameter. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Unused function. Inherited from DataElement.
| fDeltaWidth | Unused parameter. |
| fDeltaHeight | Unused parameter. |
void ChangeAlpha( float fDeltaAlpha )
Unused function. Inherited from AlterableObject.
| fDeltaAlpha | Unused parameter. |
Implements a grouped bar data element.
class GroupedBar: public DataElement
Initializes the object.
GroupedBar( DataGroup * pDataGroup, float fLeft, float fWidth, double dHighestGridValue )
Releases all allocated resources.
~GroupedBar()
Draws the grouped bar.
void Draw( QPainter * pPainter )
Draws the label assigned to the grouped bar.
void DrawLabels( QPainter * pPainter )
Unused function.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Unused function.
void Scale( float fDeltaWidth, float fDeltaHeight )
Unused function.
void ChangeAlpha( float fDeltaAlpha )
Returns the data group connected to the grouped bar.
DataGroup* GetDataGroup()
Returns a vector containing all bars of the grouped 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