#include <overlay_base.hh>
Inherits PyQt4::QtCore::QObject.
Inherited by DrawOverlay, MaskOverlay, NullOverlay, and PointlistOverlayBase.
Public Slots | |
void | OnMenuEventSlot (QAction *e) |
Signals | |
void | SettingsChanged () |
void | InfoTextChanged (const QString &t) |
Public Member Functions | |
Overlay (const String &name) | |
void | SetName (const String &name) |
String | GetName () const |
virtual void | OnDraw (QPainter &pnt, DataViewerPanel *dvp, bool is_active) |
virtual bool | OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse) |
virtual bool | OnKeyEvent (QKeyEvent *e, DataViewerPanel *dvp) |
virtual QMenu * | GetMenu () |
virtual void | OnMenuEvent (QAction *e) |
Definition at line 46 of file overlay_base.hh.
virtual QMenu* GetMenu | ( | ) | [virtual] |
return overlay specific pulldown menu
Reimplemented in DrawOverlay, MaskOverlay, NullOverlay, and PointlistOverlayBase.
String GetName | ( | ) | const |
retrieve name
void InfoTextChanged | ( | const QString & | t | ) | [signal] |
virtual void OnDraw | ( | QPainter & | pnt, | |
DataViewerPanel * | dvp, | |||
bool | is_active | |||
) | [virtual] |
call when redrawing is necessary
params: the drawing context, the parent data viewer, as well as a flag to indicate wether this overlay is currently active
Reimplemented in MaskOverlay, NullOverlay, PointlistOverlay, and PointlistOverlayBase.
virtual bool OnKeyEvent | ( | QKeyEvent * | e, | |
DataViewerPanel * | dvp | |||
) | [virtual] |
virtual void OnMenuEvent | ( | QAction * | e | ) | [virtual] |
Reimplemented in DrawOverlay, NullOverlay, PointlistOverlay, and PointlistOverlayBase.
void OnMenuEventSlot | ( | QAction * | e | ) | [slot] |
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 in DrawOverlay, MaskOverlay, NullOverlay, and PointlistOverlay.
void SetName | ( | const String & | name | ) |
set name
void SettingsChanged | ( | ) | [signal] |