Symbols are used by Curve to draw individual data points. There are various kinds of symbols that can be used like ellipses, rectangles, triangles (with different orientations) and crosses. Additional symbols can be implemented by overloading draw_vfunc_().
Public Member Functions | |
Symbol (SymbolStyleID st=SYMBOL_NONE, int size=1, int sizeb=-1) | |
virtual | ~Symbol () |
bool | operator!= (const Symbol &) const |
bool | operator== (const Symbol &) const |
void | set_size (int a, int b=-1) |
void | set_style (SymbolStyleID s) |
Glib::RefPtr< Paint > | paint () const |
int | size () const |
int | size_aux () const |
SymbolStyleID | style () const |
void | draw (const Glib::RefPtr< Gdk::Drawable > &p, const Gdk::Point &pt) const |
void | draw (const Glib::RefPtr< Gdk::Drawable > &p, const Gdk::Rectangle &r) const |
void | draw (const Glib::RefPtr< Gdk::Drawable > &p, int x, int y, int w=-1, int h=-1) const |
Protected Member Functions | |
virtual void | draw_vfunc_ (const Glib::RefPtr< Gdk::Drawable > &p, int x, int y, int w, int h) const |
|
Constructor.
|
|
Destructor.
|
|
Draw the symbol at the specified position with optionally specified size.
|
|
Draw the symbol at a point (x,y).
|
|
Draw the symbol at a specified point.
|
|
overload this function to provide additional symbol styles To draw the symbol this function makes use of paint() - the pen is used to draw outlines whilst the brush is used to fill the symbol. |
|
!= operator
|
|
== operator
|
|
Return a reference to the Paint the symbol is drawn with |
|
Specify the symbol's size. In most cases, the vertical size is the same as the horizontal size. It is perfectly sufficient to set the horizontal size. size() and size_aux() will return the same value, then.
|
|
Specify the symbol style. The following styles are defined:
|
|
Return Size.
|
|
Return auxiliary size or, if unset, size().
|
|
Return SymbolStyle.
|