170 QwtSymbol(
const QPainterPath &,
const QBrush &,
const QPen & );
177 void setSize(
const QSize & );
178 void setSize(
int width,
int height = -1 );
179 const QSize &size()
const;
181 void setPinPoint(
const QPointF &pos,
bool enable =
true );
182 QPointF pinPoint()
const;
184 void setPinPointEnabled(
bool );
185 bool isPinPointEnabled()
const;
187 virtual void setColor(
const QColor & );
189 void setBrush(
const QBrush & );
190 const QBrush &brush()
const;
192 void setPen(
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
193 void setPen(
const QPen & );
194 const QPen &pen()
const;
196 void setStyle(
Style );
199 void setPath(
const QPainterPath & );
200 const QPainterPath &path()
const;
202 void setPixmap(
const QPixmap & );
203 const QPixmap &pixmap()
const;
209 void setSvgDocument(
const QByteArray & );
212 void drawSymbol( QPainter *,
const QRectF & )
const;
213 void drawSymbol( QPainter *,
const QPointF & )
const;
214 void drawSymbols( QPainter *,
const QPolygonF & )
const;
215 void drawSymbols( QPainter *,
216 const QPointF *,
int numPoints )
const;
218 virtual QRect boundingRect()
const;
219 void invalidateCache();
222 virtual void renderSymbols( QPainter *,
223 const QPointF *,
int numPoints )
const;
239 QPainter *painter, const QPointF &pos )
const 241 drawSymbols( painter, &pos, 1 );
252 QPainter *painter,
const QPolygonF &points )
const 254 drawSymbols( painter, points.data(), points.size() );
A class for drawing symbols.
Don't use a pixmap cache.
A paint device for scalable graphics.
void drawSymbols(QPainter *, const QPolygonF &) const
Draw symbols at the specified points.
Triangle pointing upwards.
Triangle pointing upwards.
Always use a pixmap cache.
Triangle pointing downwards.