OpenStructure
|
#include <draw_overlay.hh>
Inherits 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 () |
Public Member Functions inherited from Overlay | |
Overlay (const String &name) | |
void | SetName (const String &name) |
String | GetName () const |
virtual void | OnDraw (QPainter &pnt, DataViewerPanel *dvp, bool is_active) |
virtual bool | OnKeyEvent (QKeyEvent *e, DataViewerPanel *dvp) |
Protected Attributes | |
ImageHandle | imagehandle_ |
Real | pixel_value_ |
QMenu * | menu_ |
Additional Inherited Members | |
Public Slots inherited from Overlay | |
void | OnMenuEventSlot (QAction *e) |
Signals inherited from Overlay | |
void | SettingsChanged () |
void | InfoTextChanged (const QString &t) |
Definition at line 39 of file draw_overlay.hh.
DrawOverlay | ( | ImageHandle | imagehandle | ) |
initialization requires name
|
virtual |
return overlay specific pulldown menu
Reimplemented from Overlay.
|
virtual |
Reimplemented from Overlay.
|
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.
|
protected |
Definition at line 51 of file draw_overlay.hh.
|
protected |
Definition at line 53 of file draw_overlay.hh.
|
protected |
Definition at line 52 of file draw_overlay.hh.