|
Fawkes API
Fawkes Development Version
|
Drawer for HomPoint objects. More...
#include <>>

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. | |
Public Member Functions inherited from fawkes::GeomDrawer | |
| GeomDrawer () | |
| Constructor. | |
| virtual | ~GeomDrawer () |
| Destructor. | |
Protected Attributes | |
| float | m_point_size |
| The radius of the point. | |
Drawer for HomPoint objects.
Definition at line 33 of file hom_point_drawer.h.
| fawkes::HomPointDrawer::HomPointDrawer | ( | const HomPoint & | p | ) |
Constructor.
| p | the HomPoint to draw |
Definition at line 41 of file hom_point_drawer.cpp.
References m_point_size.
|
virtual |
Destructor.
Definition at line 48 of file hom_point_drawer.cpp.
|
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 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.
| s | the point size |
Definition at line 57 of file hom_point_drawer.cpp.
References m_point_size.
Referenced by fawkes::GeomDrawingArea::operator<<().
|
protected |
The radius of the point.
Definition at line 44 of file hom_point_drawer.h.
Referenced by draw(), HomPointDrawer(), and set_point_size().