Mercurial > hg > soniczoomios
diff grid.h @ 43:b91a1859829a
used UIkit sliders
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 19 Apr 2013 18:50:04 +0100 |
parents | df7c08faf541 |
children | a1e75b94c505 |
line wrap: on
line diff
--- a/grid.h Wed Apr 17 13:44:05 2013 +0100 +++ b/grid.h Fri Apr 19 18:50:04 2013 +0100 @@ -26,6 +26,7 @@ public: bool snapped; + Hilbert hilbert; Grid(); ~Grid(); @@ -38,7 +39,7 @@ void snapCheck(); void shiftCentreToSnapped(); void draw(); - void drawGridLines(); + void update(); // change according to zoom double interpLevel; int smallestGridSpacing; // number of pixels when small grid dissappears from view @@ -57,10 +58,14 @@ // the inverse stuff void setParams(vector<int>); TwoVector getCoordForPresetSave(); + + // experimental + void changeNumberOfParamsPerDim(); private: + void drawGridLines(); double scale; // surface units per pixel GUI - const double maxValue; // width of entire space + double maxValue; // width of entire space const double minValue; // smallest zoom int paramsPerDim; // no of parameters per dimension ( int paramBitDepth; // number of bits for the parameter control data - i.e. always 7 for midi CC @@ -79,9 +84,7 @@ bool maxZoom, minZoom; - - - int midiCC[10]; // the actual params SHOULD BE INITED FROM 2*paramsPerDim + vector<int> midiCC; // the actual params // private functions