Fawkes API Fawkes Development Version

fawkes::SplineDrawer Class Reference

Drawer for Spline objects. More...

#include <>>

Inheritance diagram for fawkes::SplineDrawer:

List of all members.

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.

Detailed Description

Drawer for Spline objects.

Author:
Daniel Beck

Definition at line 33 of file spline_drawer.h.


Constructor & Destructor Documentation

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.

Parameters:
sthe 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.

Parameters:
sthe 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.


Member Function Documentation

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.

Parameters:
contextthe drawing context

Implements fawkes::GeomDrawer.

Definition at line 70 of file spline_drawer.cpp.

References fawkes::BezierDrawer::draw().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends