AlterableObject

class AlterableObject

Abstract class that implements the skeleton of an alterable object, i.e. each object which can be drawn and/or modified by the TransitionManager (charts, data elements, grid and axis lines, labels).

Summary
AlterableObjectAbstract class that implements the skeleton of an alterable object, i.e.
Functions
AlterableObjectUnused constructor of abstract class.
~AlterableObjectVirtual.
GetTypeReturns the type indicator of the class.
DrawVirtual.
DrawLabelsVirtual.
ChangePositionVirtual.
ChangeAlphaVirtual.

Functions

AlterableObject

AlterableObject()

Unused constructor of abstract class.

~AlterableObject

virtual ~AlterableObject()

Virtual.  Releases all allocated resources.

GetType

int GetType()

Returns the type indicator of the class.

Returns

The type indicator of the class.

Draw

virtual void Draw(QPainter *pPainter) = 0

Virtual.  Draws the object.

Parameters

pPainterThe QPainter object that shall be used for painting.

DrawLabels

virtual void DrawLabels(QPainter *pPainter) = 0

Virtual.  Draws the labels assigned to the assigned object.

Parameters

pPainterThe QPainter object that shall be used for painting.

ChangePosition

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

Virtual.  Changes the position of the object.

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.

ChangeAlpha

virtual void ChangeAlpha(float fDeltaAlpha) = 0

Virtual.  Changes the alpha value of the object.

Parameters

fDeltaAlphaChange of alpha value.
class AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
AlterableObject()
Unused constructor of abstract class.
virtual ~AlterableObject()
Virtual.
int GetType()
Returns the type indicator of the class.
virtual void Draw(QPainter *pPainter) = 0
Virtual.
virtual void DrawLabels(QPainter *pPainter) = 0
Virtual.
virtual void ChangePosition(float fDeltaLeft,  
float fDeltaTop,  
float fDeltaBottom =  0.0f) = 0
Virtual.
virtual void ChangeAlpha(float fDeltaAlpha) = 0
Virtual.
class TransitionManager
Implements the core class of the program which handles chart and transition objects in a centralized way.
Close