19#ifndef QGSMAPLAYERELEVATIONPROPERTIES_H
20#define QGSMAPLAYERELEVATIONPROPERTIES_H
58 if ( qobject_cast<QgsPointCloudLayerElevationProperties *>( sipCpp ) )
60 sipType = sipType_QgsPointCloudLayerElevationProperties;
62 else if ( qobject_cast<QgsVectorLayerElevationProperties *>( sipCpp ) )
64 sipType = sipType_QgsVectorLayerElevationProperties;
66 else if ( qobject_cast<QgsRasterLayerElevationProperties *>( sipCpp ) )
68 sipType = sipType_QgsRasterLayerElevationProperties;
70 else if ( qobject_cast<QgsMeshLayerElevationProperties *>( sipCpp ) )
72 sipType = sipType_QgsMeshLayerElevationProperties;
74 else if ( qobject_cast<QgsTiledSceneLayerElevationProperties *>( sipCpp ) )
76 sipType = sipType_QgsTiledSceneLayerElevationProperties;
97 RasterPerBandLowerElevation,
98 RasterPerBandUpperElevation,
107 FlagDontInvalidateCachedRendersWhenRangeChanges = 1
119 virtual bool hasElevation()
const;
140 virtual void setDefaultsFromLayer(
QgsMapLayer *layer );
147 virtual QString htmlSummary()
const;
184 virtual QList< double > significantZValues(
QgsMapLayer *layer )
const;
195 virtual bool showByDefaultInElevationProfilePlots()
const;
215 void setZOffset(
double offset );
228 double zScale()
const {
return mZScale; }
241 void setZScale(
double scale );
322 double mZScale = 1.0;
324 double mZOffset = 0.0;
338 void writeCommonProperties( QDomElement &element, QDomDocument &doc,
const QgsReadWriteContext &context );
346 void readCommonProperties(
const QDomElement &element,
const QgsReadWriteContext &context );
360 static void initPropertyDefinitions();
QgsRange which stores a range of double values.
Base class for storage of map layer elevation properties.
void zScaleChanged()
Emitted when the z scale changes.
QgsPropertyCollection mDataDefinedProperties
Property collection for data defined elevation settings.
void profileGenerationPropertyChanged()
Emitted when any of the elevation properties which relate solely to generation of elevation profiles ...
virtual QgsMapLayerElevationProperties::Flags flags() const
Returns flags associated to the elevation properties.
virtual QgsMapLayerElevationProperties * clone() const =0
Creates a clone of the properties.
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the object's property collection, used for data defined overrides.
void changed()
Emitted when any of the elevation properties have changed.
void profileRenderingPropertyChanged()
Emitted when any of the elevation properties which relate solely to presentation of elevation results...
Property
Data definable properties.
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the object's property collection, used for data defined overrides.
void zOffsetChanged()
Emitted when the z offset changes.
double zScale() const
Returns the z scale, which is a scaling factor which should be applied to z values from the layer.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
static QgsPropertiesDefinition sPropertyDefinitions
Property definitions.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads the elevation properties from a DOM element previously written by writeXml().
Flag
Flags attached to the elevation property.
double zOffset() const
Returns the z offset, which is a fixed offset amount which should be added to z values from the layer...
Base class for all map layer types.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
The class is used as a container of context for various read/write operations on other objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_ENUM_BASETYPE(type)
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.