comparison layer/TimeValueLayer.h @ 701:084f65094203

Extend numerical and colour scales (and piano where applicable) to note and region layers
author Chris Cannam
date Wed, 04 Dec 2013 13:39:41 +0000
parents 1a1448f7beb2
children 1d526ba11a24
comparison
equal deleted inserted replaced
700:7846175403f1 701:084f65094203
153 return ColourDistinguishes; 153 return ColourDistinguishes;
154 } 154 }
155 } 155 }
156 156
157 /// VerticalScaleLayer and ColourScaleLayer methods 157 /// VerticalScaleLayer and ColourScaleLayer methods
158 virtual void getScaleExtents(View *, float &min, float &max, bool &log) const;
159 virtual int getYForValue(View *, float value) const; 158 virtual int getYForValue(View *, float value) const;
160 virtual float getValueForY(View *, int y) const; 159 virtual float getValueForY(View *, int y) const;
161 virtual QString getScaleUnits() const; 160 virtual QString getScaleUnits() const;
162 virtual QColor getColourForValue(View *v, float value) const; 161 virtual QColor getColourForValue(View *v, float value) const;
163 162
164 protected: 163 protected:
164 void getScaleExtents(View *, float &min, float &max, bool &log) const;
165 bool shouldAutoAlign() const; 165 bool shouldAutoAlign() const;
166 166
167 SparseTimeValueModel::PointList getLocalPoints(View *v, int) const; 167 SparseTimeValueModel::PointList getLocalPoints(View *v, int) const;
168 168
169 virtual int getDefaultColourHint(bool dark, bool &impose); 169 virtual int getDefaultColourHint(bool dark, bool &impose);