comparison layer/SingleColourLayer.h @ 615:156a120345ae

Add discrete-curve drawing mode for time-value layer
author Chris Cannam
date Fri, 16 Nov 2012 17:14:12 +0000
parents 2c59b0cd176b
children 8b614632568c
comparison
equal deleted inserted replaced
614:7ac63919fd52 615:156a120345ae
24 class SingleColourLayer : public Layer 24 class SingleColourLayer : public Layer
25 { 25 {
26 Q_OBJECT 26 Q_OBJECT
27 27
28 public: 28 public:
29 /**
30 * Set the colour used to draw primary items in the layer. The
31 * colour value is a colour database index as returned by
32 * ColourDatabase::getColourIndex().
33 */
29 virtual void setBaseColour(int); 34 virtual void setBaseColour(int);
35
36 /**
37 * Retrieve the current primary drawing colour, as a
38 * ColourDatabase index value.
39 */
30 virtual int getBaseColour() const; 40 virtual int getBaseColour() const;
31 41
42 /**
43 * Return true if the layer currently has a dark colour on a light
44 * background, false if it has a light colour on a dark
45 * background.
46 */
32 virtual bool hasLightBackground() const; 47 virtual bool hasLightBackground() const;
33 48
49 /**
50 * Implements Layer::getLayerColourSignificance()
51 */
34 virtual ColourSignificance getLayerColourSignificance() const { 52 virtual ColourSignificance getLayerColourSignificance() const {
35 return ColourDistinguishes; 53 return ColourDistinguishes;
36 } 54 }
37 55
38 virtual QPixmap getLayerPresentationPixmap(QSize size) const; 56 virtual QPixmap getLayerPresentationPixmap(QSize size) const;