Simulate an eye-tracker recording. More...
#include <Neuro/SimulationViewerEyeSim.H>
Public Member Functions | |
Constructors and destructors | |
SimulationViewerEyeSim (OptionManager &mgr, const std::string &descrName="EyeSim Simulation Viewer", const std::string &tagName="SimulationViewerEyeSim") | |
Constructor. See ModelComponent.H. | |
virtual | ~SimulationViewerEyeSim () |
Destructor. | |
Protected Member Functions | |
virtual void | onSimEventWTAwinner (SimEventQueue &q, rutz::shared_ptr< SimEventWTAwinner > &e) |
Overload of callback defined in SimulationViewerStd. | |
virtual void | start1 () |
Get started. | |
virtual void | stop1 () |
get stopped | |
Protected Attributes | |
OModelParam< std::string > | itsEyeFname |
Name of a calibrated eye movement file. | |
OModelParam< SimTime > | itsEyePeriod |
Period at which eye movement samples should be read in. | |
OModelParam< int > | itsEyeTrash |
Number of initial eye movement samples before stimulus starts. |
Simulate an eye-tracker recording.
This simulation viewer has for main purpose to output a text file that is in the same format as what we would get from a human eye tracker device (.eye file). Thus it allows us to generate and save eye movement scanpaths that come from the model but are in the same format as human recordings. In turn, these scanpaths can then be compared to actual human scanpaths. SimulationViewerEyeSim derived from SimulationViewerStd and hence inherits all its behavior, simply adding provision for generating and saving the .eye scanpath files.
Definition at line 55 of file SimulationViewerEyeSim.H.
SimulationViewerEyeSim::SimulationViewerEyeSim | ( | OptionManager & | mgr, | |
const std::string & | descrName = "EyeSim Simulation Viewer" , |
|||
const std::string & | tagName = "SimulationViewerEyeSim" | |||
) |
Constructor. See ModelComponent.H.
Definition at line 50 of file SimulationViewerEyeSim.C.
SimulationViewerEyeSim::~SimulationViewerEyeSim | ( | ) | [virtual] |
Destructor.
Definition at line 61 of file SimulationViewerEyeSim.C.
void SimulationViewerEyeSim::onSimEventWTAwinner | ( | SimEventQueue & | q, | |
rutz::shared_ptr< SimEventWTAwinner > & | e | |||
) | [protected, virtual] |
Overload of callback defined in SimulationViewerStd.
Definition at line 102 of file SimulationViewerEyeSim.C.
References eye(), and Point2D< T >::i.
void SimulationViewerEyeSim::start1 | ( | ) | [protected, virtual] |
Get started.
Reimplemented from SimModule.
Definition at line 65 of file SimulationViewerEyeSim.C.
References OModelParam< T >::getVal(), itsEyeFname, and itsEyeTrash.
void SimulationViewerEyeSim::stop1 | ( | ) | [protected, virtual] |
get stopped
Reimplemented from ModelComponent.
Definition at line 83 of file SimulationViewerEyeSim.C.
References Point2D< T >::i, and Point2D< T >::isValid().
OModelParam<std::string> SimulationViewerEyeSim::itsEyeFname [protected] |
Name of a calibrated eye movement file.
Definition at line 77 of file SimulationViewerEyeSim.H.
Referenced by start1().
OModelParam<SimTime> SimulationViewerEyeSim::itsEyePeriod [protected] |
Period at which eye movement samples should be read in.
Definition at line 80 of file SimulationViewerEyeSim.H.
OModelParam<int> SimulationViewerEyeSim::itsEyeTrash [protected] |
Number of initial eye movement samples before stimulus starts.
Definition at line 83 of file SimulationViewerEyeSim.H.
Referenced by start1().