#include <qwt_symbol.h>
Public Types | |
| enum | Style { None, Ellipse, Rect, Diamond, Triangle, DTriangle, UTriangle, LTriangle, RTriangle, Cross, XCross, StyleCnt } |
Public Member Functions | |
| QwtSymbol () | |
| QwtSymbol (Style st, const QBrush &bd, const QPen &pn, const QSize &s) | |
| virtual | ~QwtSymbol () |
| bool | operator!= (const QwtSymbol &) const |
| bool | operator== (const QwtSymbol &) const |
| void | setSize (const QSize &s) |
| void | setSize (int a, int b=-1) |
| void | setBrush (const QBrush &b) |
| void | setPen (const QPen &p) |
| void | setStyle (Style s) |
| const QBrush & | brush () const |
| const QPen & | pen () const |
| const QSize & | size () const |
| Style | style () const |
| void | draw (QPainter *p, const QPoint &pt) const |
| void | draw (QPainter *p, int x, int y) const |
| virtual void | draw (QPainter *p, const QRect &r) const |
Protected Attributes | |
| QBrush | d_brush |
| QPen | d_pen |
| QSize | d_size |
| Style | d_style |
Definition at line 22 of file qwt_symbol.h.
|
|
Style
Definition at line 29 of file qwt_symbol.h. |
|
|
Default Constructor The symbol is constructed with gray interior, black outline with zero width, no size and style 'None'. Definition at line 22 of file qwt_symbol.cpp. |
|
||||||||||||||||||||
|
Constructor.
Definition at line 37 of file qwt_symbol.cpp. |
|
|
Destructor.
Definition at line 47 of file qwt_symbol.cpp. |
|
|
Definition at line 47 of file qwt_symbol.h. Referenced by QwtPlotPrintFilter::apply(), operator==(), and QwtPlotPrintFilter::reset(). |
|
||||||||||||
|
Draw the symbol into a bounding rectangle. This function overrides the symbol's size settings, but it doesn't modify them.
Definition at line 133 of file qwt_symbol.cpp. References Cross, d_brush, d_pen, d_style, Diamond, QwtPainter::drawEllipse(), QwtPainter::drawLine(), QwtPainter::drawPolygon(), QwtPainter::drawRect(), DTriangle, Ellipse, LTriangle, Rect, RTriangle, Triangle, UTriangle, and XCross. |
|
||||||||||||||||
|
Draw the symbol at a point (x,y).
Definition at line 102 of file qwt_symbol.cpp. |
|
||||||||||||
|
Draw the symbol at a specified point.
Definition at line 217 of file qwt_symbol.cpp. Referenced by draw(), QwtMarker::draw(), QwtLegendButton::drawIdentifier(), and QwtCurve::drawSymbols(). |
|
|
!= operator
Definition at line 252 of file qwt_symbol.cpp. |
|
|
== operator
Definition at line 245 of file qwt_symbol.cpp. |
|
|
Definition at line 49 of file qwt_symbol.h. Referenced by QwtPlotPrintFilter::apply(), operator==(), and QwtPlotPrintFilter::reset(). |
|
|
Assign a brush. The brush is used to draw the interior of the symbol.
Definition at line 80 of file qwt_symbol.cpp. References d_brush. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
|
Assign a pen. The pen is used to draw the symbol's outline.
Definition at line 92 of file qwt_symbol.cpp. References d_pen. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
||||||||||||
|
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).
Definition at line 60 of file qwt_symbol.cpp. References d_size. |
|
|
Set the symbol's size.
Definition at line 68 of file qwt_symbol.cpp. References d_size. |
|
|
Specify the symbol style. The following styles are defined:
Definition at line 239 of file qwt_symbol.cpp. References d_style. |
|
|
Definition at line 51 of file qwt_symbol.h. Referenced by QwtMarker::draw(), QwtLegendButton::drawIdentifier(), and operator==(). |
|
|
Definition at line 53 of file qwt_symbol.h. Referenced by QwtPlot::closestMarker(), QwtMarker::draw(), QwtCurve::draw(), QwtLegendButton::drawIdentifier(), operator==(), and QwtPlot::updateLegendItem(). |
|
|
Definition at line 60 of file qwt_symbol.h. Referenced by draw(), and setBrush(). |
|
|
Definition at line 61 of file qwt_symbol.h. |
|
|
Definition at line 62 of file qwt_symbol.h. |
|
|
Definition at line 63 of file qwt_symbol.h. Referenced by draw(), and setStyle(). |
1.3.2