34 namespace visualization {
68 int key, std::function<
bool(
Visualizer *,
int,
int)> callback);
80 std::map<int, std::function<bool(Visualizer *, int, int)>>
VisualizerWithKeyCallback()
Default Constructor.
Definition: VisualizerWithKeyCallback.cpp:33
void PrintVisualizerHelp() override
Definition: VisualizerWithKeyCallback.cpp:37
std::string PrintKeyToString(int key)
Definition: VisualizerWithKeyCallback.cpp:85
void RegisterKeyCallback(int key, std::function< bool(Visualizer *)> callback)
Definition: VisualizerWithKeyCallback.cpp:50
void KeyPressCallback(GLFWwindow *window, int key, int scancode, int action, int mods) override
Definition: VisualizerWithKeyCallback.cpp:60
std::pair< int, std::function< bool(Visualizer *)> > KeyCallbackPair
Definition: VisualizerWithKeyCallback.h:41
Visualizer with custom key callack capabilities.
Definition: VisualizerWithKeyCallback.h:39
std::map< int, std::function< bool(Visualizer *, int, int)> > key_action_to_callback_
Definition: VisualizerWithKeyCallback.h:81
std::map< int, std::function< bool(Visualizer *)> > key_to_callback_
Definition: VisualizerWithKeyCallback.h:79
VisualizerWithKeyCallback & operator=(const VisualizerWithKeyCallback &)=delete
~VisualizerWithKeyCallback() override
Definition: VisualizerWithKeyCallback.cpp:35
Definition: PinholeCameraIntrinsic.cpp:35
The main Visualizer class.
Definition: Visualizer.h:61
void RegisterKeyActionCallback(int key, std::function< bool(Visualizer *, int, int)> callback)
Definition: VisualizerWithKeyCallback.cpp:55