Bar

class Bar: public DataElement

Implements a bar data element.

Inherits from DataElement.

Summary
BarImplements a bar data element.
Functions
BarInitializes the object.
~BarReleases all allocated resources.
DrawDraws the bar.
DrawLabelsDraws the label assigned to the bar.
ChangePositionChanges the position of the bar.
ScaleScales the object.
ChangeAlphaChanges the alpha value of the bar.

Functions

Bar

Bar(DataEntry *pDataEntry,  
float fLeft,  
float fTop,  
float fBottom,  
float fWidth,  
Label *pLabel =  NULL)

Initializes the object.

Parameters

pDataEntryPointer to the data entry object that shall be represented by the bar.
fLeftThe x value of the bar.
fTopThe upper y value of the bar.
fBottomThe lower y value of the bar.
fWidthThe width of the bar.
pLabelA label that shall be assigned to the bar instead of creating a new one.  Default value is NULL.

~Bar

~Bar()

Releases all allocated resources.

Draw

void Draw(QPainter *pPainter)

Draws the 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 bar.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

ChangePosition

void ChangePosition(float fDeltaLeft,  
float fDeltaTop,  
float fDeltaBottom =  0.0f)

Changes the position of the bar.  Inherited from AlterableObject.

Parameters

fDeltaLeftTotal horizontal distance.
fDeltaTopTotal vertical distance according to the upper vertices.
fDeltaBottomTotal vertical distance according to the lower vertices.  Default value is 0.0f.

Scale

void Scale(float fDeltaWidth,
float fDeltaHeight)

Scales the object.  Inherited from DataElement.

Parameters

fDeltaWidthTotal horizontal scaling value.
fDeltaHeightTotal vertical scaling value.

ChangeAlpha

void ChangeAlpha(float fDeltaAlpha)

Changes the alpha value of the bar.  Inherited from AlterableObject.

Parameters

fDeltaAlphaChange of alpha value.
class Bar: public DataElement
Implements a bar data element.
Bar(DataEntry *pDataEntry,  
float fLeft,  
float fTop,  
float fBottom,  
float fWidth,  
Label *pLabel =  NULL)
Initializes the object.
~Bar()
Releases all allocated resources.
void Draw(QPainter *pPainter)
Draws the bar.
void DrawLabels(QPainter *pPainter)
Draws the label assigned to the bar.
void ChangePosition(float fDeltaLeft,  
float fDeltaTop,  
float fDeltaBottom =  0.0f)
Changes the position of the bar.
void Scale(float fDeltaWidth,
float fDeltaHeight)
Scales the object.
void ChangeAlpha(float fDeltaAlpha)
Changes the alpha value of the 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