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

Drawer for HomPoint objects. More...

#include <>>

Inheritance diagram for fawkes::HomPointDrawer:

Public Member Functions

 HomPointDrawer (const HomPoint &p)
 Constructor. More...
 
virtual ~HomPointDrawer ()
 Destructor. More...
 
void set_point_size (float s)
 Set the point size with which points a drawn by this drawer. 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...
 

Protected Attributes

float m_point_size
 The radius of the point. More...
 

Detailed Description

Drawer for HomPoint objects.

Author
Daniel Beck

Definition at line 33 of file hom_point_drawer.h.

Constructor & Destructor Documentation

fawkes::HomPointDrawer::HomPointDrawer ( const HomPoint p)

Constructor.

Parameters
pthe HomPoint to draw

Definition at line 41 of file hom_point_drawer.cpp.

References m_point_size.

fawkes::HomPointDrawer::~HomPointDrawer ( )
virtual

Destructor.

Definition at line 48 of file hom_point_drawer.cpp.

Member Function Documentation

void fawkes::HomPointDrawer::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 63 of file hom_point_drawer.cpp.

References m_point_size, fawkes::HomCoord::x(), and fawkes::HomCoord::y().

void fawkes::HomPointDrawer::set_point_size ( float  s)

Set the point size with which points a drawn by this drawer.

Parameters
sthe point size

Definition at line 57 of file hom_point_drawer.cpp.

References m_point_size.

Referenced by fawkes::GeomDrawingArea::operator<<().

Member Data Documentation

fawkes::HomPointDrawer::m_point_size
protected

The radius of the point.

Definition at line 44 of file hom_point_drawer.h.

Referenced by draw(), HomPointDrawer(), and set_point_size().


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