16 #ifndef QGSPOLYGON3DSYMBOL_H
17 #define QGSPOLYGON3DSYMBOL_H
25 #include <Qt3DRender/QCullFace>
42 QString
type()
const override {
return "polygon"; }
59 float height()
const {
return mHeight; }
61 void setHeight(
float height ) { mHeight = height; }
64 float extrusionHeight()
const {
return mExtrusionHeight; }
66 void setExtrusionHeight(
float extrusionHeight ) { mExtrusionHeight = extrusionHeight; }
79 bool invertNormals()
const {
return mInvertNormals; }
81 void setInvertNormals(
bool invert ) { mInvertNormals = invert; }
87 bool addBackFaces()
const {
return mAddBackFaces; }
93 void setAddBackFaces(
bool add ) { mAddBackFaces = add; }
99 bool edgesEnabled()
const {
return mEdgesEnabled; }
105 void setEdgesEnabled(
bool enabled ) { mEdgesEnabled = enabled; }
111 float edgeWidth()
const {
return mEdgeWidth; }
117 void setEdgeWidth(
float width ) { mEdgeWidth = width; }
123 QColor edgeColor()
const {
return mEdgeColor; }
129 void setEdgeColor(
const QColor &color ) { mEdgeColor = color; }
137 float mHeight = 0.0f;
138 float mExtrusionHeight = 0.0f;
141 bool mInvertNormals =
false;
142 bool mAddBackFaces =
false;
144 bool mEdgesEnabled =
false;
145 float mEdgeWidth = 1.f;
146 QColor mEdgeColor = Qt::black;
150 #endif // QGSPOLYGON3DSYMBOL_H