MRPT
2.0.1
|
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:
Definition at line 31 of file mrptEvent.h.
#include <mrpt/system/mrptEvent.h>
Public Member Functions | |
mrptEvent () | |
Default ctor. More... | |
template<class EVENTTYPE > | |
bool | isOfType () const |
template<class EVENTTYPE > | |
const EVENTTYPE * | getAs () const |
template<class EVENTTYPE > | |
EVENTTYPE * | getAsNonConst () const |
Public Attributes | |
mrpt::Clock::time_point | timestamp |
Protected Member Functions | |
virtual void | do_nothing () |
Just to allow this class to be polymorphic. More... | |
|
inline |
Default ctor.
Definition at line 39 of file mrptEvent.h.
|
inlineprotectedvirtual |
Just to allow this class to be polymorphic.
Reimplemented in mrpt::opengl::mrptEventGLPostRender, mrpt::opengl::mrptEventGLPreRender, mrpt::gui::mrptEvent3DWindowGrabImageFile, mrpt::gui::mrptEventWindowClosed, mrpt::gui::mrptEventMouseMove, mrpt::gui::mrptEventMouseDown, mrpt::gui::mrptEventWindowResize, mrpt::gui::mrptEventWindowChar, mrpt::system::mrptEventOnDestroy, mrpt::maps::mrptEventMetricMapInsert, and mrpt::maps::mrptEventMetricMapClear.
Definition at line 35 of file mrptEvent.h.
|
inline |
Definition at line 47 of file mrptEvent.h.
|
inline |
Definition at line 53 of file mrptEvent.h.
|
inline |
Definition at line 41 of file mrptEvent.h.
Referenced by mrpt::graphslam::CWindowObserver::OnEvent(), and mrpt::slam::COccupancyGridMapFeatureExtractor::OnEvent().
mrpt::Clock::time_point mrpt::system::mrptEvent::timestamp |
Definition at line 58 of file mrptEvent.h.
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |