PointlistOverlay Class Reference

#include <pointlist_overlay.hh>

Inherits ost::img::gui::PointlistOverlayBase.

Public Member Functions

 PointlistOverlay (const String &name="Pointlist")
 PointlistOverlay (const PointList &pl, const String &name="Pointlist")
virtual void OnMenuEvent (QAction *e)
virtual void OnDraw (QPainter &pnt, DataViewerPanel *dvp, bool is_active)
virtual bool OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse)
void Add (const Point &pnt, double scale=1.0)
void Add (const PointList &pl, double scale=1.0)
void Remove (const Point &pnt)
void Clear ()

Detailed Description

Definition at line 36 of file pointlist_overlay.hh.


Constructor & Destructor Documentation

PointlistOverlay ( const String name = "Pointlist"  ) 
PointlistOverlay ( const PointList pl,
const String name = "Pointlist" 
)

Member Function Documentation

void Add ( const PointList pl,
double  scale = 1.0 
)
void Add ( const Point pnt,
double  scale = 1.0 
)
void Clear (  ) 
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 from PointlistOverlayBase.

virtual void OnMenuEvent ( QAction *  e  )  [virtual]

Reimplemented from PointlistOverlayBase.

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.

void Remove ( const Point pnt  ) 

remove all points on the given point


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 1 Mar 2018 for OpenStructure by  doxygen 1.6.1