class PieSlice: public DataElement
Implements a pie slice data element.
Inherits from DataElement.
PieSlice | Implements a pie slice data element. |
Functions | |
PieSlice | Initializes the object. |
~PieSlice | Releases all allocated resources. |
Draw | Draws the pie slice. |
DrawLabels | Unused function. |
ChangePosition | Changes the position of the pie slice. |
Scale | Scales the object. |
ChangeAlpha | Changes the alpha value of the pie slice. |
Rotate | Rotates the pie slice. |
SetBeginValue | Sets the begin value of the pie slice. |
GetBeginValue | Returns the begin value of the pie slice. |
SetWidth | Sets the width of the pie slice. |
GetValueScaleFactor | Returns the value scale factor of the pie slice. |
GetOutterVertices | Returns the number of outter vertices (all vertices minus the center vertex). |
PieSlice( DataEntry * pDataEntry, float fBeginValue, float fValueScaleFactor )
Initializes the object.
pDataEntry | Pointer to the data entry object that shall be represented by the pie slice. |
fBeginValue | Accumulated data entry values of predecessor pie slices. |
fValueScaleFactor | Scale factor for all pie slices to scale the sum of all slices to 100 percent. |
void Draw( QPainter * pPainter )
Draws the pie slice. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Unused function. Inherited from AlterableObject.
pPainter | Unused parameter. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Changes the position of the pie slice. Inherited from AlterableObject.
fDeltaLeft | Total horizontal distance. |
fDeltaTop | Total vertical distance according to the upper vertices. |
fDeltaBottom | Unused parameter. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Scales the object. Inherited from DataElement.
fDeltaWidth | Total horizontal scaling value. |
fDeltaHeight | Unused parameter. |
void ChangeAlpha( float fDeltaAlpha )
Changes the alpha value of the pie slice. Inherited from AlterableObject.
fDeltaAlpha | Change of alpha value. |
Implements a pie slice data element.
class PieSlice: public DataElement
Initializes the object.
PieSlice( DataEntry * pDataEntry, float fBeginValue, float fValueScaleFactor )
Releases all allocated resources.
~PieSlice()
Draws the pie slice.
void Draw( QPainter * pPainter )
Unused function.
void DrawLabels( QPainter * pPainter )
Changes the position of the pie slice.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Scales the object.
void Scale( float fDeltaWidth, float fDeltaHeight )
Changes the alpha value of the pie slice.
void ChangeAlpha( float fDeltaAlpha )
Rotates the pie slice.
void Rotate( float fDeltaValue )
Sets the begin value of the pie slice.
void SetBeginValue( float fBeginValue )
Returns the begin value of the pie slice.
float GetBeginValue()
Sets the width of the pie slice.
void SetWidth( float fWidth )
Returns the value scale factor of the pie slice.
float GetValueScaleFactor()
Returns the number of outter vertices (all vertices minus the center vertex).
int GetOutterVertices()
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