gaze
0.1.0
Perform gaze tracking with common webcams.
|
Implements VisualizeableBase for several widget types. More...
#include "gaze/gui/visualizeable.h"
Public Member Functions | |
std::shared_ptr< dlib::drawable > | init (dlib::drawable_window &parent, int width, int height, std::string text="No visualization.") final |
void | remove_widget () override |
Public Member Functions inherited from gaze::gui::VisualizeableBase | |
virtual | ~VisualizeableBase ()=default |
virtual void | visualize (util::Data &data)=0 |
Protected Attributes | |
std::shared_ptr< widget_type > | widget |
Implements VisualizeableBase for several widget types.
This is a generic implementation for visualizeables using different widget types.
widget_type | a dlib widget type. |
Definition at line 223 of file visualizeable.h.
|
inlinefinalvirtual |
Initializes the widget by creating a widget and adjusting it.
parent | The parent window. |
width | The widget width |
height | The widget height |
text | The widget text |
Implements gaze::gui::VisualizeableBase.
Definition at line 233 of file visualizeable.h.
References gaze::gui::Visualizeable< widget_type >::widget.
|
inlineoverridevirtual |
Disables and removes the widget.
Reimplemented from gaze::gui::VisualizeableBase.
Definition at line 245 of file visualizeable.h.
|
protected |
The widget to write to.
Definition at line 228 of file visualizeable.h.
Referenced by gaze::gui::Visualizeable< widget_type >::init(), gaze::pipeline::FallbackStep::visualize(), gaze::pipeline::FaceLandmarks::visualize(), gaze::pipeline::SourceCapture::visualize(), and gaze::pipeline::HeadPoseEstimation::visualize().