Fawkes API
Fawkes Development Version
|
Drawer for HomPoint objects. More...
#include <>>
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... | |
![]() | |
GeomDrawer () | |
Constructor. More... | |
virtual | ~GeomDrawer () |
Destructor. More... | |
Protected Attributes | |
float | m_point_size |
The radius of the point. More... | |
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().