PCRefreshEH.h
Classes
- PCRefreshEH -- WorldCanvas Event Handler for managing events (full description)
Interface
- Public Members
- PCRefreshEH()
- virtual void operator ()(const PCRefreshEvent & eh)
- virtual ~PCRefreshEH()
Etymology
WCMotionEH : WorldCanvas Motion Event Handler
Synopsis
Designed for derivation, this class is the base class which
is communicated to when the it is necessary to refresh the
display. The application programmer should derive
from this class, add any data fields needed, and override
operator () to redraw the screen properly.
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 class
code.
- see the Display test directory
To Do
Member Description
Default Constructor Required
Default just prints the event to cout
Destructor