16#ifndef QGSPOLYGON3DSYMBOL_H
17#define QGSPOLYGON3DSYMBOL_H
23#include <Qt3DRender/QCullFace>
41 QString
type()
const override {
return "polygon"; }
46 QList<
Qgis::GeometryType> compatibleGeometryTypes() const override;
47 void setDefaultPropertiesFromLayer( const
QgsVectorLayer *layer ) override;
85 float offset()
const {
return mOffset; }
172 Q_DECL_DEPRECATED
void setRenderedFacade(
int side )
SIP_DEPRECATED;
206 float mOffset = 0.0f;
207 float mExtrusionHeight = 0.0f;
208 std::unique_ptr<QgsAbstractMaterialSettings> mMaterialSettings;
210 bool mInvertNormals =
false;
211 bool mAddBackFaces =
false;
214 bool mEdgesEnabled =
false;
215 float mEdgeWidth = 1.f;
216 QColor mEdgeColor = Qt::black;
Provides global constants and enumerations for use throughout the application.
AltitudeClamping
Altitude clamping.
@ Absolute
Elevation is taken directly from feature and is independent of terrain height (final elevation = feat...
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
AltitudeBinding
Altitude binding.
@ Centroid
Clamp just centroid of feature.
Entity that handles the exporting of 3D scenes.
CullingMode
Triangle culling mode.
@ NoCulling
Will render both front and back faces of triangles.
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
Abstract base class for material settings.
Qgis::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
void setCullingMode(Qgs3DTypes::CullingMode mode)
Sets front/back culling mode.
void setAddBackFaces(bool add)
Sets whether also triangles facing the other side will be created.
QString type() const override
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units).
void setAltitudeBinding(Qgis::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
bool invertNormals() const
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-cloc...
Q_DECL_DEPRECATED float height() const SIP_DEPRECATED
Returns height (altitude) of the symbol (in map units).
float extrusionHeight() const
Returns extrusion height (in map units).
Q_DECL_DEPRECATED void setHeight(float height) SIP_DEPRECATED
Sets height (altitude) of the symbol (in map units).
~QgsPolygon3DSymbol() override
Qgs3DTypes::CullingMode cullingMode() const
Returns front/back culling mode.
QColor edgeColor() const
Returns edge lines color.
void setEdgeWidth(float width)
Sets width of edge lines (in pixels).
void setEdgeColor(const QColor &color)
Sets edge lines color.
Qgis::ExtrusionFaces extrusionFaces() const
Returns the building extrusion sides to be rendered.
float offset() const
Returns vertical offset of the symbol (in map units).
Qgis::AltitudeClamping altitudeClamping() const
Returns method that determines altitude (whether to clamp to feature to terrain).
void setInvertNormals(bool invert)
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwi...
bool addBackFaces() const
Returns whether also triangles facing the other side will be created.
void setOffset(float offset)
Sets vertical offset of the symbol (in map units).
bool edgesEnabled() const
Returns whether edge highlighting is enabled.
void setEdgesEnabled(bool enabled)
Sets whether edge highlighting is enabled.
void setExtrusionFaces(Qgis::ExtrusionFaces side)
Sets the building extrusion sides to be rendered.
float edgeWidth() const
Returns width of edge lines (in pixels).
void setAltitudeClamping(Qgis::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain).
A container for the context for various read/write operations on objects.
Represents a vector layer which manages a vector based dataset.
#define SIP_NODEFAULTCTORS