comparison layer/SpectrogramLayer.h @ 287:cd2492c5fe45

* Add SingleColourLayer to manage colours for layers that have a single predominant colour (i.e. most of them).
author Chris Cannam
date Thu, 12 Jul 2007 16:14:59 +0000
parents 86a112b5b319
children c0b9eec70639
comparison
equal deleted inserted replaced
286:7554ae119882 287:cd2492c5fe45
186 virtual VerticalPosition getPreferredFrameCountPosition() const { 186 virtual VerticalPosition getPreferredFrameCountPosition() const {
187 return PositionTop; 187 return PositionTop;
188 } 188 }
189 189
190 virtual bool isLayerOpaque() const { return true; } 190 virtual bool isLayerOpaque() const { return true; }
191 virtual bool isLayerColourSignificant() const { return true; } 191
192 virtual ColourSignificance getLayerColourSignificance() const {
193 return ColourHasMeaningfulValue;
194 }
192 195
193 float getYForFrequency(const View *v, float frequency) const; 196 float getYForFrequency(const View *v, float frequency) const;
194 float getFrequencyForY(const View *v, int y) const; 197 float getFrequencyForY(const View *v, int y) const;
195 198
196 virtual int getCompletion(View *v) const; 199 virtual int getCompletion(View *v) const;