25 #ifndef IMG_GUI_MASK_OVERLAY_HH_
26 #define IMG_GUI_MASK_OVERLAY_HH_
36 namespace ost {
namespace img {
namespace gui {
39 class DataViewerPanel;
49 const QPoint& lastmouse);
virtual QMenu * GetMenu()
return overlay specific pulldown menu
void SetMask(const MaskPtr &m)
virtual bool OnMouseEvent(QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse)
mouse event handler
virtual bool OnKeyEvent(QKeyEvent *e, DataViewerPanel *dvp)
key event handler
std::vector< geom::Polygon2 > polygons_
MaskOverlay(const MaskPtr &m)
geom::Vec2 old_mouse_pos_
void SetShift(geom::Vec2 shift)
virtual void OnDraw(QPainter &pnt, DataViewerPanel *dvp, bool is_active)
call when redrawing is necessary
#define DLLEXPORT_OST_GUI
boost::shared_ptr< MaskBase > MaskPtr