diff hilbert.h @ 43:b91a1859829a

used UIkit sliders
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 19 Apr 2013 18:50:04 +0100
parents 8ed7522deaaa
children 0d3a993405e4
line wrap: on
line diff
--- a/hilbert.h	Wed Apr 17 13:44:05 2013 +0100
+++ b/hilbert.h	Fri Apr 19 18:50:04 2013 +0100
@@ -22,11 +22,15 @@
     int P; // dimensionas of high D space
     int N; // number of resolution bits
     int codeLength;
+    
+    
+    
     vector<vector <bool> > cubeStartVertices;
     vector<int> cubeRotations;
     vector<vector <bool> > theGrayCode;
     vector<unsigned int> theGrayCodeD;
-    
+    vector<unsigned int> theEntryVertices;
+    vector<unsigned int> theRotations;
     
     void makeCode();
 
@@ -34,7 +38,9 @@
     int rotate(int vertex, int entryPoint, int direction);
     int rotateInverse(int vertex, int entryPoint, int direction) ;
 public:
-    void init(int N, int P);
+    Hilbert();
+    Hilbert(int N, int P);
+    void changeCurve(int aN, int aP);
     vector<int> calculateParamsFromIndex(unsigned long long coord);
     unsigned long long calculateIndexFromParams(vector<int> params);