Drawer for HomVector objects. More...
#include <>>
Public Member Functions | |
HomVectorDrawer (HomVector &v) | |
Constructor. | |
HomVectorDrawer (HomVector &v, HomPoint &offset) | |
Constructor. | |
HomVectorDrawer (const HomVector &v) | |
Constructor. | |
HomVectorDrawer (const HomVector &v, const HomPoint &offset) | |
Constructor. | |
HomVectorDrawer (const HomVectorDrawer &d) | |
Copy constructor. | |
virtual | ~HomVectorDrawer () |
Destrcutor. | |
virtual void | draw (Cairo::RefPtr< Cairo::Context > &context) |
This method is called by the GeomDrawingArea. |
Drawer for HomVector objects.
In order to draw a vector an additional offset point needs to be given.
Definition at line 33 of file hom_vector_drawer.h.
fawkes::HomVectorDrawer::HomVectorDrawer | ( | HomVector & | v | ) |
Constructor.
v | a HomVector. | |
offset | an 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.
v | a HomVector |
Definition at line 61 of file hom_vector_drawer.cpp.
Constructor.
This constructor creates copies of the vector and the offset.
v | a HomVector. | |
offset | an offset point |
Definition at line 73 of file hom_vector_drawer.cpp.
fawkes::HomVectorDrawer::HomVectorDrawer | ( | const HomVectorDrawer & | d | ) |
Copy constructor.
d | another 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.
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.
context | the 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().