QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGS3DMAPEXPORTSETTINGS_H
17 #define QGS3DMAPEXPORTSETTINGS_H
55 float scale()
const {
return mScale; }
58 void setSceneName(
const QString &sceneName ) { mSceneName = sceneName; }
60 void setSceneFolderPath(
const QString &sceneFolderPath ) { mSceneFolderPath = sceneFolderPath; }
72 void setScale(
float scale ) { mScale = scale; }
75 QString mSceneName = QString(
"Scene" );
76 QString mSceneFolderPath = QDir::homePath();
77 int mTerrainResolution = 128;
78 bool mSmoothEdges =
false;
79 bool mExportNormals =
true;
80 bool mExportTextures =
false;
81 int mTerrainTextureResolution = 512;
85 #endif // QGS3DMAPEXPORTSETTINGS_H
void setSmoothEdges(bool smoothEdges)
Sets whether triangles edges will look smooth.
void setExportTextures(bool exportTextures)
Sets whether textures will be exported.
void setTerrainTextureResolution(int resolution)
Sets the terrain texture resolution.
bool exportTextures() const
Returns whether textures will be exported.
void setTerrainResolution(int resolution)
Sets the terrain resolution.
The Qgs3DMapExportSettings class Manages the various settings the user can choose from when exporting...
bool smoothEdges() const
Returns whether triangles edges will look smooth.
QString sceneFolderPath() const
Returns the scene folder path.
void setSceneName(const QString &sceneName)
Sets the scene name.
void setScale(float scale)
Sets the scale of exported model.
float scale() const
Returns the scale of the exported model.
void setExportNormals(bool exportNormals)
Sets whether normals should be exported.
int terrainTextureResolution() const
Returns the terrain texture resolution.
QString sceneName() const
Returns the scene name.
bool exportNormals() const
Returns whether normals will be exported.
int terrrainResolution() const
Returns the terrain resolution.
void setSceneFolderPath(const QString &sceneFolderPath)
Sets the scene's .obj file folder path.