PCMotionEH.h

Classes

PCMotionEH -- PixelCanvas Event Handler for managing pointer motion events (full description)

class PCMotionEH

Interface

Public Members
PCMotionEH()
virtual void operator ()(const PCMotionEvent & eh)
virtual ~PCMotionEH()

Description

Prerequisite

Etymology

PCMotionEH : PixelCanvas Motion Event Handler

Synopsis

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.

Motivation

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.

Example

see the WorldCanvas code see the Display test directory

Member Description

PCMotionEH()

Default Constructor Required

virtual void operator ()(const PCMotionEvent & eh)

Default just prints the event to cout

virtual ~PCMotionEH()

Destructor