13 #include "qwt_global.h"
168 QwtSymbol( Style,
const QBrush &,
const QPen &,
const QSize & );
169 QwtSymbol(
const QPainterPath &,
const QBrush &,
const QPen & );
173 void setCachePolicy( CachePolicy );
174 CachePolicy cachePolicy()
const;
176 void setSize(
const QSize & );
177 void setSize(
int width,
int height = -1 );
178 const QSize &size()
const;
180 void setPinPoint(
const QPointF &pos,
bool enable =
true );
181 QPointF pinPoint()
const;
183 void setPinPointEnabled(
bool );
184 bool isPinPointEnabled()
const;
186 virtual void setColor(
const QColor & );
188 void setBrush(
const QBrush & );
189 const QBrush &brush()
const;
191 void setPen(
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
192 void setPen(
const QPen & );
193 const QPen &pen()
const;
195 void setStyle( Style );
198 void setPath(
const QPainterPath & );
199 const QPainterPath &path()
const;
201 void setPixmap(
const QPixmap & );
202 const QPixmap &pixmap()
const;
208 void setSvgDocument(
const QByteArray & );
211 void drawSymbol( QPainter *,
const QRectF & )
const;
212 void drawSymbol( QPainter *,
const QPointF & )
const;
213 void drawSymbols( QPainter *,
const QPolygonF & )
const;
214 void drawSymbols( QPainter *,
215 const QPointF *,
int numPoints )
const;
217 virtual QRect boundingRect()
const;
218 void invalidateCache();
221 virtual void renderSymbols( QPainter *,
222 const QPointF *,
int numPoints )
const;
240 QPainter *painter,
const QPointF &pos )
const
253 QPainter *painter,
const QPolygonF &points )
const
255 drawSymbols( painter, points.data(), points.size() );
@ Path
Definition: qwt_symbol.h:94
@ Hexagon
Hexagon.
Definition: qwt_symbol.h:85
@ LTriangle
Triangle pointing left.
Definition: qwt_symbol.h:61
@ HLine
Horizontal line.
Definition: qwt_symbol.h:73
@ XCross
Diagonal cross (X)
Definition: qwt_symbol.h:70
@ Rect
Rectangle.
Definition: qwt_symbol.h:46
@ VLine
Vertical line.
Definition: qwt_symbol.h:76
@ SvgDocument
Definition: qwt_symbol.h:118
@ Cross
Cross (+)
Definition: qwt_symbol.h:67
void drawSymbols(QPainter *, const QPolygonF &) const
Draw symbols at the specified points.
Definition: qwt_symbol.h:252
@ Triangle
Triangle pointing upwards.
Definition: qwt_symbol.h:52
void drawSymbol(QPainter *, const QRectF &) const
Draw the symbol into a rectangle.
Definition: qwt_symbol.cpp:1406
@ NoCache
Don't use a pixmap cache.
Definition: qwt_symbol.h:152
@ Ellipse
Ellipse or circle.
Definition: qwt_symbol.h:43
CachePolicy
Definition: qwt_symbol.h:150
A paint device for scalable graphics.
Definition: qwt_graphic.h:75
@ UTriangle
Triangle pointing upwards.
Definition: qwt_symbol.h:58
@ Graphic
Definition: qwt_symbol.h:110
@ Star2
Six-pointed star.
Definition: qwt_symbol.h:82
A class for drawing symbols.
Definition: qwt_symbol.h:31
@ DTriangle
Triangle pointing downwards.
Definition: qwt_symbol.h:55
@ RTriangle
Triangle pointing right.
Definition: qwt_symbol.h:64
Style
Definition: qwt_symbol.h:38
@ Cache
Always use a pixmap cache.
Definition: qwt_symbol.h:155
@ Pixmap
Definition: qwt_symbol.h:102
@ Diamond
Diamond.
Definition: qwt_symbol.h:49
@ Star1
X combined with +.
Definition: qwt_symbol.h:79