Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::HomVectorDrawer Class Reference

Drawer for HomVector objects. More...

#include <>>

Inheritance diagram for fawkes::HomVectorDrawer:

Public Member Functions

 HomVectorDrawer (HomVector &v)
 Constructor. More...
 
 HomVectorDrawer (HomVector &v, HomPoint &offset)
 Constructor. More...
 
 HomVectorDrawer (const HomVector &v)
 Constructor. More...
 
 HomVectorDrawer (const HomVector &v, const HomPoint &offset)
 Constructor. More...
 
 HomVectorDrawer (const HomVectorDrawer &d)
 Copy constructor. More...
 
virtual ~HomVectorDrawer ()
 Destrcutor. More...
 
virtual void draw (Cairo::RefPtr< Cairo::Context > &context)
 This method is called by the GeomDrawingArea. More...
 
- Public Member Functions inherited from fawkes::GeomDrawer
 GeomDrawer ()
 Constructor. More...
 
virtual ~GeomDrawer ()
 Destructor. More...
 

Detailed Description

Drawer for HomVector objects.

In order to draw a vector an additional offset point needs to be given.

Author
Daniel Beck

Definition at line 33 of file hom_vector_drawer.h.

Constructor & Destructor Documentation

fawkes::HomVectorDrawer::HomVectorDrawer ( HomVector v)

Constructor.

Parameters
va HomVector.

Definition at line 39 of file hom_vector_drawer.cpp.

fawkes::HomVectorDrawer::HomVectorDrawer ( HomVector v,
HomPoint offset 
)

Constructor.

Parameters
va HomVector.
offsetan offset point

Definition at line 50 of file hom_vector_drawer.cpp.

fawkes::HomVectorDrawer::HomVectorDrawer ( const HomVector v)

Constructor.

This constructor creates a copy of the vector to draw.

Parameters
va HomVector

Definition at line 61 of file hom_vector_drawer.cpp.

fawkes::HomVectorDrawer::HomVectorDrawer ( const HomVector v,
const HomPoint offset 
)

Constructor.

This constructor creates copies of the vector and the offset.

Parameters
va HomVector.
offsetan offset point

Definition at line 73 of file hom_vector_drawer.cpp.

fawkes::HomVectorDrawer::HomVectorDrawer ( const HomVectorDrawer d)

Copy constructor.

Parameters
danother HomVectorDrawer

Definition at line 83 of file hom_vector_drawer.cpp.

fawkes::HomVectorDrawer::~HomVectorDrawer ( )
virtual

Destrcutor.

Definition at line 91 of file hom_vector_drawer.cpp.

Member Function Documentation

void fawkes::HomVectorDrawer::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 101 of file hom_vector_drawer.cpp.

References fawkes::HomPoint::move_to(), fawkes::HomCoord::x(), and fawkes::HomCoord::y().


The documentation for this class was generated from the following files: