casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::WCPositionEH Class Referenceabstract

Base class for handling WorldCanvas position events. More...

#include <WCPositionEH.h>

Inheritance diagram for casa::WCPositionEH:
casa::AniPosEH casa::DDDObject casa::MultiWCTool casa::Profile2dDD casa::SliceEH casa::viewer::RegionToolManager casa::WCToolPosEH casa::WorldCanvasHolder

Public Member Functions

 WCPositionEH ()
 Default Constructor Required. More...
virtual void operator() (const WCPositionEvent &ev)=0
 Default just prints the event to cout. More...
virtual ~WCPositionEH ()
 Destructor. More...

Detailed Description

Base class for handling WorldCanvas position events.



WCPositionEH : WorldCanvas Position Event-Handler


WCPositionEH is a base class. Its operator() function is called by mechanisms within the Display Library when a keyboard key or mouse button is pressed while within the area of the world canvas.

Users must derive from this class and override the op () function to catch key and button presses. Positions in world, linear, and pixel coordinates are returned.

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 75 of file WCPositionEH.h.

Constructor & Destructor Documentation

casa::WCPositionEH::WCPositionEH ( )

Default Constructor Required.

virtual casa::WCPositionEH::~WCPositionEH ( )


Member Function Documentation

virtual void casa::WCPositionEH::operator() ( const WCPositionEvent ev)
pure virtual

The documentation for this class was generated from the following file: