class PieChart: public Chart
Implements a pie chart. A pie chart contains a set of pie sector data elements and a headline label.
Inherits from Chart.
PieChart | Implements a pie chart. |
Functions | |
PieChart | Initializes the object. |
~PieChart | Releases all allocated resources. |
Draw | Draws the chart. |
DrawLabels | Draws the label assigned to the chart. |
ChangePosition | Unused function. |
ChangeAlpha | Unused function. |
GetConnectedDataElementByDataGroup | Returns the pie sector which represents the given data group. |
GetConnectedSlice | Returns the pie slice data element which represents the given data entry. |
GetAllSlices | Returns a vector containing all visible (not filtered) pie slices of all pie sectors of the chart sorted by value. |
GetAllSlicesGroupSorted | Returns a vector containing all visible (not filtered) pie slices of all pie sectors of the chart, sorted first by pie sector, then by value. |
GetValueScaleFactor | Returns the value scale factor of the chart. |
GetVisibleDataGroups | Returns a vector containing all visible data groups of the given data groups, i.e. |
ContainsDataEntry | Lookup function which checks the existence of a given data entry pointer in a given vector. |
void Draw( QPainter * pPainter )
Draws the chart. Inherited from AlterableObject.
pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Draws the label assigned to the chart. 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 ChangeAlpha( float fDeltaAlpha )
Unused function. Inherited from AlterableObject.
fDeltaAlpha | Unused parameter. |
DataElement* GetConnectedDataElementByDataGroup( DataGroup * pDataGroup )
Returns the pie sector which represents the given data group. If no such pie sector exists, NULL is returned.
pDataGroup | Pointer to the data group to be searched. |
The pie sector which represents the given data group if present, else NULL.
PieSlice* GetConnectedSlice( DataEntry * pDataEntry )
Returns the pie slice data element which represents the given data entry. If no such pie slice exists among all pie sectors, NULL is returned.
pDataEntry | Pointer to the data entry to be searched. |
The pie slice data element which represents the given data entry if present, else NULL.
std::vector<PieSlice*> GetAllSlicesGroupSorted()
Returns a vector containing all visible (not filtered) pie slices of all pie sectors of the chart, sorted first by pie sector, then by value.
A vector containing all visible pie slices of all pie sectors of the chart sorted by pie sector, then by value.
std::vector<DataGroup*> GetVisibleDataGroups( std:: vector<DataGroup*> vAllDataGroups )
Returns a vector containing all visible data groups of the given data groups, i.e. all data groups with at least one unfiltered data entry.
vAllDataGroups | A vector containing all data groups of a data set. |
A vector containing all visible data groups of the given data groups.
bool ContainsDataEntry( std:: vector<DataEntry*> vDataEntries, DataEntry * pDataEntry )
Lookup function which checks the existence of a given data entry pointer in a given vector.
vDataEntries | A vector of data entry pointers. |
pDataEntry | A data entry pointer to be searched. |
A boolean value indicating if the vector contains the data entry.
Implements a pie chart.
class PieChart: public Chart
Initializes the object.
PieChart( DataSet * pDataSet )
Releases all allocated resources.
~PieChart()
Draws the chart.
void Draw( QPainter * pPainter )
Draws the label assigned to the chart.
void DrawLabels( QPainter * pPainter )
Unused function.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom )
Unused function.
void ChangeAlpha( float fDeltaAlpha )
Returns the pie sector which represents the given data group.
DataElement* GetConnectedDataElementByDataGroup( DataGroup * pDataGroup )
Returns the pie slice data element which represents the given data entry.
PieSlice* GetConnectedSlice( DataEntry * pDataEntry )
Returns a vector containing all visible (not filtered) pie slices of all pie sectors of the chart sorted by value.
std::vector<PieSlice*> GetAllSlices()
Returns a vector containing all visible (not filtered) pie slices of all pie sectors of the chart, sorted first by pie sector, then by value.
std::vector<PieSlice*> GetAllSlicesGroupSorted()
Returns the value scale factor of the chart.
float GetValueScaleFactor()
Returns a vector containing all visible data groups of the given data groups, i.e.
std::vector<DataGroup*> GetVisibleDataGroups( std:: vector<DataGroup*> vAllDataGroups )
Lookup function which checks the existence of a given data entry pointer in a given vector.
bool ContainsDataEntry( std:: vector<DataEntry*> vDataEntries, DataEntry * pDataEntry )
Abstract class that implements the skeleton of a chart.
class Chart: public AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
class AlterableObject