#include <qwt_symbol.h>
Public Types | |
enum | Style { None, Ellipse, Rect, Diamond, Triangle, DTriangle, UTriangle, LTriangle, RTriangle, Cross, XCross, StyleCnt } |
Public Methods | |
QwtSymbol () | |
QwtSymbol (Style st, const QBrush &bd, const QPen &pn, const QSize &s) | |
virtual | ~QwtSymbol () |
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) |
void | draw (QPainter *p, int x, int y) |
virtual void | draw (QPainter *p, const QRect &r) |
Protected Attributes | |
QBrush | d_brush |
QPen | d_pen |
QSize | d_size |
QPointArray | d_pa |
Style | d_style |
|
Style
|
|
Default Constructor.
The symbol is constructed with gray interior, black outline with zero width, no size and style 'None'. |
|
Constructor.
|
|
Destructor.
|
|
|
|
Draw the symbol into a bounding rectangle.
This function overrides the symbol's size settings, but it doesn't modify them.
|
|
Draw the symbol at a point (x,y).
The point (x,y) is the upper left corner of a rectangle with the symbol's size. |
|
Draw the symbol at a specified point.
The point specifies the upper left corner of a rectangle with the symbol's size.
|
|
|
|
Assign a brush.
The brush is used to draw the interior of the symbol.
|
|
Assign a pen.
The pen is used to draw the symbol's outline.
|
|
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).
|
|
Set the symbol's size.
|
|
Specify the symbol style.
The following styles are defined:
|
|
|
|
|