Fawkes API
Fawkes Development Version
|
Drawer for LineSegment objects. More...
#include <>>
Public Member Functions | |
LineSegmentDrawer (LineSegment l) | |
Constructor. | |
virtual | ~LineSegmentDrawer () |
Destructor. | |
virtual void | draw (Cairo::RefPtr< Cairo::Context > &context) |
This method is called by the GeomDrawingArea. |
Drawer for LineSegment objects.
fawkes::LineSegmentDrawer::LineSegmentDrawer | ( | LineSegment | l | ) |
Constructor.
l | the LineSegement to drawer |
Definition at line 37 of file line_segment_drawer.cpp.
fawkes::LineSegmentDrawer::~LineSegmentDrawer | ( | ) | [virtual] |
Destructor.
Definition at line 43 of file line_segment_drawer.cpp.
void fawkes::LineSegmentDrawer::draw | ( | Cairo::RefPtr< Cairo::Context > & | context | ) | [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 49 of file line_segment_drawer.cpp.
References fawkes::LineSegment::p1(), fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::LineSegment::p2().