fawkes::HomPointDrawer Class Reference

Drawer for HomPoint objects. More...

#include <geometry/gtk/hom_point_drawer.h>

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

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

Definition at line 33 of file hom_point_drawer.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
p the 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:
context the 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:
s the 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 draw(), HomPointDrawer(), and set_point_size().


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1