9 #ifndef QWT_POLAR_GRID_H 10 #define QWT_POLAR_GRID_H 64 HideMaxRadiusLabel = 2,
72 ClipAxisBackground = 4,
112 void setDisplayFlag(
DisplayFlag,
bool on = true );
113 bool testDisplayFlag( DisplayFlag ) const;
116 bool testGridAttribute( GridAttribute ) const;
118 void showGrid(
int scaleId,
bool show = true );
119 bool isGridVisible(
int scaleId ) const;
121 void showMinorGrid(
int scaleId,
bool show = true );
122 bool isMinorGridVisible(
int scaleId ) const;
124 void showAxis(
int axisId,
bool show = true );
125 bool isAxisVisible(
int axisId ) const;
127 void setPen( const QPen &p );
128 void setFont( const QFont & );
130 void setMajorGridPen( const QPen &p );
131 void setMajorGridPen(
int scaleId, const QPen &p );
132 QPen majorGridPen(
int scaleId ) const;
134 void setMinorGridPen( const QPen &p );
135 void setMinorGridPen(
int scaleId, const QPen &p );
136 QPen minorGridPen(
int scaleId ) const;
138 void setAxisPen(
int axisId, const QPen &p );
139 QPen axisPen(
int axisId ) const;
141 void setAxisFont(
int axisId, const QFont &p );
142 QFont axisFont(
int axisId ) const;
145 const QwtScaleDraw *scaleDraw(
int axisId ) const;
146 QwtScaleDraw *scaleDraw(
int axisId );
149 const QwtRoundScaleDraw *azimuthScaleDraw() const;
150 QwtRoundScaleDraw *azimuthScaleDraw();
152 virtual
void draw( QPainter *p,
154 const QPointF &pole,
double radius,
157 virtual
void updateScaleDiv( const
QwtScaleDiv &azimuthMap,
160 virtual
int marginHint() const QWT_OVERRIDE;
163 void drawRays( QPainter *, const QRectF &,
164 const QPointF &pole,
double radius,
166 void drawCircles( QPainter *, const QRectF &,
168 const
QList<
double> & ) const;
170 void drawAxis( QPainter *,
int axisId ) const;
173 void updateScaleDraws(
175 const QPointF &pole, const
double radius ) const;
184 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtPolarGrid::DisplayFlags )
185 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtPolarGrid::GridAttributes )
A class representing an interval.
A class representing a scale division.
Base class for items on a polar plot.
An item which draws scales and grid lines on a polar plot.
A class for drawing round scales.
QFlags< GridAttribute > GridAttributes
Grid attributes.
QFlags< DisplayFlag > DisplayFlags
Display flags.
A class for drawing scales.
GridAttribute
Grid attributes.