diff data/model/PowerOfTwoZoomConstraint.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/PowerOfTwoZoomConstraint.h	Fri Dec 09 19:04:33 2016 +0000
+++ b/data/model/PowerOfTwoZoomConstraint.h	Mon Dec 12 15:18:52 2016 +0000
@@ -21,8 +21,13 @@
 class PowerOfTwoZoomConstraint : virtual public ZoomConstraint
 {
 public:
-    virtual int getNearestBlockSize(int requestedBlockSize,
-				       RoundingDirection dir = RoundNearest)
+    virtual ZoomLevel getNearestZoomLevel(ZoomLevel requested,
+                                          RoundingDirection dir = RoundNearest)
+	const override;
+
+protected:
+    virtual int getNearestBlockSize(int requested,
+                                    RoundingDirection dir = RoundNearest)
 	const;
 };