Axis

class Axis: public AlterableObject

Implements an axis object.

Inherits from AlterableObject.

Summary
AxisImplements an axis object.
Functions
AxisInitializes the object.
~AxisReleases all allocated resources.
DrawDraws the axis.
DrawLabelsDraws the label assigned to the axis.
ChangePositionUnused function.
ChangeAlphaChanges the alpha value of the axis.
GetOrientationReturns the orientation of the axis, either ORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.
GetTextReturns the text of the label assigned to the axis.

Functions

Axis

Axis(int iOrientation,  
QString sText =  NULL)

Initializes the object.

Parameters

iOrientationORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.
sTextText for the label of the axis.  Default value is NULL.

~Axis

~Axis()

Releases all allocated resources.

Draw

void Draw(QPainter *pPainter)

Draws the axis.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

DrawLabels

void DrawLabels(QPainter *pPainter)

Draws the label assigned to the axis.  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.

ChangeAlpha

void ChangeAlpha(float fDeltaAlpha)

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

Parameters

fDeltaAlphaChange of alpha value.

GetOrientation

int GetOrientation()

Returns the orientation of the axis, either ORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.

Returns

The orientation of the axis.

GetText

QString GetText()

Returns the text of the label assigned to the axis.

Returns

The text of the label assigned to the axis.

class Axis: public AlterableObject
Implements an axis object.
Axis(int iOrientation,  
QString sText =  NULL)
Initializes the object.
~Axis()
Releases all allocated resources.
void Draw(QPainter *pPainter)
Draws the axis.
void DrawLabels(QPainter *pPainter)
Draws the label assigned to the axis.
void ChangePosition(float fDeltaLeft,
float fDeltaTop,
float fDeltaBottom)
Unused function.
void ChangeAlpha(float fDeltaAlpha)
Changes the alpha value of the axis.
int GetOrientation()
Returns the orientation of the axis, either ORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.
Indicator for horizontal orientation.
Indicator for vertical orientation.
QString GetText()
Returns the text of the label assigned to the axis.
class AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
Close