QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
19 #ifndef QGSVECTORLAYERELEVATIONPROPERTIES_H
20 #define QGSVECTORLAYERELEVATIONPROPERTIES_H
22 #include "qgis_core.h"
123 void setExtrusionEnabled(
bool enabled );
143 void setExtrusionHeight(
double height );
163 void setRespectLayerSymbology(
bool enabled );
277 void setShowMarkerSymbolInSurfacePlots(
bool show );
281 void setDefaultProfileLineSymbol(
const QColor &color );
282 void setDefaultProfileMarkerSymbol(
const QColor &color );
283 void setDefaultProfileFillSymbol(
const QColor &color );
290 bool mEnableExtrusion =
false;
291 double mExtrusionHeight = 0;
293 std::unique_ptr< QgsLineSymbol > mProfileLineSymbol;
294 std::unique_ptr< QgsFillSymbol > mProfileFillSymbol;
295 std::unique_ptr< QgsMarkerSymbol > mProfileMarkerSymbol;
296 bool mRespectLayerSymbology =
true;
298 bool mShowMarkerSymbolInSurfacePlots =
false;
302 #endif // QGSVECTORLAYERELEVATIONPROPERTIES_H
virtual QgsMapLayerElevationProperties * clone() const =0
Creates a clone of the properties.
@ Terrain
Elevation is clamped to terrain (final elevation = terrain elevation)
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads the elevation properties from a DOM element previously written by writeXml().
The class is used as a container of context for various read/write operations on other objects.
Qgis::VectorProfileType type() const
Returns the type of profile the layer represents.
bool showMarkerSymbolInSurfacePlots() const
Returns true if the marker symbol should also be shown in continuous surface plots.
@ Centroid
Clamp just centroid of feature.
Base class for storage of map layer elevation properties.
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
double extrusionHeight() const
Returns the feature extrusion height.
virtual void setDefaultsFromLayer(QgsMapLayer *layer)
Sets default properties based on sensible choices for the given map 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().
Qgis::AltitudeClamping clamping() const
Returns the altitude clamping method, which dictates how feature heights are interpreted with respect...
virtual bool isVisibleInZRange(const QgsDoubleRange &range) const
Returns true if the layer should be visible and rendered for the specified z range.
virtual QgsDoubleRange calculateZRange(QgsMapLayer *layer) const
Attempts to calculate the overall elevation or z range for the specified layer, using the settings de...
@ Line
The elevation surface will be rendered using a line symbol.
virtual bool hasElevation() const
Returns true if the layer has an elevation or z component.
virtual QString htmlSummary() const
Returns a HTML formatted summary of the properties.
AltitudeBinding
Altitude binding.
bool extrusionEnabled() const
Returns true if extrusion is enabled.
A marker symbol type, for rendering Point and MultiPoint geometries.
bool respectLayerSymbology() const
Returns true if layer symbology should be respected when rendering elevation profile plots.
@ IndividualFeatures
Treat each feature as an individual object (eg buildings)
A line symbol type, for rendering LineString and MultiLineString geometries.
VectorProfileType
Types of elevation profiles to generate for vector sources.
Vector layer specific subclass of QgsMapLayerElevationProperties.
QgsRange which stores a range of double values.
Base class for all map layer types. This is the base class for all map layer types (vector,...
virtual bool showByDefaultInElevationProfilePlots() const
Returns true if the layer should be visible by default in newly created elevation profile plots.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Qgis::AltitudeBinding binding() const
Returns the altitude binding method, which determines how altitude is bound to individual vertices in...
AltitudeClamping
Altitude clamping.
Qgis::ProfileSurfaceSymbology profileSymbology() const
Returns the symbology option used to render the vector profile in elevation profile plots.