comparison testApp.h @ 25:f42a00e3f22d

Logs condensed slightly. Questionnaire button enable. double precision location!!!
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 01 Feb 2013 17:39:19 +0000
parents a4908ad8c78e
children 2e1fdac115af
comparison
equal deleted inserted replaced
24:a4908ad8c78e 25:f42a00e3f22d
20 20
21 #import "QuestionnaireViewController.h" 21 #import "QuestionnaireViewController.h"
22 #import "BottomTabViewController.h" 22 #import "BottomTabViewController.h"
23 #import "IntroViewController.h" 23 #import "IntroViewController.h"
24 #import "TopButtonViewController.h" 24 #import "TopButtonViewController.h"
25 #import "SliderViewController.h"
26 #import "usernameAlertViewController.h"
25 27
26 #define HOST "169.254.1.1" 28 #define HOST "169.254.1.1"
27 #define PORT 12345 29 #define PORT 12345
28 30
29 typedef enum {SLIDERS,ZOOMER,BOTH,INTRO,QUESTIONNAIRE}interfaceType; 31 typedef enum {SLIDERS,ZOOMER,BOTH,INTRO,QUESTIONNAIRE}interfaceType;
32 34
33 35
34 public: 36 public:
35 37
36 interfaceType whichInterfaceShowing; 38 interfaceType whichInterfaceShowing;
37 bool consentGiven;
38 BottomTabViewController *bottomTabViewController; 39 BottomTabViewController *bottomTabViewController;
40 UsernameAlertViewController *usernameAlertViewController;
39 int prevTouchX; 41 int prevTouchX;
40 int prevTouchY; 42 int prevTouchY;
41 double prevDist; 43 double prevDist;
42 bool paused; 44 bool paused;
43 // not many so dont bother with vectors/arrays? 45 // not many so dont bother with vectors/arrays?
64 int numActiveTouches; 66 int numActiveTouches;
65 67
66 QuestionnaireViewController * questionnaireViewController; 68 QuestionnaireViewController * questionnaireViewController;
67 IntroViewController * introViewController; 69 IntroViewController * introViewController;
68 TopButtonViewController * topButtonViewController; 70 TopButtonViewController * topButtonViewController;
69 71 SliderViewController * sliderViewController;
70 // 72 //
71 73
72 void setup(); 74 void setup();
73 void update(); 75 void update();
74 void draw(); 76 void draw();
116 void setupSliderGui(); 118 void setupSliderGui();
117 ofxUICanvas *sliderGUI; 119 ofxUICanvas *sliderGUI;
118 120
119 void sliderMoved(int which, float value); 121 void sliderMoved(int which, float value);
120 void setAllGUISliders(vector<int> vals); 122 void setAllGUISliders(vector<int> vals);
123 void randomise();
121 124
122 // zoom gui - the swap view button and save preset button 125 // zoom gui - the swap view button and save preset button
123 void zoomGUIEvent(ofxUIEventArgs &e); 126 void zoomGUIEvent(ofxUIEventArgs &e);
124 void setupZoomGui(); 127 void setupZoomGui();
125 128