16 #ifndef QGSMESH3DSYMBOL_H
17 #define QGSMESH3DSYMBOL_H
26 #include <Qt3DRender/QCullFace>
79 QString
type()
const override {
return "mesh"; }
90 bool isEnabled() const;
97 void setEnabled(
bool enabled );
100 Qgs3DTypes::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
134 bool smoothedTriangles()
const;
141 void setSmoothedTriangles(
bool smoothTriangles );
148 bool wireframeEnabled()
const;
155 void setWireframeEnabled(
bool wireframeEnabled );
162 double wireframeLineWidth()
const;
169 void setWireframeLineWidth(
double wireframeLineWidth );
176 QColor wireframeLineColor()
const;
183 void setWireframeLineColor(
const QColor &wireframeLineColor );
190 double verticalScale()
const;
197 void setVerticalScale(
double verticalScale );
218 QColor singleMeshColor()
const;
225 void setSingleMeshColor(
const QColor &singleMeshColor );
246 int verticalDatasetGroupIndex()
const;
253 void setVerticalDatasetGroupIndex(
int verticalDatasetGroupIndex );
260 bool isVerticalMagnitudeRelative()
const;
267 void setIsVerticalMagnitudeRelative(
bool isVerticalMagnitudeRelative );
274 bool arrowsEnabled()
const;
281 void setArrowsEnabled(
bool arrowsEnabled );
288 double arrowsSpacing()
const;
295 void setArrowsSpacing(
double arrowsSpacing );
304 int maximumTextureSize()
const;
313 void setMaximumTextureSize(
int maximumTextureSize );
320 bool arrowsFixedSize()
const;
327 void setArrowsFixedSize(
bool arrowsFixedSize );
333 float mHeight = 0.0f;
334 std::unique_ptr< QgsAbstractMaterialSettings > mMaterial;
335 bool mAddBackFaces =
false;
337 bool mEnabled =
true;
340 bool mSmoothedTriangles =
false;
341 bool mWireframeEnabled =
false;
342 double mWireframeLineWidth = 1.0;
343 QColor mWireframeLineColor = Qt::darkGray;
346 double mVerticalScale = 1.0;
347 int mVerticalDatasetGroupIndex = -1;
348 bool mIsVerticalMagnitudeRelative =
false;
353 QColor mSingleColor = Qt::darkGreen;
356 bool mArrowsEnabled =
false;
357 double mArrowsSpacing = 25;
358 bool mArrowsFixedSize =
false;
359 QColor mArrowsColor = Qt::yellow;
360 int mMaximumTextureSize = 1024;
363 #endif // QGSMESH3DSYMBOL_H