class Bar: public DataElement
Implements a bar data element.
Inherits from DataElement.
| Bar | Implements a bar data element. |
| Functions | |
| Bar | Initializes the object. |
| ~Bar | Releases all allocated resources. |
| Draw | Draws the bar. |
| DrawLabels | Draws the label assigned to the bar. |
| ChangePosition | Changes the position of the bar. |
| Scale | Scales the object. |
| ChangeAlpha | Changes the alpha value of the bar. |
Bar( DataEntry * pDataEntry, float fLeft, float fTop, float fBottom, float fWidth, Label * pLabel = NULL )
Initializes the object.
| pDataEntry | Pointer to the data entry object that shall be represented by the bar. |
| fLeft | The x value of the bar. |
| fTop | The upper y value of the bar. |
| fBottom | The lower y value of the bar. |
| fWidth | The width of the bar. |
| pLabel | A label that shall be assigned to the bar instead of creating a new one. Default value is NULL. |
void Draw( QPainter * pPainter )
Draws the bar. Inherited from AlterableObject.
| pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the bar. Inherited from AlterableObject.
| pPainter | The QPainter object that shall be used for painting. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom = 0.0f )
Changes the position of the bar. Inherited from AlterableObject.
| fDeltaLeft | Total horizontal distance. |
| fDeltaTop | Total vertical distance according to the upper vertices. |
| fDeltaBottom | Total vertical distance according to the lower vertices. Default value is 0.0f. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Scales the object. Inherited from DataElement.
| fDeltaWidth | Total horizontal scaling value. |
| fDeltaHeight | Total vertical scaling value. |
void ChangeAlpha( float fDeltaAlpha )
Changes the alpha value of the bar. Inherited from AlterableObject.
| fDeltaAlpha | Change of alpha value. |
Implements a bar data element.
class Bar: public DataElement
Initializes the object.
Bar( DataEntry * pDataEntry, float fLeft, float fTop, float fBottom, float fWidth, Label * pLabel = NULL )
Releases all allocated resources.
~Bar()
Draws the bar.
void Draw( QPainter * pPainter )
Draws the label assigned to the bar.
void DrawLabels( QPainter * pPainter )
Changes the position of the bar.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom = 0.0f )
Scales the object.
void Scale( float fDeltaWidth, float fDeltaHeight )
Changes the alpha value of the bar.
void ChangeAlpha( float fDeltaAlpha )
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