class mrpt::system::mrptEvent
Overview
The basic event type for the observer-observable pattern in MRPT.
You can sub-class this base class to create custom event types, then tell between them in runtime with isOfType<T>(), for example:
if (e.isOfType<mrptEventOnDestroy>()) { const mrptEventOnDestroy* ev = e.getAs<mrptEventOnDestroy>(); ev-> ... }
See also:
#include <mrpt/system/mrptEvent.h> class mrptEvent { public: // construction mrptEvent(); }; // direct descendants class mrptEvent3DWindowGrabImageFile; class mrptEventMouseDown; class mrptEventMouseMove; class mrptEventWindowChar; class mrptEventWindowClosed; class mrptEventWindowResize; class mrptEventMetricMapClear; class mrptEventMetricMapInsert; class mrptEventGLPostRender; class mrptEventGLPreRender; class mrptEventOnDestroy;
Construction
mrptEvent()
Default ctor.