25 #ifndef __GEOMETRY_GEOM_DRAWING_AREA_H_
26 #define __GEOMETRY_GEOM_DRAWING_AREA_H_
30 # include <libglademm/xml.h>
42 class DrawingManipulator;
52 GeomDrawingArea(BaseObjectType* cobject,
const Glib::RefPtr<Gnome::Glade::Xml>& ref_xml);
67 virtual void to_drawing_coords(
int window_x,
int window_y,
float& drawing_x,
float& drawing_y);
70 virtual void pre_draw(Cairo::RefPtr<Cairo::Context>& context);
71 virtual void post_draw(Cairo::RefPtr<Cairo::Context>& context);
74 virtual bool on_expose_event(GdkEventExpose* event);
76 std::vector<fawkes::GeomDrawer*> m_drawers;
A spline made up of cubic Bezier curves.
A Gtk::DrawingArea that allows to easily display drawable objects of the geometry library...
GeomDrawingArea(float max_x=5.0, float max_y=5.0, float min_x=-5.0, float min_y=-5.0)
Constructor.
void clear()
Clear the drawing area.
virtual void post_draw(Cairo::RefPtr< Cairo::Context > &context)
This method is called by the expose signal handler after the draw routines of the registered drawers ...
virtual void to_drawing_coords(int window_x, int window_y, float &drawing_x, float &drawing_y)
Convert the given window coordinates into the frame of the drawing area.
GeomDrawingArea & operator<<(fawkes::HomPoint &p)
<<-operator for HomPoint objects
Allows to control some aspects of the rendering of objects.
virtual ~GeomDrawingArea()
Destructor.
virtual void pre_draw(Cairo::RefPtr< Cairo::Context > &context)
This method is called by the expose signal handler before the draw routines of the registered drawers...