diff layer/Colour3DPlotLayer.h @ 444:e5800f4490c4

* Make Colour 3D Plot layer vertically zoomable and scrollable Still need to save/restore these settings for this and the time/value and note layers
author Chris Cannam
date Wed, 12 Nov 2008 15:17:16 +0000
parents 3e538a90e9b8
children 272e58f0bf8b
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h	Tue Nov 11 13:54:47 2008 +0000
+++ b/layer/Colour3DPlotLayer.h	Wed Nov 12 15:17:16 2008 +0000
@@ -70,8 +70,6 @@
 
     virtual int getCompletion(View *) const { return m_model->getCompletion(); }
 
-    virtual bool getValueExtents(float &, float &, bool &, QString &) const { return false; }
-
     virtual PropertyList getProperties() const;
     virtual PropertyType getPropertyType(const PropertyName &) const;
     virtual QString getPropertyLabel(const PropertyName &) const;
@@ -101,6 +99,17 @@
     void setInvertVertical(bool i);
     bool getInvertVertical() const;
 
+    virtual bool getValueExtents(float &min, float &max,
+                                 bool &logarithmic, QString &unit) const;
+
+    virtual bool getDisplayExtents(float &min, float &max) const;
+    virtual bool setDisplayExtents(float min, float max);
+
+    virtual int getVerticalZoomSteps(int &defaultStep) const;
+    virtual int getCurrentVerticalZoomStep() const;
+    virtual void setVerticalZoomStep(int);
+    virtual RangeMapper *getNewVerticalZoomRangeMapper() const;
+
     virtual const Model *getSliceableModel() const { return m_model; }
 
     virtual void toXml(QTextStream &stream, QString indent = "",
@@ -122,6 +131,9 @@
     bool        m_normalizeVisibleArea;
     bool        m_invertVertical;
 
+    int         m_miny;
+    int         m_maxy;
+    
     void getColumn(size_t col, DenseThreeDimensionalModel::Column &) const;
 
     virtual int getColourScaleWidth(QPainter &) const;