comparison layer/Layer.h @ 949:e3c7da3d896e osx-retina

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 11:00:48 +0100
parents 94e4952a6774 e53a87a5efb2
children c02c51ae5238 a34a2a25907c
comparison
equal deleted inserted replaced
948:8bf05426d950 949:e3c7da3d896e
61 61
62 virtual const Model *getModel() const = 0; 62 virtual const Model *getModel() const = 0;
63 Model *getModel() { 63 Model *getModel() {
64 return const_cast<Model *>(const_cast<const Layer *>(this)->getModel()); 64 return const_cast<Model *>(const_cast<const Layer *>(this)->getModel());
65 } 65 }
66 66
67 /** 67 /**
68 * Return a zoom constraint object defining the supported zoom 68 * Return a zoom constraint object defining the supported zoom
69 * levels for this layer. If this returns zero, the layer will 69 * levels for this layer. If this returns zero, the layer will
70 * support any integer zoom level. 70 * support any integer zoom level.
71 */ 71 */
518 * returned value is allocated on the heap and will be deleted by 518 * returned value is allocated on the heap and will be deleted by
519 * the caller. 519 * the caller.
520 */ 520 */
521 virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; } 521 virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; }
522 522
523 /**
524 * Return true if this layer type can function without a model
525 * being set. If false (the default), the layer will not be loaded
526 * from a session if its model cannot be found.
527 */
528 virtual bool canExistWithoutModel() const { return false; }
529
523 public slots: 530 public slots:
524 void showLayer(LayerGeometryProvider *, bool show); 531 void showLayer(LayerGeometryProvider *, bool show);
525 532
526 signals: 533 signals:
527 void modelChanged(); 534 void modelChanged();