30#include "qwt_global.h"
186 QwtSymbol( Style,
const QBrush&,
const QPen&,
const QSize& );
187 QwtSymbol(
const QPainterPath&,
const QBrush&,
const QPen& );
191 void setCachePolicy( CachePolicy );
192 CachePolicy cachePolicy()
const;
194 void setSize(
const QSize& );
195 void setSize(
int width,
int height = -1 );
196 const QSize& size()
const;
198 void setPinPoint(
const QPointF& pos,
bool enable =
true );
199 QPointF pinPoint()
const;
201 void setPinPointEnabled(
bool );
202 bool isPinPointEnabled()
const;
204 virtual void setColor(
const QColor& );
206 void setBrush(
const QBrush& );
207 const QBrush& brush()
const;
209 void setPen(
const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
210 void setPen(
const QPen& );
211 const QPen& pen()
const;
213 void setStyle( Style );
216 void setPath(
const QPainterPath& );
217 const QPainterPath& path()
const;
219 void setPixmap(
const QPixmap& );
220 const QPixmap& pixmap()
const;
226 void setSvgDocument(
const QByteArray& );
229 void drawSymbol( QPainter*,
const QRectF& )
const;
230 void drawSymbol( QPainter*,
const QPointF& )
const;
231 void drawSymbols( QPainter*,
const QPolygonF& )
const;
232 void drawSymbols( QPainter*,
233 const QPointF*,
int numPoints )
const;
235 virtual QRect boundingRect()
const;
236 void invalidateCache();
239 virtual void renderSymbols( QPainter*,
240 const QPointF*,
int numPoints )
const;
256 QPainter* painter,
const QPointF& pos )
const
269 QPainter* painter,
const QPolygonF& points )
const
271 drawSymbols( painter, points.data(), points.size() );
A paint device for scalable graphics.
Definition qwt_graphic.h:93
A class for drawing symbols.
Definition qwt_symbol.h:49
void drawSymbol(QPainter *, const QRectF &) const
Draw the symbol into a rectangle.
Definition qwt_symbol.cpp:1451
void drawSymbols(QPainter *, const QPolygonF &) const
Draw symbols at the specified points.
Definition qwt_symbol.h:268
Style
Symbol Style.
Definition qwt_symbol.h:56
@ VLine
Vertical line.
Definition qwt_symbol.h:94
@ Ellipse
Ellipse or circle.
Definition qwt_symbol.h:61
@ LTriangle
Triangle pointing left.
Definition qwt_symbol.h:79
@ Star1
X combined with +.
Definition qwt_symbol.h:97
@ HLine
Horizontal line.
Definition qwt_symbol.h:91
@ Rect
Rectangle.
Definition qwt_symbol.h:64
@ Pixmap
The symbol is represented by a pixmap.
Definition qwt_symbol.h:120
@ Triangle
Triangle pointing upwards.
Definition qwt_symbol.h:70
@ SvgDocument
The symbol is represented by a SVG graphic.
Definition qwt_symbol.h:136
@ Hexagon
Hexagon.
Definition qwt_symbol.h:103
@ Diamond
Diamond.
Definition qwt_symbol.h:67
@ Graphic
The symbol is represented by a graphic.
Definition qwt_symbol.h:128
@ Path
The symbol is represented by a painter path, where the origin ( 0, 0 ) of the path coordinate system ...
Definition qwt_symbol.h:112
@ XCross
Diagonal cross (X)
Definition qwt_symbol.h:88
@ Cross
Cross (+)
Definition qwt_symbol.h:85
@ UTriangle
Triangle pointing upwards.
Definition qwt_symbol.h:76
@ DTriangle
Triangle pointing downwards.
Definition qwt_symbol.h:73
@ RTriangle
Triangle pointing right.
Definition qwt_symbol.h:82
@ Star2
Six-pointed star.
Definition qwt_symbol.h:100
CachePolicy
Depending on the render engine and the complexity of the symbol shape it might be faster to render th...
Definition qwt_symbol.h:168
@ NoCache
Don't use a pixmap cache.
Definition qwt_symbol.h:170
@ Cache
Always use a pixmap cache.
Definition qwt_symbol.h:173