Fawkes API Fawkes Development Version
|
Drawer for Spline objects. More...
#include <>>
Public Member Functions | |
SplineDrawer (Spline &s) | |
Constructor. | |
SplineDrawer (const Spline &s) | |
Constructor. | |
virtual | ~SplineDrawer () |
Destructor. | |
virtual void | draw (Cairo::RefPtr< Cairo::Context > &context) |
This method is called by the GeomDrawingArea. |
Drawer for Spline objects.
Definition at line 33 of file spline_drawer.h.
fawkes::SplineDrawer::SplineDrawer | ( | Spline & | s | ) |
Constructor.
This constructor does not copy the Spline object but keeps a pointer to the specified Spline object. Consequently, you have to make sure that the object is not deleted before it is drawn. If you cannot ensure this use the constructor that is given a const reference to the object to draw.
s | the Spline to draw |
Definition at line 45 of file spline_drawer.cpp.
fawkes::SplineDrawer::SplineDrawer | ( | const Spline & | s | ) |
Constructor.
Contrary to the other constructor, this constructor create a local copy of the object to draw.
s | the Spline to draw |
Definition at line 56 of file spline_drawer.cpp.
fawkes::SplineDrawer::~SplineDrawer | ( | ) | [virtual] |
Destructor.
Definition at line 63 of file spline_drawer.cpp.
void fawkes::SplineDrawer::draw | ( | Cairo::RefPtr< Cairo::Context > & | context | ) | [virtual] |
This method is called by the GeomDrawingArea.
Here, derived classes should implement the drawing code.
context | the drawing context |
Implements fawkes::GeomDrawer.
Definition at line 70 of file spline_drawer.cpp.
References fawkes::BezierDrawer::draw().