gaze
0.1.0
Perform gaze tracking with common webcams.
|
Abstract base class for PipelineSteps. Must be inherited from. More...
#include "gaze/pipeline_step.h"
Public Member Functions | |
PipelineStep () | |
std::string | get_name () |
Inheriting from PipelineStep | |
To inherit from PipelineStep, i.e. create a new step, follow these steps:
| |
virtual | ~PipelineStep ()=default |
virtual void | process (util::Data &data)=0 |
Protected Attributes | |
int | number |
std::string | name |
Abstract base class for PipelineSteps. Must be inherited from.
Custom PipelineSteps must implement their own process(util::Data* data) method. They should only add data to fields which were not written before.
Definition at line 18 of file pipeline_step.h.
gaze::PipelineStep::PipelineStep | ( | ) |
|
virtualdefault |
Override this method if you need more destruction control.
std::string gaze::PipelineStep::get_name | ( | ) |
Returns the name of this step. If this is not overridden, names it Step #
where #
is a number starting at 0 and increasing with each step.
Definition at line 15 of file pipeline_step.cpp.
References name.
|
pure virtual |
This function must be overwritten by each PipelineStep. It should process the data object and write back its own results. While it is not forbidden to override values, this should be done with caution.
data | The data object to be updated. |
data
the modified data object. Implemented in gaze::pipeline::GazePointCalculation, gaze::pipeline::PupilLocalization, gaze::pipeline::HeadPoseEstimation, gaze::pipeline::SourceCapture, gaze::pipeline::GazeCapture, gaze::pipeline::FaceLandmarks, gaze::pipeline::EyeLike, and gaze::pipeline::FallbackStep.
|
protected |
The name of this PipelineStep. Should be unique if possible. By default "Step #" is assigned.
Definition at line 31 of file pipeline_step.h.
Referenced by gaze::pipeline::FallbackStep::FallbackStep(), get_name(), and gaze::pipeline::SourceCapture::SourceCapture().
|
protected |
The number of the pipeline step.
Definition at line 25 of file pipeline_step.h.
Referenced by gaze::pipeline::FallbackStep::FallbackStep(), and gaze::pipeline::SourceCapture::SourceCapture().