public class GazeEntrySample extends GazeEntryBase implements ICoordinates
IGDEntry
,
IGDTrackableEntry
,
JGDFixation
,
JGDBlink
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.Point |
mCoords
Coordinates of the gaze.
|
(package private) int |
mEvent
Event id, assigned by the tracker
|
(package private) EEye |
mEye
Eye which generated sample event
|
(package private) int |
mPupilSize
Size of the pupil at the moment of catching this gaze data by tracker
|
static int |
MSG_SIZE |
mOrdinal, mTimestamp
Constructor and Description |
---|
GazeEntrySample(int ordinal,
int time,
int event,
int eye,
int pupil,
java.awt.Point coords)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
Coords()
Get coordinates of the gaze data entry
|
int |
MessageLength()
Get length of byte representation of the gaze data entry
|
byte[] |
MessageStruct()
Convert gaze data entry into a byte sequence that can be transfered to
the server
|
java.lang.String |
ToLogString()
Log file string representation
|
EEntryType |
Type()
Get type of the entry
|
Equals
public static final int MSG_SIZE
EEye mEye
int mPupilSize
int mEvent
java.awt.Point mCoords
public GazeEntrySample(int ordinal, int time, int event, int eye, int pupil, java.awt.Point coords)
ordinal
- Ordinal number of sampletime
- Time stamp of sampleevent
- Event id of the sampleeye
- Eye, generated sample eventpupil
- Pupil sizecoords
- Coordinates of the gazepublic int MessageLength()
GazeEntryBase
MessageLength
in class GazeEntryBase
public byte[] MessageStruct()
GazeEntryBase
MessageStruct
in class GazeEntryBase
public EEntryType Type()
GazeEntryBase
Type
in class GazeEntryBase
EGDEntryType
value. Representation type of
the entrypublic java.awt.Point Coords()
ICoordinates
Coords
in interface ICoordinates
public java.lang.String ToLogString()
GazeEntryBase
ToLogString
in class GazeEntryBase