QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Vector layer specific subclass of QgsMapLayerElevationProperties. More...
#include <qgsvectorlayerelevationproperties.h>
Public Member Functions | |
QgsVectorLayerElevationProperties (QObject *parent) | |
Constructor for QgsVectorLayerElevationProperties, with the specified parent object. More... | |
~QgsVectorLayerElevationProperties () override | |
Qgis::AltitudeBinding | binding () const |
Returns the altitude binding method, which determines how altitude is bound to individual vertices in features. More... | |
QgsDoubleRange | calculateZRange (QgsMapLayer *layer) const override |
Attempts to calculate the overall elevation or z range for the specified layer, using the settings defined by this elevation properties object. More... | |
Qgis::AltitudeClamping | clamping () const |
Returns the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights. More... | |
QgsVectorLayerElevationProperties * | clone () const override |
Creates a clone of the properties. More... | |
bool | extrusionEnabled () const |
Returns true if extrusion is enabled. More... | |
double | extrusionHeight () const |
Returns the feature extrusion height. More... | |
bool | hasElevation () const override |
Returns true if the layer has an elevation or z component. More... | |
QString | htmlSummary () const override |
Returns a HTML formatted summary of the properties. More... | |
bool | isVisibleInZRange (const QgsDoubleRange &range) const override |
Returns true if the layer should be visible and rendered for the specified z range. More... | |
QgsFillSymbol * | profileFillSymbol () const |
Returns the symbol used to render polygons for the layer in elevation profile plots. More... | |
QgsLineSymbol * | profileLineSymbol () const |
Returns the symbol used to render lines for the layer in elevation profile plots. More... | |
QgsMarkerSymbol * | profileMarkerSymbol () const |
Returns the symbol used to render points for the layer in elevation profile plots. More... | |
Qgis::ProfileSurfaceSymbology | profileSymbology () const |
Returns the symbology option used to render the vector profile in elevation profile plots. More... | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) override |
Reads the elevation properties from a DOM element previously written by writeXml(). More... | |
bool | respectLayerSymbology () const |
Returns true if layer symbology should be respected when rendering elevation profile plots. More... | |
void | setBinding (Qgis::AltitudeBinding binding) |
Sets the altitude binding method, which determines how altitude is bound to individual vertices in features. More... | |
void | setClamping (Qgis::AltitudeClamping clamping) |
Sets the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights. More... | |
void | setDefaultsFromLayer (QgsMapLayer *layer) override |
Sets default properties based on sensible choices for the given map layer. More... | |
void | setExtrusionEnabled (bool enabled) |
Sets whether extrusion is enabled. More... | |
void | setExtrusionHeight (double height) |
Sets the feature extrusion height. More... | |
void | setProfileFillSymbol (QgsFillSymbol *symbol) |
Sets the fill symbol used to render polygons for the layer in elevation profile plots. More... | |
void | setProfileLineSymbol (QgsLineSymbol *symbol) |
Sets the line symbol used to render lines for the layer in elevation profile plots. More... | |
void | setProfileMarkerSymbol (QgsMarkerSymbol *symbol) |
Sets the marker symbol used to render points for the layer in elevation profile plots. More... | |
void | setProfileSymbology (Qgis::ProfileSurfaceSymbology symbology) |
Sets the symbology option used to render the vector profile in elevation profile plots. More... | |
void | setRespectLayerSymbology (bool enabled) |
Sets whether layer symbology should be respected when rendering elevation profile plots. More... | |
void | setShowMarkerSymbolInSurfacePlots (bool show) |
Sets whehter the marker symbol should also be shown in continuous surface plots. More... | |
void | setType (Qgis::VectorProfileType type) |
Sets the type of profile the layer represents. More... | |
bool | showByDefaultInElevationProfilePlots () const override |
Returns true if the layer should be visible by default in newly created elevation profile plots. More... | |
bool | showMarkerSymbolInSurfacePlots () const |
Returns true if the marker symbol should also be shown in continuous surface plots. More... | |
Qgis::VectorProfileType | type () const |
Returns the type of profile the layer represents. More... | |
QDomElement | writeXml (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) override |
Writes the properties to a DOM element, to be used later with readXml(). More... | |
Public Member Functions inherited from QgsMapLayerElevationProperties | |
QgsMapLayerElevationProperties (QObject *parent) | |
Constructor for QgsMapLayerElevationProperties, with the specified parent object. More... | |
virtual QgsDoubleRange | calculateZRange (QgsMapLayer *layer) const |
Attempts to calculate the overall elevation or z range for the specified layer, using the settings defined by this elevation properties object. More... | |
virtual QgsMapLayerElevationProperties * | clone () const =0 |
Creates a clone of the properties. More... | |
QgsPropertyCollection & | dataDefinedProperties () |
Returns a reference to the object's property collection, used for data defined overrides. More... | |
const QgsPropertyCollection & | dataDefinedProperties () const |
Returns a reference to the object's property collection, used for data defined overrides. More... | |
virtual QgsMapLayerElevationProperties::Flags | flags () const |
Returns flags associated to the elevation properties. More... | |
virtual bool | hasElevation () const |
Returns true if the layer has an elevation or z component. More... | |
virtual QString | htmlSummary () const |
Returns a HTML formatted summary of the properties. More... | |
virtual bool | isVisibleInZRange (const QgsDoubleRange &range) const |
Returns true if the layer should be visible and rendered for the specified z range. More... | |
virtual bool | readXml (const QDomElement &element, const QgsReadWriteContext &context)=0 |
Reads the elevation properties from a DOM element previously written by writeXml(). More... | |
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
Sets the object's property collection, used for data defined overrides. More... | |
virtual void | setDefaultsFromLayer (QgsMapLayer *layer) |
Sets default properties based on sensible choices for the given map layer. More... | |
void | setZOffset (double offset) |
Sets the z offset, which is a fixed offset amount which will be added to z values from the layer. More... | |
void | setZScale (double scale) |
Sets the z scale, which is a scaling factor which will be applied to z values from the layer. More... | |
virtual bool | showByDefaultInElevationProfilePlots () const |
Returns true if the layer should be visible by default in newly created elevation profile plots. More... | |
virtual QDomElement | writeXml (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0 |
Writes the properties to a DOM element, to be used later with readXml(). More... | |
double | zOffset () const |
Returns the z offset, which is a fixed offset amount which should be added to z values from the layer. More... | |
double | zScale () const |
Returns the z scale, which is a scaling factor which should be applied to z values from the layer. More... | |
Additional Inherited Members | |
Public Types inherited from QgsMapLayerElevationProperties | |
enum | Flag { FlagDontInvalidateCachedRendersWhenRangeChanges = 1 } |
Flags attached to the elevation property. More... | |
enum | Property { ZOffset , ExtrusionHeight } |
Data definable properties. More... | |
Signals inherited from QgsMapLayerElevationProperties | |
void | changed () |
Emitted when any of the elevation properties have changed. More... | |
void | profileGenerationPropertyChanged () |
Emitted when any of the elevation properties which relate solely to generation of elevation profiles have changed. More... | |
void | profileRenderingPropertyChanged () |
Emitted when any of the elevation properties which relate solely to presentation of elevation results have changed. More... | |
void | zOffsetChanged () |
Emitted when the z offset changes. More... | |
void | zScaleChanged () |
Emitted when the z scale changes. More... | |
Static Public Member Functions inherited from QgsMapLayerElevationProperties | |
static QgsPropertiesDefinition | propertyDefinitions () |
Returns the definitions for data defined properties available for use in elevation properties. More... | |
Protected Member Functions inherited from QgsMapLayerElevationProperties | |
void | copyCommonProperties (const QgsMapLayerElevationProperties *other) |
Copies common properties from another object. More... | |
void | readCommonProperties (const QDomElement &element, const QgsReadWriteContext &context) |
Reads common class properties from a DOM element previously written by writeXml(). More... | |
void | writeCommonProperties (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) |
Writes common class properties to a DOM element, to be used later with readXml(). More... | |
Protected Attributes inherited from QgsMapLayerElevationProperties | |
QgsPropertyCollection | mDataDefinedProperties |
Property collection for data defined elevation settings. More... | |
double | mZOffset = 0.0 |
Z offset. More... | |
double | mZScale = 1.0 |
Z scale. More... | |
Static Protected Attributes inherited from QgsMapLayerElevationProperties | |
static QgsPropertiesDefinition | sPropertyDefinitions |
Property definitions. More... | |
Vector layer specific subclass of QgsMapLayerElevationProperties.
Definition at line 38 of file qgsvectorlayerelevationproperties.h.
QgsVectorLayerElevationProperties::QgsVectorLayerElevationProperties | ( | QObject * | parent | ) |
Constructor for QgsVectorLayerElevationProperties, with the specified parent object.
Definition at line 30 of file qgsvectorlayerelevationproperties.cpp.
|
overridedefault |
|
inline |
Returns the altitude binding method, which determines how altitude is bound to individual vertices in features.
Definition at line 84 of file qgsvectorlayerelevationproperties.h.
|
overridevirtual |
Attempts to calculate the overall elevation or z range for the specified layer, using the settings defined by this elevation properties object.
May return an infinite range if the extent could not be calculated.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 232 of file qgsvectorlayerelevationproperties.cpp.
|
inline |
Returns the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights.
Definition at line 67 of file qgsvectorlayerelevationproperties.h.
|
overridevirtual |
Creates a clone of the properties.
Implements QgsMapLayerElevationProperties.
Definition at line 143 of file qgsvectorlayerelevationproperties.cpp.
|
inline |
Returns true
if extrusion is enabled.
Definition at line 115 of file qgsvectorlayerelevationproperties.h.
|
inline |
Returns the feature extrusion height.
true
. Definition at line 133 of file qgsvectorlayerelevationproperties.h.
|
overridevirtual |
Returns true
if the layer has an elevation or z component.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 41 of file qgsvectorlayerelevationproperties.cpp.
|
overridevirtual |
Returns a HTML formatted summary of the properties.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 161 of file qgsvectorlayerelevationproperties.cpp.
|
overridevirtual |
Returns true
if the layer should be visible and rendered for the specified z range.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 226 of file qgsvectorlayerelevationproperties.cpp.
QgsFillSymbol * QgsVectorLayerElevationProperties::profileFillSymbol | ( | ) | const |
Returns the symbol used to render polygons for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
true
Definition at line 320 of file qgsvectorlayerelevationproperties.cpp.
QgsLineSymbol * QgsVectorLayerElevationProperties::profileLineSymbol | ( | ) | const |
Returns the symbol used to render lines for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
true
true
false
Definition at line 308 of file qgsvectorlayerelevationproperties.cpp.
QgsMarkerSymbol * QgsVectorLayerElevationProperties::profileMarkerSymbol | ( | ) | const |
Returns the symbol used to render points for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
false
false
Definition at line 332 of file qgsvectorlayerelevationproperties.cpp.
|
inline |
Returns the symbology option used to render the vector profile in elevation profile plots.
Definition at line 250 of file qgsvectorlayerelevationproperties.h.
|
overridevirtual |
Reads the elevation properties from a DOM element previously written by writeXml().
Implements QgsMapLayerElevationProperties.
Definition at line 79 of file qgsvectorlayerelevationproperties.cpp.
|
inline |
Returns true
if layer symbology should be respected when rendering elevation profile plots.
Specifically, this will result in the layer's symbols (or symbol colors) being used to draw features in the profile plots.
Definition at line 153 of file qgsvectorlayerelevationproperties.h.
void QgsVectorLayerElevationProperties::setBinding | ( | Qgis::AltitudeBinding | binding | ) |
Sets the altitude binding method, which determines how altitude is bound to individual vertices in features.
Definition at line 258 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setClamping | ( | Qgis::AltitudeClamping | clamping | ) |
Sets the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights.
Definition at line 248 of file qgsvectorlayerelevationproperties.cpp.
|
overridevirtual |
Sets default properties based on sensible choices for the given map layer.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 117 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setExtrusionEnabled | ( | bool | enabled | ) |
Sets whether extrusion is enabled.
Definition at line 278 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setExtrusionHeight | ( | double | height | ) |
Sets the feature extrusion height.
true
. Definition at line 288 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setProfileFillSymbol | ( | QgsFillSymbol * | symbol | ) |
Sets the fill symbol used to render polygons for the layer in elevation profile plots.
Ownership of symbol is transferred to the plot.
The symbol will be used in the following circumstances:
true
Definition at line 325 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setProfileLineSymbol | ( | QgsLineSymbol * | symbol | ) |
Sets the line symbol used to render lines for the layer in elevation profile plots.
Ownership of symbol is transferred to the plot.
The symbol will be used in the following circumstances:
true
true
false
Definition at line 313 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setProfileMarkerSymbol | ( | QgsMarkerSymbol * | symbol | ) |
Sets the marker symbol used to render points for the layer in elevation profile plots.
Ownership of symbol is transferred to the plot.
The symbol will be used in the following circumstances:
false
false
Definition at line 337 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setProfileSymbology | ( | Qgis::ProfileSurfaceSymbology | symbology | ) |
Sets the symbology option used to render the vector profile in elevation profile plots.
Definition at line 344 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setRespectLayerSymbology | ( | bool | enabled | ) |
Sets whether layer symbology should be respected when rendering elevation profile plots.
Specifically, this will result in the layer's symbols (or symbol colors) being used to draw features in the profile plots.
Definition at line 298 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setShowMarkerSymbolInSurfacePlots | ( | bool | show | ) |
Sets whehter the marker symbol should also be shown in continuous surface plots.
Definition at line 354 of file qgsvectorlayerelevationproperties.cpp.
void QgsVectorLayerElevationProperties::setType | ( | Qgis::VectorProfileType | type | ) |
Sets the type of profile the layer represents.
Definition at line 268 of file qgsvectorlayerelevationproperties.cpp.
|
overridevirtual |
Returns true
if the layer should be visible by default in newly created elevation profile plots.
Subclasses should override this with logic which determines whether the layer is likely desirable to be initially checked in these plots.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 238 of file qgsvectorlayerelevationproperties.cpp.
|
inline |
Returns true
if the marker symbol should also be shown in continuous surface plots.
Definition at line 268 of file qgsvectorlayerelevationproperties.h.
|
inline |
Returns the type of profile the layer represents.
Definition at line 100 of file qgsvectorlayerelevationproperties.h.
|
overridevirtual |
Writes the properties to a DOM element, to be used later with readXml().
Implements QgsMapLayerElevationProperties.
Definition at line 49 of file qgsvectorlayerelevationproperties.cpp.