Revision 81eb8e16

View differences:

Hub/GazeTk-Hub/GazeTk-Hub.pro
1
#-------------------------------------------------
2
#
3
# Project created by QtCreator 2015-10-12T11:49:29
4
#
5
#-------------------------------------------------
6

  
7
QT       += core
8

  
9
QT       -= gui
10

  
11
TARGET = GazeTk-Hub
12
CONFIG   += console
13
CONFIG   -= app_bundle
14

  
15
TEMPLATE = app
16

  
17

  
18
SOURCES += main.cpp
Hub/GazeTk-Hub/GazeTk-Hub.pro.user
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE QtCreatorProject>
3
<!-- Written by QtCreator 3.4.2, 2015-10-12T14:24:53. -->
4
<qtcreator>
5
 <data>
6
  <variable>EnvironmentId</variable>
7
  <value type="QByteArray">{c5a52d89-1b21-4d87-90c8-0ebc783297d0}</value>
8
 </data>
9
 <data>
10
  <variable>ProjectExplorer.Project.ActiveTarget</variable>
11
  <value type="int">0</value>
12
 </data>
13
 <data>
14
  <variable>ProjectExplorer.Project.EditorSettings</variable>
15
  <valuemap type="QVariantMap">
16
   <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
17
   <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
18
   <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
19
   <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
20
    <value type="QString" key="language">Cpp</value>
21
    <valuemap type="QVariantMap" key="value">
22
     <value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
23
    </valuemap>
24
   </valuemap>
25
   <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
26
    <value type="QString" key="language">QmlJS</value>
27
    <valuemap type="QVariantMap" key="value">
28
     <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
29
    </valuemap>
30
   </valuemap>
31
   <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
32
   <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
33
   <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
34
   <value type="int" key="EditorConfiguration.IndentSize">4</value>
35
   <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
36
   <value type="int" key="EditorConfiguration.MarginColumn">80</value>
37
   <value type="bool" key="EditorConfiguration.MouseHiding">true</value>
38
   <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
39
   <value type="int" key="EditorConfiguration.PaddingMode">1</value>
40
   <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
41
   <value type="bool" key="EditorConfiguration.ShowMargin">false</value>
42
   <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
43
   <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
44
   <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
45
   <value type="int" key="EditorConfiguration.TabSize">8</value>
46
   <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
47
   <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
48
   <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
49
   <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
50
   <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
51
   <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
52
  </valuemap>
53
 </data>
54
 <data>
55
  <variable>ProjectExplorer.Project.PluginSettings</variable>
56
  <valuemap type="QVariantMap"/>
57
 </data>
58
 <data>
59
  <variable>ProjectExplorer.Project.Target.0</variable>
60
  <valuemap type="QVariantMap">
61
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.5.0 MSVC2013 64bit</value>
62
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.5.0 MSVC2013 64bit</value>
63
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.55.win64_msvc2013_64_kit</value>
64
   <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
65
   <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
66
   <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
67
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
68
    <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Entwicklung/GazeTK/gazetk/GazeTk-Hub/build-GazeTk-Hub-Desktop_Qt_5_5_0_MSVC2013_64bit-Debug</value>
69
    <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
70
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
71
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
72
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
73
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
74
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
75
      <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
76
      <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
77
      <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
78
      <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
79
      <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
80
      <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
81
     </valuemap>
82
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
83
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
84
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
85
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
86
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
87
      <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/>
88
      <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
89
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
90
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
91
     </valuemap>
92
     <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
93
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
94
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
96
    </valuemap>
97
    <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
98
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
99
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
100
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
101
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
103
      <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/>
104
      <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
105
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
106
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
107
     </valuemap>
108
     <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
109
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
110
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
111
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
112
    </valuemap>
113
    <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
114
    <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
115
    <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
116
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
117
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
118
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
119
    <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
120
    <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
121
   </valuemap>
122
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
123
    <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Entwicklung/GazeTK/gazetk/GazeTk-Hub/build-GazeTk-Hub-Desktop_Qt_5_5_0_MSVC2013_64bit-Release</value>
124
    <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
125
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
126
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
127
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
128
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
130
      <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
131
      <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
132
      <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
133
      <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
134
      <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
135
      <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
136
     </valuemap>
137
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
138
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
139
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
140
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
141
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
142
      <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/>
143
      <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
144
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
145
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
146
     </valuemap>
147
     <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
148
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
149
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
150
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
151
    </valuemap>
152
    <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
153
     <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
154
      <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
155
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
156
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
157
      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
158
      <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/>
159
      <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
160
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
161
      <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
162
     </valuemap>
163
     <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
164
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Bereinigen</value>
165
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
166
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
167
    </valuemap>
168
    <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
169
    <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
170
    <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
171
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
172
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
173
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
174
    <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
175
    <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
176
   </valuemap>
177
   <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
178
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
179
    <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
180
     <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
181
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deployment</value>
182
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
183
     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
184
    </valuemap>
185
    <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
186
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Lokales Deployment</value>
187
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
188
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
189
   </valuemap>
190
   <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
191
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
192
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
193
    <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
194
    <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
195
    <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
196
    <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
197
    <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
198
    <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
199
    <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
200
    <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
201
    <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
202
    <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
203
    <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
204
    <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
205
    <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
206
    <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
207
    <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
208
    <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
209
    <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
210
    <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
211
     <value type="int">0</value>
212
     <value type="int">1</value>
213
     <value type="int">2</value>
214
     <value type="int">3</value>
215
     <value type="int">4</value>
216
     <value type="int">5</value>
217
     <value type="int">6</value>
218
     <value type="int">7</value>
219
     <value type="int">8</value>
220
     <value type="int">9</value>
221
     <value type="int">10</value>
222
     <value type="int">11</value>
223
     <value type="int">12</value>
224
     <value type="int">13</value>
225
     <value type="int">14</value>
226
    </valuelist>
227
    <value type="int" key="PE.EnvironmentAspect.Base">2</value>
228
    <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
229
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">GazeTk-Hub</value>
230
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
231
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Entwicklung/GazeTK/gazetk/GazeTk-Hub/GazeTk-Hub/GazeTk-Hub.pro</value>
232
    <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
233
    <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">GazeTk-Hub.pro</value>
234
    <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
235
    <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value>
236
    <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
237
    <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
238
    <value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
239
    <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
240
    <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
241
    <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
242
    <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
243
   </valuemap>
244
   <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
245
  </valuemap>
246
 </data>
247
 <data>
248
  <variable>ProjectExplorer.Project.TargetCount</variable>
249
  <value type="int">1</value>
250
 </data>
251
 <data>
252
  <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
253
  <value type="int">18</value>
254
 </data>
255
 <data>
256
  <variable>Version</variable>
257
  <value type="int">18</value>
258
 </data>
259
</qtcreator>
Hub/GazeTk-Hub/main.cpp
1
#include <QCoreApplication>
2

  
3
int main(int argc, char *argv[])
4
{
5
    QCoreApplication a(argc, argv);
6

  
7
    return a.exec();
8
}
Protocol/CMakeLists.txt
1
cmake_minimum_required (VERSION 3.0)
2

  
3
project (GazeTkProtocol)
4

  
5
# Versioning
6
set (GazeTkProtocol_VERSION_MAJOR 0)
7
set (GazeTkProtocol_VERSION_MINOR 1)
8

  
9
# configure the header of the library
10
configure_file (
11
  "${PROJECT_SOURCE_DIR}/src_cpp/Protocol.h.in"
12
  "${PROJECT_BINARY_DIR}/Protocol.h"
13
  )
14

  
15
# add the binary tree to the search path for include files
16
# so that the generated files are found
17
include_directories("${PROJECT_BINARY_DIR}")
18

  
19
# add the Google protobuf parts
20
find_package(Protobuf REQUIRED)
21
include_directories(${PROTOBUF_INCLUDE_DIRS})
22
include_directories(${CMAKE_CURRENT_BINARY_DIR})
23
set (PROTOBUF_IMPORT_DIRS specification)
24
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS specification/basic_types.proto specification/eye_data.proto specification/gaze2d_data.proto specification/gaze3d_data.proto)
25

  
26
# add the library
27
add_library(GazeTkProtocol STATIC src_cpp/protocol.cc ${PROTO_SRCS} ${PROTO_HDRS})
28
target_link_libraries(GazeTkProtocol ${PROTOBUF_LIBRARIES})
Protocol/readme.md
1
Requirements
2
- CMake Version 3.0 or higher
3
- Google Protocol Buffers
4

  
5
Installation on Windows using Visual Studio 2013
6
- create a build directory (mkdir build)
7
- enter the build directory (cd build)
8
- call cmake with appropriate generator on source directory (cmake -G "Visual Studio 12" ..)
9
- open solution and build project to generate all the source files from the protos.
10

  
Protocol/specification/basic_types.proto
1
syntax = "proto2";
2

  
3
//
4
// Basic Types
5
//
6
// This specification adds some basic types, such as vectors.
7
// 
8
package gazetk.protocol.types;
9

  
10
//
11
// Representation of the timestamps used in the gazetk protocol.
12
//
13
message Timestamp {
14
	required uint64 us = 1;// microseconds (= 1/1000 ms) since Thu Jan 01 1970 01:00:00 GMT+0100 Unix Epoche Time
15
}
16

  
17
message Vec2i {
18
	required sint32 x = 1; // first entry in the vector
19
	required sint32 y = 2; // second entry in the vector
20
}
21

  
22
message Vec2f {
23
	required float x = 1; // first entry in the vector
24
	required float y = 2; // second entry in the vector
25
}
26

  
27
message Vec2d {
28
	required double x = 1; // first entry in the vector
29
	required double y = 2; // second entry in the vector
30
}
31

  
32
message Vec3i {
33
	required sint32 x = 1; // first entry in the vector
34
	required sint32 y = 2; // second entry in the vector
35
	required sint32 z = 3; // third entry in the vector
36
}
37

  
38
message Vec3f {
39
	required float x = 1; // first entry in the vector
40
	required float y = 2; // second entry in the vector
41
	required float z = 3; // third entry in the vector
42
}
43

  
44
message Vec3d {
45
	required double x = 1; // first entry in the vector
46
	required double y = 2; // second entry in the vector
47
	required double z = 3; // third entry in the vector
48
}
Protocol/specification/eye_data.proto
1
syntax = "proto2";
2
//
3
// EyeData
4
//
5
// Covers all data that is relevant to describe eye related data.
6
//
7
package gazetk.protocol;
8

  
9
import "basic_types.proto";
10

  
11
//
12
// Represents a single measurement of eye related data
13
//
14
message EyeSample {
15
	required gazetk.protocol.types.Timestamp timestamp = 1; // Time of the measurement
16
	optional gazetk.protocol.EyeDescription right_eye  = 2; // Description of the right eye
17
	optional gazetk.protocol.EyeDescription left_eye   = 3; // Description of the right eye
18
	optional gazetk.protocol.EyeDescription both_eyes  = 4; // Description of both eyes (average) or if the eye tracker does not specify an eye
19
}
20

  
21
message EyeDescription {
22
	optional gazetk.protocol.types.Vec2f pupil_size    = 1; // Size of the pupil between 0 and 1
23
}
24

  
Protocol/specification/gaze2d_data.proto
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
}
Protocol/specification/gaze3d_data.proto
1
message GazeOnSurfaceSample {
2

  
3
	
4
}

Also available in: Unified diff