Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
443:5124d1494a59 | 444:e5800f4490c4 |
---|---|
68 | 68 |
69 void setModel(const DenseThreeDimensionalModel *model); | 69 void setModel(const DenseThreeDimensionalModel *model); |
70 | 70 |
71 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 71 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
72 | 72 |
73 virtual bool getValueExtents(float &, float &, bool &, QString &) const { return false; } | |
74 | |
75 virtual PropertyList getProperties() const; | 73 virtual PropertyList getProperties() const; |
76 virtual PropertyType getPropertyType(const PropertyName &) const; | 74 virtual PropertyType getPropertyType(const PropertyName &) const; |
77 virtual QString getPropertyLabel(const PropertyName &) const; | 75 virtual QString getPropertyLabel(const PropertyName &) const; |
78 virtual QString getPropertyIconName(const PropertyName &) const; | 76 virtual QString getPropertyIconName(const PropertyName &) const; |
79 virtual QString getPropertyGroupName(const PropertyName &) const; | 77 virtual QString getPropertyGroupName(const PropertyName &) const; |
99 bool getNormalizeVisibleArea() const; | 97 bool getNormalizeVisibleArea() const; |
100 | 98 |
101 void setInvertVertical(bool i); | 99 void setInvertVertical(bool i); |
102 bool getInvertVertical() const; | 100 bool getInvertVertical() const; |
103 | 101 |
102 virtual bool getValueExtents(float &min, float &max, | |
103 bool &logarithmic, QString &unit) const; | |
104 | |
105 virtual bool getDisplayExtents(float &min, float &max) const; | |
106 virtual bool setDisplayExtents(float min, float max); | |
107 | |
108 virtual int getVerticalZoomSteps(int &defaultStep) const; | |
109 virtual int getCurrentVerticalZoomStep() const; | |
110 virtual void setVerticalZoomStep(int); | |
111 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; | |
112 | |
104 virtual const Model *getSliceableModel() const { return m_model; } | 113 virtual const Model *getSliceableModel() const { return m_model; } |
105 | 114 |
106 virtual void toXml(QTextStream &stream, QString indent = "", | 115 virtual void toXml(QTextStream &stream, QString indent = "", |
107 QString extraAttributes = "") const; | 116 QString extraAttributes = "") const; |
108 | 117 |
120 int m_colourMap; | 129 int m_colourMap; |
121 bool m_normalizeColumns; | 130 bool m_normalizeColumns; |
122 bool m_normalizeVisibleArea; | 131 bool m_normalizeVisibleArea; |
123 bool m_invertVertical; | 132 bool m_invertVertical; |
124 | 133 |
134 int m_miny; | |
135 int m_maxy; | |
136 | |
125 void getColumn(size_t col, DenseThreeDimensionalModel::Column &) const; | 137 void getColumn(size_t col, DenseThreeDimensionalModel::Column &) const; |
126 | 138 |
127 virtual int getColourScaleWidth(QPainter &) const; | 139 virtual int getColourScaleWidth(QPainter &) const; |
128 virtual void fillCache(size_t firstBin, size_t lastBin) const; | 140 virtual void fillCache(size_t firstBin, size_t lastBin) const; |
129 virtual void paintDense(View *v, QPainter &paint, QRect rect) const; | 141 virtual void paintDense(View *v, QPainter &paint, QRect rect) const; |