OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes
DrawOverlay Class Reference

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

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

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.


The documentation for this class was generated from the following file: