00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef KDCHARTABSTRACTPIEDIAGRAM_H
00031 #define KDCHARTABSTRACTPIEDIAGRAM_H
00032
00033 #include "KDChartAbstractPolarDiagram.h"
00034
00035 namespace KDChart {
00036 class PieAttributes;
00037 class ThreeDPieAttributes;
00038
00042 class KDCHART_EXPORT AbstractPieDiagram : public AbstractPolarDiagram
00043 {
00044 Q_OBJECT
00045
00046 Q_DISABLE_COPY( AbstractPieDiagram )
00047 KDCHART_DECLARE_DERIVED_DIAGRAM( AbstractPieDiagram, PolarCoordinatePlane )
00048
00049 public:
00050 explicit AbstractPieDiagram(
00051 QWidget* parent = 0, PolarCoordinatePlane* plane = 0 );
00052 virtual ~AbstractPieDiagram();
00053
00059 void setGranularity( qreal value );
00060
00062 qreal granularity() const;
00063
00065 void setStartPosition( int degrees );
00067 int startPosition() const;
00068
00069 void setPieAttributes( const PieAttributes & a );
00070 void setPieAttributes( int column,
00071 const PieAttributes & a );
00072 PieAttributes pieAttributes() const;
00073 PieAttributes pieAttributes( int column ) const;
00074 PieAttributes pieAttributes( const QModelIndex & index ) const;
00075
00076 void setThreeDPieAttributes( const ThreeDPieAttributes & a );
00077 void setThreeDPieAttributes( int column,
00078 const ThreeDPieAttributes & a );
00079 void setThreeDPieAttributes( const QModelIndex & index,
00080 const ThreeDPieAttributes & a );
00081 ThreeDPieAttributes threeDPieAttributes() const;
00082 ThreeDPieAttributes threeDPieAttributes( int column ) const;
00083 ThreeDPieAttributes threeDPieAttributes( const QModelIndex & index ) const;
00084 };
00085
00086 }
00087
00088 #endif // KDCHARTABSTACTPIEDIAGRAM_H