class PieSector: public DataElement
Implements a pie sector data element. A pie sector is a grouping of several pie slice data elements and a common label.
Inherits from DataElement.
PieSector | Implements a pie sector data element. |
Functions | |
PieSector | Initializes the object. |
~PieSector | Releases all allocated resources. |
Draw | Draws the pie sector. |
DrawLabels | Draws the label assigned to the pie sector. |
ChangePosition | Unused function. |
Scale | Unused function. |
ChangeAlpha | Unused function. |
GetDataGroup | Returns the data group connected to the pie sector. |
GetSlices | Returns a vector containing all pie slices of the pie sector. |
PieSector( DataGroup * pDataGroup, float fBeginValue, float fValueScaleFactor, int iMoveSlice )
Initializes the object.
pDataGroup | Pointer to the data group object that shall be represented by the pie sector. |
fBeginValue | Accumulated data entry values of predecessor pie sectors. |
fValueScaleFactor | Scale factor for all pie slices to scale the sum of all sectors to 100 percent. |
iMoveSlice | Index of the slice regarding all slices with a value smaller than PIE_CHART_LABEL_OFFSET_VALUE. |
void Draw( QPainter * pPainter )
Draws the pie sector. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the pie sector. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Unused function. Inherited from AlterableObject.
fDeltaLeft | Unused parameter. |
fDeltaTop | Unused parameter. |
fDeltaBottom | Unused parameter. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Unused function. Inherited from DataElement.
fDeltaWidth | Unused parameter. |
fDeltaHeight | Unused parameter. |
void ChangeAlpha( float fDeltaAlpha )
Unused function. Inherited from AlterableObject.
fDeltaAlpha | Unused parameter. |
Implements a pie sector data element.
class PieSector: public DataElement
Initializes the object.
PieSector( DataGroup * pDataGroup, float fBeginValue, float fValueScaleFactor, int iMoveSlice )
Releases all allocated resources.
~PieSector()
Draws the pie sector.
void Draw( QPainter * pPainter )
Draws the label assigned to the pie sector.
void DrawLabels( QPainter * pPainter )
Unused function.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Unused function.
void Scale( float fDeltaWidth, float fDeltaHeight )
Unused function.
void ChangeAlpha( float fDeltaAlpha )
Returns the data group connected to the pie sector.
DataGroup* GetDataGroup()
Returns a vector containing all pie slices of the pie sector.
std::vector<PieSlice*> GetSlices()
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