Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.h @ 1324:13d9b422f7fe zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:31 +0100 |
parents | a34a2a25907c |
children | d79e21855aef |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Mon Dec 12 15:18:52 2016 +0000 +++ b/layer/Colour3DPlotLayer.h Mon Sep 17 13:51:31 2018 +0100 @@ -59,8 +59,8 @@ virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; virtual bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, - int &resolution, - SnapType snap) const; + int &resolution, + SnapType snap) const; virtual void setLayerDormant(const LayerGeometryProvider *v, bool dormant); @@ -82,7 +82,7 @@ virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const; virtual QString getPropertyValueLabel(const PropertyName &, - int value) const; + int value) const; virtual QString getPropertyValueIconName(const PropertyName &, int value) const; virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; @@ -187,6 +187,8 @@ typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id mutable ViewMagMap m_viewMags; + mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode + void invalidateMagnitudes(); typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id mutable ViewRendererMap m_renderers; @@ -209,8 +211,6 @@ * if the vertical scale is the usual way up). */ double getBinForY(const LayerGeometryProvider *, double y) const; - - DenseThreeDimensionalModel::Column getColumn(int col) const; int getColourScaleWidth(QPainter &) const;