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::PCMotionEH Class Reference

PixelCanvas Event Handler for managing pointer motion events. More...

#include <PCMotionEH.h>

Inheritance diagram for casa::PCMotionEH:
casa::Annotations casa::PCToolMotEH casa::WorldCanvas

Public Member Functions

 PCMotionEH ()
 Default Constructor Required. More...
virtual void operator() (const PCMotionEvent &eh)
 Default just prints the event to cout. More...
virtual ~PCMotionEH ()
 Destructor. More...

Detailed Description

PixelCanvas Event Handler for managing pointer motion events.



PCMotionEH : PixelCanvas Motion Event Handler


Designed for derivation, this class is the base class which is communicated to when the pointer moves across the display window. The application programmer should derive from this class, add any data fields needed, and override operator () to handle mouse motion.


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 72 of file PCMotionEH.h.

Constructor & Destructor Documentation

casa::PCMotionEH::PCMotionEH ( )

Default Constructor Required.

virtual casa::PCMotionEH::~PCMotionEH ( )


Member Function Documentation

virtual void casa::PCMotionEH::operator() ( const PCMotionEvent eh)

Default just prints the event to cout.

Reimplemented in casa::WorldCanvas, casa::Annotations, and casa::PCToolMotEH.

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