Mercurial > hg > soniczoomios
comparison eventLogger.h @ 44:a1e75b94c505
Snap to eval points. Double tap to go to preset (doesn't quite work yet). Coloured locks. Changed Question 2. Fixed some leaks.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Mon, 22 Apr 2013 18:32:34 +0100 |
parents | b91a1859829a |
children | 0d3a993405e4 |
comparison
equal
deleted
inserted
replaced
43:b91a1859829a | 44:a1e75b94c505 |
---|---|
61 HELP_PRESSED, // 19 | 61 HELP_PRESSED, // 19 |
62 QUESTIONNAIRE_COMPLETED, // 20 | 62 QUESTIONNAIRE_COMPLETED, // 20 |
63 EVALUATION_POINT, // 21 | 63 EVALUATION_POINT, // 21 |
64 EMPTY_EVENT, // 22 | 64 EMPTY_EVENT, // 22 |
65 SMOOTHING_ON, // 23 | 65 SMOOTHING_ON, // 23 |
66 SMOOTHING_OFF}; // 24 | 66 SMOOTHING_OFF, // 24 |
67 SNAPPED_TO_EVALPT, // 25 | |
68 PRESET_DOUBLE_TAPPED}; | |
67 | 69 |
68 //--------------------------------------------------------------------------- | 70 //--------------------------------------------------------------------------- |
69 | 71 |
70 class lEvent{ | 72 class lEvent{ |
71 public: | 73 public: |
173 | 175 |
174 void printAll(); | 176 void printAll(); |
175 void saveSessionToFile(); | 177 void saveSessionToFile(); |
176 void drawTrail(const TwoVector min, const TwoVector max); | 178 void drawTrail(const TwoVector min, const TwoVector max); |
177 vector<lEvent> getDrawableEventsInRange(const TwoVector min, const TwoVector max); | 179 vector<lEvent> getDrawableEventsInRange(const TwoVector min, const TwoVector max); |
180 vector<lEvent *> getEvaluationPointsInRange(const TwoVector min, const TwoVector max); | |
178 vector<TwoVector> getRecentPath(int numEvents); | 181 vector<TwoVector> getRecentPath(int numEvents); |
179 | 182 |
180 void clearTrail(); | 183 void clearTrail(); |
181 private: | 184 private: |
182 | 185 |
215 // | 218 // |
216 ServerComms *serverComms; | 219 ServerComms *serverComms; |
217 | 220 |
218 }; | 221 }; |
219 | 222 |
220 | 223 lEvent * e; |
224 | |
221 //--------------------------------------------------------------------------- | 225 //--------------------------------------------------------------------------- |
222 | 226 |
223 | 227 |
224 #endif /* defined(__oscSenderExample__eventLogger__) */ | 228 #endif /* defined(__oscSenderExample__eventLogger__) */ |