10 #ifndef CWINDOWOBSERVER_H 11 #define CWINDOWOBSERVER_H 43 std::map<std::string, bool>* codes_to_pressed,
44 bool reset_keypresses =
true);
void OnEvent(const mrpt::utils::mrptEvent &e)
This virtual function will be called upon receive of any event after starting listening at any CObser...
The basic event type for the observer-observable pattern in MRPT.
void returnEventsStruct(std::map< std::string, bool > *codes_to_pressed, bool reset_keypresses=true)
Return a map of key code to a boolean indicating whether it was pressed since the previous time the c...
void registerKeystroke(const std::string key_str, const std::string key_desc)
Make new keystrokes available in the help message box.
This class implements a high-performance stopwatch.
mrpt::utils::CTicTac m_tim_show_start
GLsizei const GLchar ** string
mrpt::utils::CTicTac m_tim_show_end
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Monitor events in the visualization window.
std::map< std::string, bool > m_key_codes_to_pressed
Map from registered char_code (std::string to support <C-c>) to boolean true/false indicating whether...
Inherit from this class to get notified about events from any CObservable object after subscribing to...