
Interface to eye-tracker used in Doug Munoz' lab. More...
#include <Psycho/EyeTrackerUDP.H>
Public Member Functions | |
| EyeTrackerUDP (OptionManager &mgr, const std::string &descrName="Eye Tracker UDP", const std::string &tagName="EyeTrackerUDP") | |
| Constructor. | |
| virtual | ~EyeTrackerUDP () |
| Destructor. | |
| void | startTracking () |
| Start the tracker. | |
| void | stopTracking () |
| Stop the tracker. | |
| bool | isFixating () |
| Is the subject fixating? | |
| bool | isSaccade () |
| Did the subject initiate a saccade? | |
| void | clearEyeStatus () |
| clear all our eye position (isFixating and isSaccade) states? | |
| Point2D< int > | getEyePos () const |
| Get current eye position. | |
| Point2D< int > | getFixationPos () const |
| Get current fixation position. | |
| CalibrationTransform::Data | getCalibrationSet (nub::soft_ref< PsychoDisplay > d) const |
| Get the calibration set. | |
Protected Types | |
| enum | { FIXCODE = 249, SACCODE = 250 } |
codes for eye states More... | |
Protected Member Functions | |
| void | start1 () |
| get started | |
| void | start2 () |
| get started after subcomponents get started | |
| void | stop1 () |
| get things stopped | |
Interface to eye-tracker used in Doug Munoz' lab.
This is a monkey scleral search coil type, with trigger over ethernet (UDP packets) from the REX experimental control system.
Definition at line 49 of file EyeTrackerUDP.H.
anonymous enum [protected] |
codes for eye states
Definition at line 89 of file EyeTrackerUDP.H.
| EyeTrackerUDP::EyeTrackerUDP | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Eye Tracker UDP", |
|||
| const std::string & | tagName = "EyeTrackerUDP" | |||
| ) |
Constructor.
Definition at line 51 of file EyeTrackerUDP.C.
| EyeTrackerUDP::~EyeTrackerUDP | ( | ) | [virtual] |
Destructor.
Definition at line 69 of file EyeTrackerUDP.C.
| void EyeTrackerUDP::clearEyeStatus | ( | ) | [virtual] |
clear all our eye position (isFixating and isSaccade) states?
Reimplemented from EyeTracker.
Definition at line 242 of file EyeTrackerUDP.C.
Referenced by start2().
| CalibrationTransform::Data EyeTrackerUDP::getCalibrationSet | ( | nub::soft_ref< PsychoDisplay > | d | ) | const [virtual] |
Get the calibration set.
Not implemented here
Implements EyeTracker.
Definition at line 313 of file EyeTrackerUDP.C.
| Point2D< int > EyeTrackerUDP::getEyePos | ( | ) | const [virtual] |
Get current eye position.
Not supported by this tracker.
Implements EyeTracker.
Definition at line 298 of file EyeTrackerUDP.C.
| Point2D< int > EyeTrackerUDP::getFixationPos | ( | ) | const [virtual] |
Get current fixation position.
Not supported by this tracker.
Implements EyeTracker.
Definition at line 305 of file EyeTrackerUDP.C.
| bool EyeTrackerUDP::isFixating | ( | ) | [virtual] |
| bool EyeTrackerUDP::isSaccade | ( | ) | [virtual] |
Did the subject initiate a saccade?
Implements EyeTracker.
Definition at line 218 of file EyeTrackerUDP.C.
| void EyeTrackerUDP::start1 | ( | ) | [protected, virtual] |
get started
Reimplemented from EyeTracker.
Definition at line 76 of file EyeTrackerUDP.C.
References sformat().
| void EyeTrackerUDP::start2 | ( | ) | [protected, virtual] |
get started after subcomponents get started
Reimplemented from ModelComponent.
Definition at line 141 of file EyeTrackerUDP.C.
References clearEyeStatus(), and Timer::getSecs().
| void EyeTrackerUDP::startTracking | ( | ) | [virtual] |
Start the tracker.
Tracking is started by sending a packet to REX.
Implements EyeTracker.
Definition at line 182 of file EyeTrackerUDP.C.
| void EyeTrackerUDP::stop1 | ( | ) | [protected, virtual] |
get things stopped
Reimplemented from ModelComponent.
Definition at line 168 of file EyeTrackerUDP.C.
| void EyeTrackerUDP::stopTracking | ( | ) | [virtual] |
Stop the tracker.
Tracking is stopped by sending a different packet.
Implements EyeTracker.
Definition at line 188 of file EyeTrackerUDP.C.
1.6.3