-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixation.h
51 lines (43 loc) · 2.34 KB
/
fixation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/********************************************************************************************************************************************************
* @file fixation.h
*
* @Copyright (C) 2022 i-trace.org
*
* This file is part of iTrace Infrastructure http://www.i-trace.org/.
* iTrace Infrastructure is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* iTrace Infrastructure is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with iTrace Infrastructure. If not, see <https://www.gnu.org/licenses/>.
********************************************************************************************************************************************************/
#ifndef FIXATION_H
#define FIXATION_H
#include <QString>
#include <vector>
#include <map>
#include <math.h>
#include <gaze.h>
#include <iostream>
/*//////////////////////////////////////
gaze_vec - vector of gazes that go with this fixation
x, y - ? x and y coordinates of the fixation on the screen ?
left_pupil_diameter, right_pupil_diameter - average value of the user's pupil diameters. In millimeters
source_file_line, source_file_column - line and column position of the token of the fixation
duration - time in milliseconds of how long the fixation lasted
fixation_event_time - unix time of when the fixation occurred
target - file that the fixation occurred in
syntactic_category - category of syntax the token belongs to
token - what the fixation was looking at
xpath - the XML xpath to get the token
//////////////////////////////////////*/
class Fixation {
public:
Fixation();
void calculateDatabaseFields();
void print();
// This could maybe be moved to a set if we want to ignore duplicates
std::vector<Gaze> gaze_vec;
double x, y, left_pupil_diameter = 0, right_pupil_diameter = 0;
int source_file_line, source_file_col, duration = 0;
long long fixation_event_time = 0;
QString target = "", syntactic_category = "", token = "", xpath = "";
};
#endif // FIXATION_H