|
The Gnome Chemistry Utils
0.14.15
|
#include <squiggle.h>
Public Member Functions | |
| Squiggle (Canvas *canvas, double xstart, double ystart, double xend, double yend) | |
| Squiggle (Group *parent, double xstart, double ystart, double xend, double yend, ItemClient *client=NULL) | |
| virtual | ~Squiggle () |
| void | SetPosition (double xstart, double ystart, double xend, double yend) |
| double | Distance (double x, double y, Item **item) const |
| void | Draw (cairo_t *cr, bool is_vector) const |
| void | Move (double x, double y) |
| void | SetWidth (double val) |
| double | GetWidth (void) const |
| void | SetStep (double val) |
| double | GetStep (void) const |
Public Member Functions inherited from gccv::LineItem | |
| LineItem (Canvas *canvas) | |
| LineItem (Group *parent, ItemClient *client=NULL) | |
| virtual | ~LineItem () |
| GOColor | GetEffectiveLineColor () const |
| bool | ApplyLine (cairo_t *cr) const |
| void | SetDashes (double const *dashes, int num_dashes, double offset) |
| void | SetLineWidth (double val) |
| double | GetLineWidth (void) const |
| void | SetLineColor (GOColor val) |
| GOColor | GetLineColor (void) const |
| void | SetAutoColor (bool val) |
| bool | GetAutoColor (void) const |
Public Member Functions inherited from gccv::Item | |
| Item (Canvas *canvas) | |
| Item (Group *parent, ItemClient *client=NULL) | |
| virtual | ~Item () |
| void | GetBounds (double &x0, double &y0, double &x1, double &y1) const |
| void | Invalidate () const |
| void | SetVisible (bool visible) |
| virtual void | BuildPath (cairo_t *cr) const |
| virtual bool | Draw (cairo_t *cr, double x0, double y0, double x1, double y1, bool is_vector) const |
| bool | IsTopLevel () const |
| void | SetClient (ItemClient *val) |
| ItemClient * | GetClient (void) |
| Group const * | GetParent (void) const |
| bool | GetVisible (void) const |
| void | SetOperator (cairo_operator_t val) |
| cairo_operator_t | GetOperator (void) const |
Protected Member Functions | |
| void | UpdateBounds () |
Protected Member Functions inherited from gccv::Item | |
| void | BoundsChanged () |
| Canvas const * | GetCanvas () const |
Additional Inherited Members | |
Protected Attributes inherited from gccv::Item | |
| double | m_x0 |
| double | m_y0 |
| double | m_x1 |
| double | m_y1 |
Squiggle line.
A Squiggle is a line oscillating periodically.
Definition at line 39 of file squiggle.h.
| gccv::Squiggle::Squiggle | ( | Canvas * | canvas, |
| double | xstart, | ||
| double | ystart, | ||
| double | xend, | ||
| double | yend | ||
| ) |
| gccv::Squiggle::Squiggle | ( | Group * | parent, |
| double | xstart, | ||
| double | ystart, | ||
| double | xend, | ||
| double | yend, | ||
| ItemClient * | client = NULL |
||
| ) |
| parent | the Group to which the new Squiggle will be added. |
| xstart | the horizontal start position. |
| ystart | the vertical start position. |
| xend | the horizontal end position. |
| yend | the vertical end position. |
| client | the ItemClient for the new Squiggle if any. |
Creates a new Squiggle inside parent and sets client as its associated ItemClient.
|
virtual |
The destructor.
|
virtual |
| x | horizontal position |
| y | vertical position |
| item | where to store the Item. |
Implementation of Item::Distance() for the Squiggle class. Sets item to this.
Reimplemented from gccv::Item.
|
virtual |
| cr | a cairo_t. |
| is_vector | whether the cairo_t is a vectorial context. |
Draws the Squiggle to cr.
Reimplemented from gccv::Item.
|
inline |
Definition at line 132 of file squiggle.h.
|
inline |
Definition at line 123 of file squiggle.h.
|
virtual |
| x | the horizontal deplacement |
| y | the vertical deplacement |
Moves the Squiggle.
Reimplemented from gccv::Item.
| void gccv::Squiggle::SetPosition | ( | double | xstart, |
| double | ystart, | ||
| double | xend, | ||
| double | yend | ||
| ) |
| xstart | the new horizontal start position. |
| ystart | the new vertical start position. |
| xend | the new horizontal end position. |
| yend | the new vertical end position. |
Sets the Squiggle position.
|
inline |
| step | the periodicity. |
Sets the Squiggle line oscillations periodicity.
Definition at line 132 of file squiggle.h.
|
inline |
| width | the amplitude. |
Sets the Squiggle line oscillations amplitude.
Definition at line 123 of file squiggle.h.
|
protectedvirtual |
Evaluates the Squiggle bounds.
Reimplemented from gccv::Item.
1.8.12