DrawOverlay Class Reference

#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_

Detailed Description

Definition at line 39 of file draw_overlay.hh.


Constructor & Destructor Documentation

DrawOverlay ( ImageHandle  imagehandle  ) 

initialization requires name


Member Function Documentation

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.


Field Documentation

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1