comparison layer/LayerGeometryProvider.h @ 1183:57d192e26331 zoom

Some hackery toward having a zoomlevel type
author Chris Cannam
date Mon, 12 Dec 2016 15:18:52 +0000
parents c8c747783110
children bc2cb82050a0
comparison
equal deleted inserted replaced
1182:6605984fa98f 1183:57d192e26331
145 145
146 virtual bool getValueExtents(QString unit, double &min, double &max, 146 virtual bool getValueExtents(QString unit, double &min, double &max,
147 bool &log) const = 0; 147 bool &log) const = 0;
148 148
149 /** 149 /**
150 * Return the zoom level, i.e. the number of frames per pixel 150 * Return the zoom level, i.e. the number of frames per pixel or
151 * pixels per frame
151 */ 152 */
152 virtual int getZoomLevel() const = 0; 153 virtual ZoomLevel getZoomLevel() const = 0;
153 154
154 /** 155 /**
155 * To be called from a layer, to obtain the extent of the surface 156 * To be called from a layer, to obtain the extent of the surface
156 * that the layer is currently painting to. This may be the extent 157 * that the layer is currently painting to. This may be the extent
157 * of the view (if 1x display scaling is in effect) or of a larger 158 * of the view (if 1x display scaling is in effect) or of a larger