casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::WCPositionEH Class Reference

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

List of all members.

Public Member Functions

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

Detailed Description

Base class for handling WorldCanvas position events.

Prerequisite

Etymology

WCPositionEH : WorldCanvas Position Event-Handler

Synopsis

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.

Motivation

Provide the user with an object-oriented approach to event handling and include world-coordinate position information.

Example

see the test programs in Display/test.

Definition at line 75 of file WCPositionEH.h.


Constructor & Destructor Documentation

Default Constructor Required.

virtual casa::WCPositionEH::~WCPositionEH ( ) [virtual]

Destructor.


Member Function Documentation

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

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