diff data/model/PowerOfSqrtTwoZoomConstraint.h @ 1324:d4a28d1479a8 zoom

Some hackery toward having a zoomlevel type
author Chris Cannam
date Mon, 12 Dec 2016 15:18:52 +0000
parents 59e7fe1b1003
children 710e6250a401
line wrap: on
line diff
--- a/data/model/PowerOfSqrtTwoZoomConstraint.h	Fri Dec 09 19:04:33 2016 +0000
+++ b/data/model/PowerOfSqrtTwoZoomConstraint.h	Mon Dec 12 15:18:52 2016 +0000
@@ -21,17 +21,17 @@
 class PowerOfSqrtTwoZoomConstraint : virtual public ZoomConstraint
 {
 public:
-    virtual int getNearestBlockSize(int requestedBlockSize,
-				       RoundingDirection dir = RoundNearest)
-	const;
-    
-    virtual int getNearestBlockSize(int requestedBlockSize,
-				       int &type,
-				       int &power,
-				       RoundingDirection dir = RoundNearest)
-	const;
+    virtual ZoomLevel getNearestZoomLevel(ZoomLevel requested,
+                                          RoundingDirection dir = RoundNearest)
+	const override;
 	
     virtual int getMinCachePower() const { return 6; }
+
+    virtual int getNearestBlockSize(int requestedBlockSize,
+                                    int &type,
+                                    int &power,
+                                    RoundingDirection dir = RoundNearest)
+	const;
 };
 
 #endif