#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 () |
Definition at line 36 of file pointlist_overlay.hh.
PointlistOverlay | ( | const String & | name = "Pointlist" |
) |
PointlistOverlay | ( | const PointList & | pl, | |
const String & | name = "Pointlist" | |||
) |
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