Class CWindowObserver

Inheritance Relationships

Base Type

  • public mrpt::system::CObserver

Class Documentation

class CWindowObserver : public mrpt::system::CObserver

Monitor events in the visualization window.

Public Functions

CWindowObserver()
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 class was quarried.

Note

By default the codes are reset every time the method is invoked, unless reset_keypresses< > is set to False

void registerKeystroke(const std::string key_str, const std::string key_desc)

Make new keystrokes available in the help message box.

Classes with access to the CWindowObserver can use this method to add keystrokes according to their needs

Protected Functions

virtual void OnEvent(const mrpt::system::mrptEvent &e) override