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 |
|
Style
|
|
Default Constructor The symbol is constructed with gray interior, black outline with zero width, no size and style 'None'. |
|
Constructor.
|
|
Destructor.
|
|
Return Brush.
|
|
Draw the symbol into a bounding rectangle. This function assumes that the painter has been initialized with brush and pen before. This allows a much more performant implementation when painting many symbols with the same brush and pen like in curves.
|
|
Draw the symbol at a point (x,y).
|
|
Draw the symbol at a specified point.
|
|
!= operator
|
|
== operator
|
|
Return Pen.
|
|
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:
|
|
Return Size.
|
|
Return Style.
|