Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created QgsExportObject to manage each object data (position coordina…
…tes, textures, normals ...) Fixed an issue with QgsDemHeightMapGenerator::renderSynchronously because it wasm't doing the same things as asynchronous rendering function Switched to using just one tile for DEM terrain and using a resolution parameter to handle level of details
- Loading branch information
1 parent
8a80bac
commit 69017d4
Showing
12 changed files
with
729 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/*************************************************************************** | ||
qgs3dmapexportsettings.h | ||
-------------------------------------- | ||
Date : July 2020 | ||
Copyright : (C) 2020 by Belgacem Nedjima | ||
Email : gb underscore nedjima at esi dot dz | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGS3DMAPEXPORTSETTINGS_H | ||
#define QGS3DMAPEXPORTSETTINGS_H | ||
|
||
#include "qgis_3d.h" | ||
|
||
#include <QString> | ||
#include <QObject> | ||
|
||
class _3D_EXPORT Qgs3DMapExportSettings : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
Qgs3DMapExportSettings(QObject* parent = nullptr); | ||
QString sceneName() const { return mSceneName; } | ||
QString sceneFolderPath() const { return mSceneFolderPath; } | ||
int terrrainResolution() const { return mTerrainResolution; } | ||
bool smoothEdges() const { return mSmoothEdges; } | ||
|
||
void setSceneName( const QString& sceneName ) { mSceneName = sceneName; } | ||
void setSceneFolderPath( const QString& sceneFolderPath ) { mSceneFolderPath = sceneFolderPath; } | ||
void setTerrainResolution( int resolution ) { mTerrainResolution = resolution; } | ||
void setSmoothEdges( bool smoothEdges ) { mSmoothEdges = smoothEdges; } | ||
private: | ||
QString mSceneName; | ||
QString mSceneFolderPath; | ||
int mTerrainResolution; | ||
bool mSmoothEdges; | ||
}; | ||
|
||
#endif // QGS3DMAPEXPORTSETTINGS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.