1 #ifndef DRAWINGOBJECT_H
2 #define DRAWINGOBJECT_H
9 #include "MovableRect.h"
18 bool Contains( wxMouseEvent & e );
20 virtual void Move( wxMouseEvent & e );
22 virtual std::vector< MovableRect *> GetAllRectsRW() = 0;
23 virtual std::vector< const MovableRect *> GetAllRects()
const = 0;
26 virtual void DrawClient( wxDC & dc,
bool isSelected )
const = 0;
27 virtual std::vector<MovableRect *> ContainsClient(
const Point & naturalClick ) = 0;
29 Point GetPointNatural( wxMouseEvent & e )
const;
30 std::vector<MovableRect *> m_chosenRects;
32 const double & m_zoom;
33 const Canvas & m_canvas;
38 void StoreMouseClick( wxMouseEvent & e );
44 #endif // DRAWINGOBJECT_H