MGF Server
2.1
Multigaze framework server
Main Page
Classes
Files
File List
All
Classes
Functions
ETI
etitypes.h
1
/*-----------------------------------------------------------------------------
2
* This file defines custom data type, used to store and process gaze data
3
*/
4
#pragma once
5
6
#include "..\winvnc\rfb.h"
7
#include <vector>
8
#include <string>
9
#include <ostream>
10
11
//Gaze Data Items' types
12
typedef
enum
_etiGazeDataElementType
13
{
14
GDT_UNDEFINED,
15
GDT_SAMPLE,
16
GDT_SINGLESAMPLE,
17
GDT_FIXATION,
18
GDT_BLINK,
19
GDT_EVENT
20
} etiGazeDataElementType;
21
22
//Gaze Data Items' types
23
typedef
enum
_etiLogRecordType
24
{
25
LRT_UNDEFINED,
26
LRT_GAZEDATA,
27
LRT_MESSAGE,
28
LRT_ADDCLIENT,
29
LRT_REMCLIENT,
30
LRT_POKECLIENT,
31
LRT_TRACKSTART,
32
LRT_SETNICK,
33
LRT_SETDESC,
34
LRT_OTHER
35
} etiLogRecordType;
36
37
38
/****************************************************************************/
39
/* Protocol messages ETI data types */
40
/****************************************************************************/
41
45
typedef
struct
_etiGazeSingleSample
46
{
47
CARD32 number;
//ordinal number
48
CARD32 time;
//time offset from the start of the record
49
CARD16 eye;
//event code
50
CARD32 x;
//x coordinate of the eye
51
CARD32 y;
//y coordinate of the eye
52
CARD32 pupil;
//pupil size
53
}
etiGazeSingleSample
;
54
55
#define sz_etiGazeSingleSample 22
56
60
typedef
struct
_etiGazeFixation
61
{
62
CARD32 number;
//ordinal number
63
CARD32 time;
//time offset from the start of the record
64
CARD32 duration;
//fixation duration
65
CARD16 eye;
//eye number
66
CARD32 x;
//x coordinate of the eye
67
CARD32 y;
//y coordinate of the eye
68
}
etiGazeFixation
;
69
70
#define sz_etiGazeFixation 22
71
75
typedef
struct
_etiGazeBlink
76
{
77
CARD32 number;
//ordinal number
78
CARD32 time;
//time offset from the start of the record
79
CARD32 duration;
//fixation duration
80
CARD16 eye;
//eye number
81
}
etiGazeBlink
;
82
83
#define sz_etiGazeBlink 8
84
85
struct
etiTimeStamp
86
{
87
short
Year;
//current year
88
int
Days;
//days past since January 1st
89
unsigned
long
Milliseconds;
//Milliseconds past since 00:00 for the current day
90
};
91
Generated on Sat Jun 9 2012 20:28:53 for MGF Server by
1.8.1