Fawkes API  Fawkes Development Version
fawkes::HomPointDrawer Class Reference

Drawer for HomPoint objects. More...

#include <>>

Inheritance diagram for fawkes::HomPointDrawer:

List of all members.

Public Member Functions

 HomPointDrawer (const HomPoint &p)
 Constructor.
virtual ~HomPointDrawer ()
 Destructor.
void set_point_size (float s)
 Set the point size with which points a drawn by this drawer.
virtual void draw (Cairo::RefPtr< Cairo::Context > &context)
 This method is called by the GeomDrawingArea.

Protected Attributes

float m_point_size
 The radius of the point.

Detailed Description

Drawer for HomPoint objects.

Author:
Daniel Beck

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 fawkes::HomCoord::x(), fawkes::HomCoord::y(), and m_point_size.

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

The radius of the point.

Definition at line 44 of file hom_point_drawer.h.

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


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