16 #ifndef _SINGLE_COLOUR_LAYER_H_ 17 #define _SINGLE_COLOUR_LAYER_H_ 63 int *min,
int *max,
int *deflt)
const;
67 virtual void setProperty(
const PropertyName &,
int value);
69 virtual void toXml(QTextStream &stream, QString indent =
"",
70 QString extraAttributes =
"")
const;
87 bool & ) {
return -1; }
virtual void setDefaultColourFor(View *v)
virtual ColourSignificance getLayerColourSignificance() const
Implements Layer::getLayerColourSignificance()
The base class for visual representations of the data found in a Model.
virtual void flagBaseColourChanged()
virtual QPixmap getLayerPresentationPixmap(QSize size) const
bool m_colourExplicitlySet
virtual void setBaseColour(int)
Set the colour used to draw primary items in the layer.
virtual ~SingleColourLayer()
virtual void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const
Convert the layer's data (though not those of the model it refers to) into XML for file output.
virtual QColor getForegroundQColor(View *v) const
virtual int getDefaultColourHint(bool, bool &)
virtual QColor getBaseQColor() const
std::vector< QColor > getPartialShades(View *v) const
static ColourRefCount m_colourRefCount
virtual QString getPropertyLabel(const PropertyName &) const
virtual QColor getBackgroundQColor(View *v) const
virtual QString getPropertyGroupName(const PropertyName &) const
virtual void setProperties(const QXmlAttributes &attributes)
Set the particular properties of a layer (those specific to the subclass) from a set of XML attribute...
virtual bool hasLightBackground() const
Return true if the layer currently has a dark colour on a light background, false if it has a light c...
virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const
virtual RangeMapper * getNewPropertyRangeMapper(const PropertyName &) const
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
virtual QString getPropertyValueLabel(const PropertyName &, int value) const
std::map< int, int > ColourRefCount
virtual PropertyList getProperties() const
virtual PropertyType getPropertyType(const PropertyName &) const
virtual int getBaseColour() const
Retrieve the current primary drawing colour, as a ColourDatabase index value.
virtual void setProperty(const PropertyName &, int value)