9 #ifndef QWT_POLAR_GRID_H
10 #define QWT_POLAR_GRID_H
64 HideMaxRadiusLabel = 2,
72 ClipAxisBackground = 4,
88 Q_DECLARE_FLAGS( DisplayFlags, DisplayFlag )
103 Q_DECLARE_FLAGS( GridAttributes, GridAttribute )
110 void setDisplayFlag( DisplayFlag,
bool on = true );
111 bool testDisplayFlag( DisplayFlag ) const;
113 void setGridAttribute( GridAttribute,
bool on = true );
114 bool testGridAttribute( GridAttribute ) const;
116 void showGrid(
int scaleId,
bool show = true );
117 bool isGridVisible(
int scaleId ) const;
119 void showMinorGrid(
int scaleId,
bool show = true );
120 bool isMinorGridVisible(
int scaleId ) const;
122 void showAxis(
int axisId,
bool show = true );
123 bool isAxisVisible(
int axisId ) const;
125 void setPen( const QPen& p );
126 void setFont( const QFont& );
128 void setMajorGridPen( const QPen& p );
129 void setMajorGridPen(
int scaleId, const QPen& p );
130 QPen majorGridPen(
int scaleId ) const;
132 void setMinorGridPen( const QPen& p );
133 void setMinorGridPen(
int scaleId, const QPen& p );
134 QPen minorGridPen(
int scaleId ) const;
136 void setAxisPen(
int axisId, const QPen& p );
137 QPen axisPen(
int axisId ) const;
139 void setAxisFont(
int axisId, const QFont& p );
140 QFont axisFont(
int axisId ) const;
150 virtual
void draw( QPainter* p,
152 const QPointF& pole,
double radius,
155 virtual
void updateScaleDiv( const
QwtScaleDiv& azimuthMap,
161 void drawRays( QPainter*, const QRectF&,
162 const QPointF& pole,
double radius,
164 void drawCircles( QPainter*, const QRectF&,
166 const
QList<
double >& ) const;
168 void drawAxis( QPainter*,
int axisId ) const;
171 void updateScaleDraws(
173 const QPointF& pole, const
double radius ) const;
180 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtPolarGrid::DisplayFlags )
181 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtPolarGrid::GridAttributes )