WCMotionEH.h
Classes
- WCMotionEH -- Base class for handling WorldCanvas motion events. (full description)
Interface
- Public Members
- WCMotionEH()
- virtual void operator ()(const WCMotionEvent & ev)
- virtual ~WCMotionEH()
Prerequisite
- WCMotionEvent
- Understanding of Display library event-handling methodology
Etymology
WCMotionEH : WorldCanvas motion event-handler.
Synopsis
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.
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.
Member Description
Default Constructor Required
default sends event to cout
Destructor