13#include "qwt_global.h"
169 QwtSymbol( Style,
const QBrush&,
const QPen&,
const QSize& );
170 QwtSymbol(
const QPainterPath&,
const QBrush&,
const QPen& );
174 void setCachePolicy( CachePolicy );
175 CachePolicy cachePolicy()
const;
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
252 QPainter* painter,
const QPolygonF& points )
const
254 drawSymbols( painter, points.data(), points.size() );
A paint device for scalable graphics.
A class for drawing symbols.
void drawSymbol(QPainter *, const QRectF &) const
Draw the symbol into a rectangle.
void drawSymbols(QPainter *, const QPolygonF &) const
Draw symbols at the specified points.
@ Ellipse
Ellipse or circle.
@ LTriangle
Triangle pointing left.
@ Star1
X combined with +.
@ Triangle
Triangle pointing upwards.
@ XCross
Diagonal cross (X)
@ UTriangle
Triangle pointing upwards.
@ DTriangle
Triangle pointing downwards.
@ RTriangle
Triangle pointing right.
@ NoCache
Don't use a pixmap cache.
@ Cache
Always use a pixmap cache.