Public Member Functions

fawkes::HomVectorDrawer Class Reference

Drawer for HomVector objects. More...

#include <>>

Inheritance diagram for fawkes::HomVectorDrawer:
Inheritance graph
[legend]

List of all members.

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.

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:
v a HomVector.

Definition at line 39 of file hom_vector_drawer.cpp.

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

Constructor.

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

Parameters:
v a 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:
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.

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


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:
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().


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