GridLine

class GridLine: public AlterableObject

Implements a grid line object.  Grid lines are used in bar charts, grouped bar charts and stacked bar charts.

Inherits from AlterableObject.

Summary
GridLineImplements a grid line object.
Functions
GridLineInitializes the object.
~GridLineReleases all allocated resources.
DrawDraws the grid line.
DrawLabelsDraws the label assigned to the grid line.
ChangePositionChanges the position of the grid line.
ChangeAlphaChanges the alpha value of the grid line.
GetRelativeHeightReturns the height of the Y coordinate of the grid line in viewing coordinates.
GetValueReturns the assigned value of the grid line as float value.
GetRedReturns the red color value of the grid line.
GetGreenReturns the green color value of the grid line.
GetBlueReturns the blue color value of the grid line.
GetAlphaReturns the alpha color value of the grid line.
GetHeightReturns the assigned value of the grid line.
GetRowReturns the index of the grid line.

Functions

GridLine

GridLine(int iHeight,
int iRow)

Initializes the object.

Parameters

iHeightThe data value that the grid line represents.
iRowThe index of the grid line.

~GridLine

~GridLine()

Releases all allocated resources.

Draw

void Draw(QPainter *pPainter)

Draws the grid line.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

DrawLabels

void DrawLabels(QPainter *pPainter)

Draws the label assigned to the grid line.  Inherited from AlterableObject.

Parameters

pPainterThe QPainter object that shall be used for painting.

ChangePosition

void ChangePosition(float fDeltaLeft,
float fDeltaTop,
float fDeltaBottom)

Changes the position of the grid line.  Inherited from AlterableObject.

Parameters

fDeltaLeftUnused parameter.
fDeltaTopTotal vertical distance according to the upper vertices.
fDeltaBottomUnused parameter.

ChangeAlpha

void ChangeAlpha(float fDeltaAlpha)

Changes the alpha value of the grid line.  Inherited from AlterableObject.

Parameters

fDeltaAlphaChange of alpha value.

GetRelativeHeight

float GetRelativeHeight()

Returns the height of the Y coordinate of the grid line in viewing coordinates.

Returns

The height of the Y coordinate of the grid line in viewing coordinates.

GetValue

float GetValue()

Returns the assigned value of the grid line as float value.

Returns

The assigned value of the grid line as float value.

GetRed

float GetRed()

Returns the red color value of the grid line.

Returns

The red color value of the grid line.

GetGreen

float GetGreen()

Returns the green color value of the grid line.

Returns

The green color value of the grid line.

GetBlue

float GetBlue()

Returns the blue color value of the grid line.

Returns

The blue color value of the grid line.

GetAlpha

float GetAlpha()

Returns the alpha color value of the grid line.

Returns

The alpha color value of the grid line.

GetHeight

int GetHeight()

Returns the assigned value of the grid line.

Returns

The assigned value of the grid line.

GetRow

int GetRow()

Returns the index of the grid line.

Returns

The index of the grid line.

class GridLine: public AlterableObject
Implements a grid line object.
GridLine(int iHeight,
int iRow)
Initializes the object.
~GridLine()
Releases all allocated resources.
void Draw(QPainter *pPainter)
Draws the grid line.
void DrawLabels(QPainter *pPainter)
Draws the label assigned to the grid line.
void ChangePosition(float fDeltaLeft,
float fDeltaTop,
float fDeltaBottom)
Changes the position of the grid line.
void ChangeAlpha(float fDeltaAlpha)
Changes the alpha value of the grid line.
float GetRelativeHeight()
Returns the height of the Y coordinate of the grid line in viewing coordinates.
float GetValue()
Returns the assigned value of the grid line as float value.
float GetRed()
Returns the red color value of the grid line.
float GetGreen()
Returns the green color value of the grid line.
float GetBlue()
Returns the blue color value of the grid line.
float GetAlpha()
Returns the alpha color value of the grid line.
int GetHeight()
Returns the assigned value of the grid line.
int GetRow()
Returns the index of the grid line.
class AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
Close