casa
5.7.0-16
|
PixelCanvas Event Handler for managing keyboard and mouse button events. More...
#include <PCPositionEH.h>
Public Member Functions | |
PCPositionEH () | |
Default Constructor Required. More... | |
virtual void | operator() (const PCPositionEvent &eh) |
Default just prints the event to cout. More... | |
virtual | ~PCPositionEH () |
Destructor. More... | |
PixelCanvas Event Handler for managing keyboard and mouse button events.
PCPositionEH : PixelCanvas Position Event Handler
Designed for derivation, this class is the base class which is communicated to when an X button or keyboard event is sent to the PixelCanvas. The application programmer should derive from this class, add any data fields needed, and override operator () to respond properly to keyboard and mouse button events.
Wanted a standard method for event management. It was felt that a class might be more flexible than callback methods because a class can contain data and other functions as well.
see the WorldCanvas code see the Display test directory
Definition at line 74 of file PCPositionEH.h.
casa::PCPositionEH::PCPositionEH | ( | ) |
Default Constructor Required.
|
virtual |
Destructor.
|
virtual |
Default just prints the event to cout.
Reimplemented in casa::WorldCanvas, casa::QtDisplayPanel, casa::Annotations, and casa::PCToolPosEH.