QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
19 #ifndef QGSPOINTCLOUDLAYERELEVATIONPROPERTIES_H
20 #define QGSPOINTCLOUDLAYERELEVATIONPROPERTIES_H
22 #include "qgis_core.h"
80 void setMaximumScreenError(
double error );
132 void setPointColor(
const QColor &color );
150 void setApplyOpacityByDistanceEffect(
bool apply );
161 void setPointSize(
double size );
206 void setRespectLayerColors(
bool enabled );
210 double mMaximumScreenError = 0.3;
213 double mPointSize = 0.6;
217 bool mRespectLayerColors =
true;
218 bool mApplyOpacityByDistanceEffect =
false;
221 #endif // QGSPOINTCLOUDLAYERELEVATIONPROPERTIES_H
virtual QgsMapLayerElevationProperties * clone() const =0
Creates a clone of the properties.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads the elevation properties from a DOM element previously written by writeXml().
RenderUnit
Rendering size units.
The class is used as a container of context for various read/write operations on other objects.
Base class for storage of map layer elevation properties.
QgsUnitTypes::RenderUnit pointSizeUnit() const
Returns the units used for the point size used for drawing points in elevation profile charts.
Point cloud layer specific subclass of QgsMapLayerElevationProperties.
double pointSize() const
Returns the point size used for drawing points in elevation profile charts.
@ RenderMillimeters
Millimeters.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
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...
virtual bool hasElevation() const
Returns true if the layer has an elevation or z component.
bool respectLayerColors() const
Returns true if layer coloring should be respected when rendering elevation profile plots.
virtual QString htmlSummary() const
Returns a HTML formatted summary of the properties.
bool applyOpacityByDistanceEffect() const
Returns true if a reduced opacity by distance from profile curve effect should be applied when drawin...
QColor pointColor() const
Returns the color used drawing points in elevation profile charts.
@ Square
Renders points as squares.
PointCloudSymbol
Rendering symbols for point cloud points.
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.
double maximumScreenError() const
Returns the maximum screen error allowed when generating elevation profiles for the point cloud.
QgsUnitTypes::RenderUnit maximumScreenErrorUnit() const
Returns the unit for the maximum screen error allowed when generating elevation profiles for the poin...