Go to the documentation of this file.
23 :
align( Qt::AlignCenter )
91 const QPointF& pole,
double radius,
92 const QRectF& canvasRect )
const
95 Q_UNUSED( canvasRect );
114 int xlw = qMax(
int(
m_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 );
const QSize & size() const
void setItemAttribute(ItemAttribute, bool on=true)
void setSymbol(const QwtSymbol *s)
Assign a symbol.
virtual ~QwtPolarMarker()
Destructor.
QPoint qwtPolar2Pos(const QPoint &pole, double radius, double angle)
A point in polar coordinates.
virtual QwtInterval boundingInterval(int scaleId) const QWT_OVERRIDE
void setZ(double z)
Set the z value.
@ NoSymbol
No Style. The symbol cannot be drawn.
QwtPolarMarker()
Sets alignment to Qt::AlignCenter, and style to NoLine.
A class representing an interval.
const QwtSymbol * symbol() const
A class representing a text.
double azimuth() const
Returns the azimuth.
A class for drawing symbols.
virtual void itemChanged()
void drawSymbol(QPainter *, const QRectF &) const
Draw the symbol into a rectangle.
static const int LabelDist
Base class for items on a polar plot.
@ Rtti_PolarMarker
For QwtPolarMarker.
void setLabelAlignment(Qt::Alignment)
Set the alignment of the label.
Qt::Alignment labelAlignment() const
double transform(double s) const
QwtPointPolar position() const
virtual void draw(QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const QWT_OVERRIDE
void setPosition(const QwtPointPolar &)
Change the position of the marker.
virtual int rtti() const QWT_OVERRIDE
constexpr std::uintptr_t align(std::size_t alignment, std::uintptr_t ptr, std::size_t &space)
@ ScaleRadius
Radial scale.
void setLabel(const QwtText &)
Set the label.
double radius() const
Returns the radius.
void draw(QPainter *painter, const QRectF &rect) const
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46