Statistics
| Branch: | Revision:

gazetk / Protocol / specification / gaze2d_data.proto @ cf5923cc

History | View | Annotate | Download (1.263 KB)

1
syntax = "proto2";
2
//
3
// Gaze2DData
4
//
5
// Covers all data that is relevant for gaze on 2D surfaces,
6
// such as displays.
7
//
8
package gazetk.protocol;
9

    
10
import "basic_types.proto";
11

    
12
//
13
// Represents a single measurement of a 2D gaze location.
14
//
15
message Gaze2DSample {
16
	required gazetk.protocol.types.Timestamp timestamp = 1; // Time of the measurement
17
	optional gazetk.protocol.types.Vec2i right_eye     = 2; // 2D gaze location of the right eye
18
	optional gazetk.protocol.types.Vec2i left_eye      = 3; // 2D gaze location of the left eye
19
	optional gazetk.protocol.types.Vec2i both_eyes     = 4; // 2D gaze location as an average or if the eye tracker does not provide explicit information
20
}
21

    
22
// 
23
// Represents a fixation at a specific 2D location.
24
//
25
message Gaze2DFixation {
26
	required gazetk.protocol.types.Timestamp start     = 1; // Start time of the measurement
27
	required gazetk.protocol.types.Timestamp end       = 2; // End time of the measurement
28
	optional gazetk.protocol.types.Vec2i right_eye     = 3; // 2D gaze location of the right eye
29
	optional gazetk.protocol.types.Vec2i left_eye      = 4; // 2D gaze location of the left eye
30
	optional gazetk.protocol.types.Vec2i both_eyes     = 5; // 2D gaze location as an average or if the eye tracker does not provide explicit information
31
}