gaze
0.1.0
Perform gaze tracking with common webcams.
|
A window to inspect computation results. More...
#include "gaze/gui/debug_window.h"
Public Member Functions | |
void | process_data (int idx=-1) |
DebugWindow (Pipeline *pipeline) | |
void | on_user_event (void *event_data, int event_type) override |
A window to inspect computation results.
Definition at line 22 of file debug_window.h.
|
explicit |
Creates a DebugWindow.
pipeline | The pipeline to inspect. |
Definition at line 22 of file debug_window.cpp.
References gaze::gui::EventManager::instance(), process_data(), std::vector< _Tp, _Alloc >::push_back(), and gaze::gui::EventManager::subscribe().
|
override |
Checks the event type (
event_data | data passed along with the event. |
event_type | the event type ( |
Definition at line 140 of file debug_window.cpp.
References gaze::Pipeline::get_data(), and process_data().
void gaze::gui::DebugWindow::process_data | ( | int | idx = -1 | ) |
Processes the data to be visualized.
Calls the visualize function of the PipelineStep of the active tab.
idx | (Optional): If this is a value other than -1, the tab with this index is updated instead of the current tab. |
Definition at line 120 of file debug_window.cpp.
References gaze::util::Data::execution_times, and std::basic_ostringstream< _CharT, _Traits, _Alloc >::str().
Referenced by DebugWindow(), and on_user_event().