23 align( Qt::AlignCenter )
91 const QPointF &pole,
double radius,
92 const QRectF &canvasRect )
const 95 Q_UNUSED( canvasRect );
114 int xlw = qMax(
int(
d_data->
pen.width() ), 1 );
117 int xlw1 = qMax( ( xlw + 1 ) / 2, ( sSym.width() + 1 ) / 2 ) +
LabelDist;
118 xlw = qMax( xlw / 2, ( sSym.width() + 1 ) / 2 ) +
LabelDist;
119 int ylw1 = qMax( ( ylw + 1 ) / 2, ( sSym.height() + 1 ) / 2 ) +
LabelDist;
120 ylw = qMax( ylw / 2, ( sSym. height() + 1 ) / 2 ) +
LabelDist;
123 tr.moveCenter( QPoint( 0, 0 ) );
138 tr.translate( dx, dy );
void setPosition(const QwtPointPolar &)
Change the position of the marker.
A point in polar coordinates.
QwtPointPolar position() const
A class representing an interval.
QPoint qwtPolar2Pos(const QPoint &pole, double radius, double angle)
double radius() const
Returns the radius.
virtual ~QwtPolarMarker()
Destructor.
void draw(QPainter *painter, const QRectF &rect) const
Qt::Alignment labelAlignment() const
A class for drawing symbols.
double azimuth() const
Returns the azimuth.
Base class for items on a polar plot.
void setLabelAlignment(Qt::Alignment)
Set the alignment of the label.
const QSize & size() const
void * align(std::size_t alignment, std::size_t size, void *&ptr, std::size_t &space, std::size_t &required_space)
static const int LabelDist
virtual void draw(QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const QWT_OVERRIDE
void setItemAttribute(ItemAttribute, bool on=true)
void setZ(double z)
Set the z value.
A class representing a text.
void setLabel(const QwtText &)
Set the label.
void setSymbol(const QwtSymbol *s)
Assign a symbol.
virtual int rtti() const QWT_OVERRIDE
const QwtSymbol * symbol() const
double transform(double s) const
virtual void itemChanged()
void drawSymbol(QPainter *, const QRectF &) const
Draw the symbol into a rectangle.
QwtPolarMarker()
Sets alignment to Qt::AlignCenter, and style to NoLine.
virtual QwtInterval boundingInterval(int scaleId) const QWT_OVERRIDE
No Style. The symbol cannot be drawn.