gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
where_people_look.cpp
1 
13 #include "gaze/gaze.h"
14 #include "gtk/gtk.h"
15 
16 #include "where_people_look/config.h"
17 #include "where_people_look/experiment.h"
18 #include "where_people_look/gui_cb.h"
19 
20 
21 int main(int argc, char** argv) {
22  // Initialize program
23  gtk_init(&argc, &argv);
24 
25  GtkBuilder* builder = gtk_builder_new_from_resource("/wpl/where_people_look.ui"); // NOLINT
26  GtkWidget* window = GTK_WIDGET(gtk_builder_get_object(builder, "MainWindow"));
27  GtkWidget* image = GTK_WIDGET(gtk_builder_get_object(builder, "Stimulus"));
28 
29  wpl::Config* config = new wpl::Config();
30  wpl::Experiment* experiment = new wpl::Experiment(GTK_IMAGE(image), config);
31 
32  wpl::gui::set_css_style(window, "/wpl/where_people_look.css");
33  wpl::gui::register_and_connect_callbacks(builder, experiment);
34 
35  gtk_main();
36 
37  delete experiment;
38  delete config;
39 
40  return 0;
41 }
Holds all configuration options for the experiment.
Definition: config.h:15
Implements an experiment flow for Judd et al. (2009) .
Definition: experiment.h:45