casa
$Rev:20696$
|
PixelCanvas Event Handler for managing keyboard and mouse button events
#include <PCPositionEH.h>
Public Member Functions | |
PCPositionEH () | |
Default Constructor Required. | |
virtual void | operator() (const PCPositionEvent &eh) |
Default just prints the event to cout. | |
virtual | ~PCPositionEH () |
Destructor. |
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.
Default Constructor Required.
virtual casa::PCPositionEH::~PCPositionEH | ( | ) | [virtual] |
Destructor.
virtual void casa::PCPositionEH::operator() | ( | const PCPositionEvent & | eh | ) | [virtual] |
Default just prints the event to cout.
Reimplemented in casa::WorldCanvas, casa::QtDisplayPanel, casa::Annotations, and casa::PCToolPosEH.