123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866 |
- .TH "QwtSymbol" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- QwtSymbol \- A class for drawing symbols\&.
- .SH SYNOPSIS
- .br
- .PP
- .PP
- \fC#include <qwt_symbol\&.h>\fP
- .SS "Public Types"
- .in +1c
- .ti -1c
- .RI "enum \fBStyle\fP { \fBNoSymbol\fP = -1, \fBEllipse\fP, \fBRect\fP, \fBDiamond\fP, \fBTriangle\fP, \fBDTriangle\fP, \fBUTriangle\fP, \fBLTriangle\fP, \fBRTriangle\fP, \fBCross\fP, \fBXCross\fP, \fBHLine\fP, \fBVLine\fP, \fBStar1\fP, \fBStar2\fP, \fBHexagon\fP, \fBPath\fP, \fBPixmap\fP, \fBGraphic\fP, \fBSvgDocument\fP, \fBUserStyle\fP = 1000 }"
- .br
- .ti -1c
- .RI "enum \fBCachePolicy\fP { \fBNoCache\fP, \fBCache\fP, \fBAutoCache\fP }"
- .br
- .in -1c
- .SS "Public Member Functions"
- .in +1c
- .ti -1c
- .RI "\fBQwtSymbol\fP (\fBStyle\fP=\fBNoSymbol\fP)"
- .br
- .ti -1c
- .RI "\fBQwtSymbol\fP (\fBStyle\fP, const QBrush &, const QPen &, const QSize &)"
- .br
- .RI "Constructor\&. "
- .ti -1c
- .RI "\fBQwtSymbol\fP (const QPainterPath &, const QBrush &, const QPen &)"
- .br
- .RI "Constructor\&. "
- .ti -1c
- .RI "virtual \fB~QwtSymbol\fP ()"
- .br
- .RI "Destructor\&. "
- .ti -1c
- .RI "void \fBsetCachePolicy\fP (\fBCachePolicy\fP)"
- .br
- .ti -1c
- .RI "\fBCachePolicy\fP \fBcachePolicy\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetSize\fP (const QSize &)"
- .br
- .ti -1c
- .RI "void \fBsetSize\fP (int width, int height=\-1)"
- .br
- .RI "Specify the symbol's size\&. "
- .ti -1c
- .RI "const QSize & \fBsize\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetPinPoint\fP (const QPointF &pos, bool enable=true)"
- .br
- .RI "Set and enable a pin point\&. "
- .ti -1c
- .RI "QPointF \fBpinPoint\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetPinPointEnabled\fP (bool)"
- .br
- .ti -1c
- .RI "bool \fBisPinPointEnabled\fP () const"
- .br
- .ti -1c
- .RI "virtual void \fBsetColor\fP (const QColor &)"
- .br
- .RI "Set the color of the symbol\&. "
- .ti -1c
- .RI "void \fBsetBrush\fP (const QBrush &)"
- .br
- .RI "Assign a brush\&. "
- .ti -1c
- .RI "const QBrush & \fBbrush\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetPen\fP (const QColor &, qreal width=0\&.0, Qt::PenStyle=Qt::SolidLine)"
- .br
- .ti -1c
- .RI "void \fBsetPen\fP (const QPen &)"
- .br
- .ti -1c
- .RI "const QPen & \fBpen\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetStyle\fP (\fBStyle\fP)"
- .br
- .ti -1c
- .RI "\fBStyle\fP \fBstyle\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetPath\fP (const QPainterPath &)"
- .br
- .RI "Set a painter path as symbol\&. "
- .ti -1c
- .RI "const QPainterPath & \fBpath\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetPixmap\fP (const QPixmap &)"
- .br
- .ti -1c
- .RI "const QPixmap & \fBpixmap\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetGraphic\fP (const \fBQwtGraphic\fP &)"
- .br
- .ti -1c
- .RI "const \fBQwtGraphic\fP & \fBgraphic\fP () const"
- .br
- .ti -1c
- .RI "void \fBsetSvgDocument\fP (const QByteArray &)"
- .br
- .ti -1c
- .RI "void \fBdrawSymbol\fP (QPainter *, const QRectF &) const"
- .br
- .RI "Draw the symbol into a rectangle\&. "
- .ti -1c
- .RI "void \fBdrawSymbol\fP (QPainter *, const QPointF &) const"
- .br
- .RI "Draw the symbol at a specified position\&. "
- .ti -1c
- .RI "void \fBdrawSymbols\fP (QPainter *, const QPolygonF &) const"
- .br
- .RI "Draw symbols at the specified points\&. "
- .ti -1c
- .RI "void \fBdrawSymbols\fP (QPainter *, const QPointF *, int numPoints) const"
- .br
- .ti -1c
- .RI "virtual QRect \fBboundingRect\fP () const"
- .br
- .ti -1c
- .RI "void \fBinvalidateCache\fP ()"
- .br
- .in -1c
- .SS "Protected Member Functions"
- .in +1c
- .ti -1c
- .RI "virtual void \fBrenderSymbols\fP (QPainter *, const QPointF *, int numPoints) const"
- .br
- .in -1c
- .SH "Detailed Description"
- .PP
- A class for drawing symbols\&.
- .SH "Member Enumeration Documentation"
- .PP
- .SS "enum \fBQwtSymbol::CachePolicy\fP"
- Depending on the render engine and the complexity of the symbol shape it might be faster to render the symbol to a pixmap and to paint this pixmap\&.
- .PP
- F\&.e\&. the raster paint engine is a pure software renderer where in cache mode a draw operation usually ends in raster operation with the the backing store, that are usually faster, than the algorithms for rendering polygons\&. But the opposite can be expected for graphic pipelines that can make use of hardware acceleration\&.
- .PP
- The default setting is AutoCache
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetCachePolicy()\fP, \fBcachePolicy()\fP
- .RE
- .PP
- \fBNote\fP
- .RS 4
- The policy has no effect, when the symbol is painted to a vector graphics format ( PDF, SVG )\&.
- .RE
- .PP
- \fBWarning\fP
- .RS 4
- Since Qt 4\&.8 raster is the default backend on X11
- .RE
- .PP
- .PP
- \fBEnumerator\fP
- .in +1c
- .TP
- \fB\fINoCache \fP\fP
- Don't use a pixmap cache\&.
- .TP
- \fB\fICache \fP\fP
- Always use a pixmap cache\&.
- .TP
- \fB\fIAutoCache \fP\fP
- Use a cache when one of the following conditions is true:
- .PP
- .IP "\(bu" 2
- The symbol is rendered with the software renderer ( QPaintEngine::Raster )
- .PP
- .SS "enum \fBQwtSymbol::Style\fP"
- Symbol Style
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetStyle()\fP, \fBstyle()\fP
- .RE
- .PP
- .PP
- \fBEnumerator\fP
- .in +1c
- .TP
- \fB\fINoSymbol \fP\fP
- No Style\&. The symbol cannot be drawn\&.
- .TP
- \fB\fIEllipse \fP\fP
- Ellipse or circle\&.
- .TP
- \fB\fIRect \fP\fP
- Rectangle\&.
- .TP
- \fB\fIDiamond \fP\fP
- Diamond\&.
- .TP
- \fB\fITriangle \fP\fP
- Triangle pointing upwards\&.
- .TP
- \fB\fIDTriangle \fP\fP
- Triangle pointing downwards\&.
- .TP
- \fB\fIUTriangle \fP\fP
- Triangle pointing upwards\&.
- .TP
- \fB\fILTriangle \fP\fP
- Triangle pointing left\&.
- .TP
- \fB\fIRTriangle \fP\fP
- Triangle pointing right\&.
- .TP
- \fB\fICross \fP\fP
- Cross (+)
- .TP
- \fB\fIXCross \fP\fP
- Diagonal cross (X)
- .TP
- \fB\fIHLine \fP\fP
- Horizontal line\&.
- .TP
- \fB\fIVLine \fP\fP
- Vertical line\&.
- .TP
- \fB\fIStar1 \fP\fP
- X combined with +\&.
- .TP
- \fB\fIStar2 \fP\fP
- Six-pointed star\&.
- .TP
- \fB\fIHexagon \fP\fP
- Hexagon\&.
- .TP
- \fB\fIPath \fP\fP
- The symbol is represented by a painter path, where the origin ( 0, 0 ) of the path coordinate system is mapped to the position of the symbol\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPath()\fP, \fBpath()\fP
- .RE
- .PP
- .TP
- \fB\fIPixmap \fP\fP
- The symbol is represented by a pixmap\&. The pixmap is centered or aligned to its pin point\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP
- .RE
- .PP
- .TP
- \fB\fIGraphic \fP\fP
- The symbol is represented by a graphic\&. The graphic is centered or aligned to its pin point\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP
- .RE
- .PP
- .TP
- \fB\fISvgDocument \fP\fP
- The symbol is represented by a SVG graphic\&. The graphic is centered or aligned to its pin point\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP
- .RE
- .PP
- .TP
- \fB\fIUserStyle \fP\fP
- Styles >= QwtSymbol::UserSymbol are reserved for derived classes of \fBQwtSymbol\fP that overload \fBdrawSymbols()\fP with additional application specific symbol types\&.
- .SH "Constructor & Destructor Documentation"
- .PP
- .SS "QwtSymbol::QwtSymbol (\fBStyle\fP style = \fC\fBNoSymbol\fP\fP)"
- Default Constructor
- .PP
- \fBParameters\fP
- .RS 4
- \fIstyle\fP Symbol Style
- .RE
- .PP
- The symbol is constructed with gray interior, black outline with zero width, no size and style 'NoSymbol'\&.
- .SS "QwtSymbol::QwtSymbol (\fBQwtSymbol::Style\fP style, const QBrush & brush, const QPen & pen, const QSize & size)"
- .PP
- Constructor\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIstyle\fP Symbol Style
- .br
- \fIbrush\fP brush to fill the interior
- .br
- \fIpen\fP outline pen
- .br
- \fIsize\fP size
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetStyle()\fP, \fBsetBrush()\fP, \fBsetPen()\fP, \fBsetSize()\fP
- .RE
- .PP
- .SS "QwtSymbol::QwtSymbol (const QPainterPath & path, const QBrush & brush, const QPen & pen)"
- .PP
- Constructor\&. The symbol gets initialized by a painter path\&. The style is set to \fBQwtSymbol::Path\fP, the size is set to empty ( the path is displayed unscaled )\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpath\fP painter path
- .br
- \fIbrush\fP brush to fill the interior
- .br
- \fIpen\fP outline pen
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPath()\fP, \fBsetBrush()\fP, \fBsetPen()\fP, \fBsetSize()\fP
- .RE
- .PP
- .SH "Member Function Documentation"
- .PP
- .SS "QRect QwtSymbol::boundingRect () const\fC [virtual]\fP"
- Calculate the bounding rectangle for a symbol at position (0,0)\&.
- .PP
- \fBReturns\fP
- .RS 4
- Bounding rectangle
- .RE
- .PP
- .SS "const QBrush & QwtSymbol::brush () const"
- .PP
- \fBReturns\fP
- .RS 4
- Brush
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetBrush()\fP
- .RE
- .PP
- .SS "\fBQwtSymbol::CachePolicy\fP QwtSymbol::cachePolicy () const"
- .PP
- \fBReturns\fP
- .RS 4
- Cache policy
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBCachePolicy\fP, \fBsetCachePolicy()\fP
- .RE
- .PP
- .SS "void QwtSymbol::drawSymbol (QPainter * painter, const QPointF & pos) const\fC [inline]\fP"
- .PP
- Draw the symbol at a specified position\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpainter\fP Painter
- .br
- \fIpos\fP Position of the symbol in screen coordinates
- .RE
- .PP
- .SS "void QwtSymbol::drawSymbol (QPainter * painter, const QRectF & rect) const"
- .PP
- Draw the symbol into a rectangle\&. The symbol is painted centered and scaled into the target rectangle\&. It is always painted uncached and the pin point is ignored\&.
- .PP
- This method is primarily intended for drawing a symbol to the legend\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpainter\fP Painter
- .br
- \fIrect\fP Target rectangle for the symbol
- .RE
- .PP
- .SS "void QwtSymbol::drawSymbols (QPainter * painter, const QPointF * points, int numPoints) const"
- Render an array of symbols
- .PP
- Painting several symbols is more effective than drawing symbols one by one, as a couple of layout calculations and setting of pen/brush can be done once for the complete array\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpainter\fP Painter
- .br
- \fIpoints\fP Array of points
- .br
- \fInumPoints\fP Number of points
- .RE
- .PP
- .SS "void QwtSymbol::drawSymbols (QPainter * painter, const QPolygonF & points) const\fC [inline]\fP"
- .PP
- Draw symbols at the specified points\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpainter\fP Painter
- .br
- \fIpoints\fP Positions of the symbols in screen coordinates
- .RE
- .PP
- .SS "const \fBQwtGraphic\fP & QwtSymbol::graphic () const"
- .PP
- \fBReturns\fP
- .RS 4
- Assigned graphic
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetGraphic()\fP
- .RE
- .PP
- .SS "void QwtSymbol::invalidateCache ()"
- Invalidate the cached symbol pixmap
- .PP
- The symbol invalidates its cache, whenever an attribute is changed that has an effect ob how to display a symbol\&. In case of derived classes with individual styles ( >= \fBQwtSymbol::UserStyle\fP ) it might be necessary to call \fBinvalidateCache()\fP for attributes that are relevant for this style\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBCachePolicy\fP, \fBsetCachePolicy()\fP, \fBdrawSymbols()\fP
- .RE
- .PP
- .SS "bool QwtSymbol::isPinPointEnabled () const"
- .PP
- \fBReturns\fP
- .RS 4
- True, when the pin point translation is enabled
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP, \fBsetPinPointEnabled()\fP
- .RE
- .PP
- .SS "const QPainterPath & QwtSymbol::path () const"
- .PP
- \fBReturns\fP
- .RS 4
- Painter path for displaying the symbol
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPath()\fP
- .RE
- .PP
- .SS "const QPen & QwtSymbol::pen () const"
- .PP
- \fBReturns\fP
- .RS 4
- Pen
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPen()\fP, \fBbrush()\fP
- .RE
- .PP
- .SS "QPointF QwtSymbol::pinPoint () const"
- .PP
- \fBReturns\fP
- .RS 4
- Pin point
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP, \fBsetPinPointEnabled()\fP
- .RE
- .PP
- .SS "const QPixmap & QwtSymbol::pixmap () const"
- .PP
- \fBReturns\fP
- .RS 4
- Assigned pixmap
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPixmap()\fP
- .RE
- .PP
- .SS "void QwtSymbol::renderSymbols (QPainter * painter, const QPointF * points, int numPoints) const\fC [protected]\fP, \fC [virtual]\fP"
- Render the symbol to series of points
- .PP
- \fBParameters\fP
- .RS 4
- \fIpainter\fP Qt painter
- .br
- \fIpoints\fP Positions of the symbols
- .br
- \fInumPoints\fP Number of points
- .RE
- .PP
- .SS "void QwtSymbol::setBrush (const QBrush & brush)"
- .PP
- Assign a brush\&. The brush is used to draw the interior of the symbol\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIbrush\fP Brush
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBbrush()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setCachePolicy (\fBQwtSymbol::CachePolicy\fP policy)"
- Change the cache policy
- .PP
- The default policy is AutoCache
- .PP
- \fBParameters\fP
- .RS 4
- \fIpolicy\fP Cache policy
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBCachePolicy\fP, \fBcachePolicy()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setColor (const QColor & color)\fC [virtual]\fP"
- .PP
- Set the color of the symbol\&. Change the color of the brush for symbol types with a filled area\&. For all other symbol types the color will be assigned to the pen\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIcolor\fP Color
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetBrush()\fP, \fBsetPen()\fP, \fBbrush()\fP, \fBpen()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setGraphic (const \fBQwtGraphic\fP & graphic)"
- Set a graphic as symbol
- .PP
- \fBParameters\fP
- .RS 4
- \fIgraphic\fP Graphic
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBgraphic()\fP, \fBsetPixmap()\fP
- .RE
- .PP
- \fBNote\fP
- .RS 4
- the \fBstyle()\fP is set to \fBQwtSymbol::Graphic\fP
- .PP
- \fBbrush()\fP and \fBpen()\fP have no effect
- .RE
- .PP
- .SS "void QwtSymbol::setPath (const QPainterPath & path)"
- .PP
- Set a painter path as symbol\&. The symbol is represented by a painter path, where the origin ( 0, 0 ) of the path coordinate system is mapped to the position of the symbol\&.
- .PP
- When the symbol has valid size the painter path gets scaled to fit into the size\&. Otherwise the symbol size depends on the bounding rectangle of the path\&.
- .PP
- \fBExample\fP
- .RS 4
- The following code defines a symbol drawing an arrow:
- .RE
- .PP
- .PP
- .nf
- #include <qwt_symbol\&.h>
- QwtSymbol *symbol = new QwtSymbol();
- QPen pen( Qt::black, 2 );
- pen\&.setJoinStyle( Qt::MiterJoin );
- symbol->setPen( pen );
- symbol->setBrush( Qt::red );
- QPainterPath path;
- path\&.moveTo( 0, 8 );
- path\&.lineTo( 0, 5 );
- path\&.lineTo( -3, 5 );
- path\&.lineTo( 0, 0 );
- path\&.lineTo( 3, 5 );
- path\&.lineTo( 0, 5 );
- QTransform transform;
- transform\&.rotate( -30\&.0 );
- path = transform\&.map( path );
- symbol->setPath( path );
- symbol->setPinPoint( QPointF( 0\&.0, 0\&.0 ) );
- setSize( 10, 14 );
- .fi
- .PP
- \\endpar
- .PP
- \fBParameters\fP
- .RS 4
- \fIpath\fP Painter path
- .RE
- .PP
- \fBNote\fP
- .RS 4
- The style is implicitely set to \fBQwtSymbol::Path\fP\&.
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBpath()\fP, \fBsetSize()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setPen (const QColor & color, qreal width = \fC0\&.0\fP, Qt::PenStyle style = \fCQt::SolidLine\fP)"
- Build and assign a pen
- .PP
- In Qt5 the default pen width is 1\&.0 ( 0\&.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() )\&. This method has been introduced to hide this incompatibility\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIcolor\fP Pen color
- .br
- \fIwidth\fP Pen width
- .br
- \fIstyle\fP Pen style
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBpen()\fP, \fBbrush()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setPen (const QPen & pen)"
- Assign a pen
- .PP
- The pen is used to draw the symbol's outline\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpen\fP Pen
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBpen()\fP, \fBsetBrush()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setPinPoint (const QPointF & pos, bool enable = \fCtrue\fP)"
- .PP
- Set and enable a pin point\&. The position of a complex symbol is not always aligned to its center ( f\&.e an arrow, where the peak points to a position )\&. The pin point defines the position inside of a Pixmap, Graphic, SvgDocument or PainterPath symbol where the represented point has to be aligned to\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpos\fP Position
- .br
- \fIenable\fP En/Disable the pin point alignment
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBpinPoint()\fP, \fBsetPinPointEnabled()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setPinPointEnabled (bool on)"
- En/Disable the pin point alignment
- .PP
- \fBParameters\fP
- .RS 4
- \fIon\fP Enabled, when on is true
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetPinPoint()\fP, \fBisPinPointEnabled()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setPixmap (const QPixmap & pixmap)"
- Set a pixmap as symbol
- .PP
- \fBParameters\fP
- .RS 4
- \fIpixmap\fP Pixmap
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBpixmap()\fP, \fBsetGraphic()\fP
- .RE
- .PP
- \fBNote\fP
- .RS 4
- the \fBstyle()\fP is set to \fBQwtSymbol::Pixmap\fP
- .PP
- \fBbrush()\fP and \fBpen()\fP have no effect
- .RE
- .PP
- .SS "void QwtSymbol::setSize (const QSize & size)"
- Set the symbol's size
- .PP
- \fBParameters\fP
- .RS 4
- \fIsize\fP Size
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsize()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setSize (int width, int height = \fC\-1\fP)"
- .PP
- Specify the symbol's size\&. If the 'h' parameter is left out or less than 0, and the 'w' parameter is greater than or equal to 0, the symbol size will be set to (w,w)\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIwidth\fP Width
- .br
- \fIheight\fP Height (defaults to -1)
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsize()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setStyle (\fBQwtSymbol::Style\fP style)"
- Specify the symbol style
- .PP
- \fBParameters\fP
- .RS 4
- \fIstyle\fP Style
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBstyle()\fP
- .RE
- .PP
- .SS "void QwtSymbol::setSvgDocument (const QByteArray & svgDocument)"
- Set a SVG icon as symbol
- .PP
- \fBParameters\fP
- .RS 4
- \fIsvgDocument\fP SVG icon
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetGraphic()\fP, \fBsetPixmap()\fP
- .RE
- .PP
- \fBNote\fP
- .RS 4
- the \fBstyle()\fP is set to \fBQwtSymbol::SvgDocument\fP
- .PP
- \fBbrush()\fP and \fBpen()\fP have no effect
- .RE
- .PP
- .SS "const QSize & QwtSymbol::size () const"
- .PP
- \fBReturns\fP
- .RS 4
- Size
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetSize()\fP
- .RE
- .PP
- .SS "\fBQwtSymbol::Style\fP QwtSymbol::style () const"
- .PP
- \fBReturns\fP
- .RS 4
- Current symbol style
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetStyle()\fP
- .RE
- .PP
- .SH "Author"
- .PP
- Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|