16 #ifndef QGS3DMAPEXPORTSETTINGS_H
17 #define QGS3DMAPEXPORTSETTINGS_H
54 float scale()
const {
return mScale; }
57 void setSceneName(
const QString &sceneName ) { mSceneName = sceneName; }
59 void setSceneFolderPath(
const QString &sceneFolderPath ) { mSceneFolderPath = sceneFolderPath; }
71 void setScale(
float scale ) { mScale = scale; }
74 QString mSceneName = QString(
"Scene" );
75 QString mSceneFolderPath = QDir::homePath();
76 int mTerrainResolution = 128;
77 bool mSmoothEdges =
false;
78 bool mExportNormals =
true;
79 bool mExportTextures =
false;
80 int mTerrainTextureResolution = 512;
Manages the various settings the user can choose from when exporting a 3D scene 3.
void setScale(float scale)
Sets the scale of exported model.
void setTerrainResolution(int resolution)
Sets the terrain resolution.
bool exportNormals() const
Returns whether normals will be exported.
void setExportTextures(bool exportTextures)
Sets whether textures will be exported.
int terrrainResolution() const
Returns the terrain resolution.
void setSmoothEdges(bool smoothEdges)
Sets whether triangles edges will look smooth.
void setSceneName(const QString &sceneName)
Sets the scene name.
QString sceneFolderPath() const
Returns the scene folder path.
float scale() const
Returns the scale of the exported model.
int terrainTextureResolution() const
Returns the terrain texture resolution.
void setTerrainTextureResolution(int resolution)
Sets the terrain texture resolution.
void setExportNormals(bool exportNormals)
Sets whether normals should be exported.
void setSceneFolderPath(const QString &sceneFolderPath)
Sets the scene's .obj file folder path.
QString sceneName() const
Returns the scene name.
bool smoothEdges() const
Returns whether triangles edges will look smooth.
bool exportTextures() const
Returns whether textures will be exported.