Mercurial > hg > soniczoomios
comparison grid.h @ 7:845ea04f8e33
more logging, user id, preset info
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 06 Dec 2012 18:26:51 +0000 |
parents | 5ee5ef99e117 |
children | 346807b47860 |
comparison
equal
deleted
inserted
replaced
6:34eba1046890 | 7:845ea04f8e33 |
---|---|
13 #include "2dvector.h" | 13 #include "2dvector.h" |
14 #include "ofMain.h" | 14 #include "ofMain.h" |
15 #include "eventLogger.h" | 15 #include "eventLogger.h" |
16 #include "presetManager.h" | 16 #include "presetManager.h" |
17 using namespace std; | 17 using namespace std; |
18 class Preset; | |
18 | 19 |
19 class Grid { | 20 class Grid { |
20 private: | 21 private: |
21 double scale; // surface units per pixel | 22 double scale; // surface units per pixel |
22 | 23 |
35 TwoVector centre; | 36 TwoVector centre; |
36 | 37 |
37 | 38 |
38 TwoVector snapCentre; | 39 TwoVector snapCentre; |
39 TwoVector snapDist; // number of pixels to snap to | 40 TwoVector snapDist; // number of pixels to snap to |
41 Preset * closestPreset; // pointer to the currently selected (snapped to ) preset.. NULL if none. | |
40 | 42 |
41 bool maxZoom, minZoom; | 43 bool maxZoom, minZoom; |
42 int cubeWidth; // side of hypercube. 2 for binary coding. | 44 int cubeWidth; // side of hypercube. 2 for binary coding. |
43 | 45 |
44 vector< vector<bool> > vcode; // | 46 vector< vector<bool> > vcode; // |