#include <draw_overlay.hh>
Inherits ost::img::gui::Overlay.
Public Member Functions | |
DrawOverlay (ImageHandle imagehandle) | |
virtual bool | OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse) |
virtual void | OnMenuEvent (QAction *e) |
virtual QMenu * | GetMenu () |
Protected Attributes | |
ImageHandle | imagehandle_ |
Real | pixel_value_ |
QMenu * | menu_ |
Definition at line 39 of file draw_overlay.hh.
DrawOverlay | ( | ImageHandle | imagehandle | ) |
initialization requires name
virtual QMenu* GetMenu | ( | ) | [virtual] |
return overlay specific pulldown menu
Reimplemented from Overlay.
virtual void OnMenuEvent | ( | QAction * | e | ) | [virtual] |
Reimplemented from Overlay.
virtual bool OnMouseEvent | ( | QMouseEvent * | e, | |
DataViewerPanel * | dvp, | |||
const QPoint & | lastmouse | |||
) | [virtual] |
mouse event handler
if an overlay is active, it receives the mouse events. if it handles the event for itself, it should return true, otherwise false should be returned to give the data viewer a chance to handle the event for itself
Reimplemented from Overlay.
ImageHandle imagehandle_ [protected] |
Definition at line 51 of file draw_overlay.hh.
QMenu* menu_ [protected] |
Definition at line 53 of file draw_overlay.hh.
Real pixel_value_ [protected] |
Definition at line 52 of file draw_overlay.hh.