|
The Gnome Chemistry Utils
0.14.6
|
Multi-segments line. More...
#include <poly-line.h>
Public Member Functions | |
| PolyLine (Canvas *canvas, std::list< Point > &points) | |
| PolyLine (Group *parent, std::list< Point > &points, ItemClient *client=NULL) | |
| virtual | ~PolyLine () |
| void | SetPoints (std::list< Point > &points) |
| double | Distance (double x, double y, Item **item) const |
| void | Draw (cairo_t *cr, bool is_vector) const |
| void | Move (double x, double y) |
Public Member Functions inherited from gccv::LineItem | |
| LineItem (Canvas *canvas) | |
| LineItem (Group *parent, ItemClient *client=NULL) | |
| virtual | ~LineItem () |
| GOColor | GetEffectiveLineColor () const |
| void | 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 |
Protected Attributes | |
| std::list< Point > | m_Points |
Protected Attributes inherited from gccv::Item | |
| double | m_x0 |
| double | m_y0 |
| double | m_x1 |
| double | m_y1 |
Multi-segments line.
Line item with several linear segments.
Definition at line 41 of file poly-line.h.
| gccv::PolyLine::PolyLine | ( | Group * | parent, |
| std::list< Point > & | points, | ||
| ItemClient * | client = NULL |
||
| ) |
| parent | the Group to which the new PolyLine will be added. |
| points | the vertices positions. |
| client | the ItemClient for the new PolyLine if any. |
Creates a new PolyLine 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 PolyLine 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 PolyLine to cr.
Reimplemented from gccv::Item.
|
virtual |
| x | the horizontal deplacement |
| y | the vertical deplacement |
Moves the PolyLine.
Reimplemented from gccv::Item.
| void gccv::PolyLine::SetPoints | ( | std::list< Point > & | points | ) |
| points | the new vertices positions. |
Sets the vertices for the PolyLine instance.
|
protectedvirtual |
Evaluates the PolyLine bounds.
Reimplemented from gccv::Item.
|
protected |
The PolyLine vertices.
Definition at line 106 of file poly-line.h.
1.8.6