casa
5.7.0-16
|
Base class for handling WorldCanvas motion events. More...
#include <WCMotionEH.h>
Public Member Functions | |
WCMotionEH () | |
Default Constructor Required. More... | |
virtual void | operator() (const WCMotionEvent &ev)=0 |
default sends event to cout More... | |
virtual | ~WCMotionEH () |
Destructor. More... | |
Base class for handling WorldCanvas motion events.
WCMotionEH : WorldCanvas motion event-handler.
This is a base class intended to be derived from in applications. The user must write a derived class and override the operator() function. The operator() function is called whenever the pointer moves across the world canvas.
This base class does have a concrete implementation, namely to report to stdout events it receives. To effect this behaviour, create an instance this class and register it as an event-handler on a WorldCanvas.
Provide the user with an object-oriented approach to event handling and include world-coordinate position information.
see the test programs in Display/test.
Definition at line 70 of file WCMotionEH.h.
casa::WCMotionEH::WCMotionEH | ( | ) |
Default Constructor Required.
|
virtual |
Destructor.
|
pure virtual |
default sends event to cout
Implemented in casa::QtDisplayPanel, casa::WorldCanvasHolder, casa::Profile2dDD, casa::SlicePanelDisplay, casa::MultiWCTool, casa::DDDObject, casa::DDDEllipse, casa::DDDPolygon, casa::DDDRectangle, casa::WCToolMotEH, casa::SliceEH, and casa::viewer::RegionToolManager.