QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Entity that handles the exporting of 3D scene. More...
#include <qgs3dsceneexporter.h>
Public Member Functions | |
Qgs3DSceneExporter () | |
Constructor. More... | |
~Qgs3DSceneExporter () | |
Destructor. More... | |
bool | exportNormals () const |
Returns whether the normals will be exported. More... | |
bool | exportTextures () const |
Returns whether the textures will be exported. More... | |
void | parseTerrain (QgsTerrainEntity *terrain, const QString &layer) |
Creates terrain export objects from the terrain entity. More... | |
bool | parseVectorLayerEntity (Qt3DCore::QEntity *entity, QgsVectorLayer *layer) |
Creates necessary export objects from entity if it represents valid vector layer entity Returns false if the no 3D object was extracted from the vector layer. More... | |
void | save (const QString &sceneName, const QString &sceneFolderPath) |
Saves the scene to a .obj file. More... | |
float | scale () const |
Returns the scale of the exported 3D model. More... | |
void | setExportNormals (bool exportNormals) |
Sets whether the normals will be exported. More... | |
void | setExportTextures (bool exportTextures) |
Sets whether the textures will be exported. More... | |
void | setScale (float scale) |
Sets the scale of the exported 3D model. More... | |
void | setSmoothEdges (bool smoothEdges) |
Sets whether the triangles will look smooth. More... | |
void | setTerrainResolution (int resolution) |
Sets the terrain resolution. More... | |
void | setTerrainTextureResolution (int resolution) |
Sets the terrain texture resolution. More... | |
bool | smoothEdges () const |
Returns whether the triangles will look smooth. More... | |
int | terrainResolution () const |
Returns the terrain resolution. More... | |
int | terrainTextureResolution () const |
Returns the terrain resolution. More... | |
Entity that handles the exporting of 3D scene.
3
Definition at line 55 of file qgs3dsceneexporter.h.
|
inline |
Constructor.
Definition at line 59 of file qgs3dsceneexporter.h.
|
inline |
Destructor.
Definition at line 61 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the normals will be exported.
Definition at line 87 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the textures will be exported.
Definition at line 92 of file qgs3dsceneexporter.h.
void Qgs3DSceneExporter::parseTerrain | ( | QgsTerrainEntity * | terrain, |
const QString & | layer | ||
) |
Creates terrain export objects from the terrain entity.
Definition at line 245 of file qgs3dsceneexporter.cpp.
bool Qgs3DSceneExporter::parseVectorLayerEntity | ( | Qt3DCore::QEntity * | entity, |
QgsVectorLayer * | layer | ||
) |
Creates necessary export objects from entity if it represents valid vector layer entity Returns false
if the no 3D object was extracted from the vector layer.
Definition at line 179 of file qgs3dsceneexporter.cpp.
void Qgs3DSceneExporter::save | ( | const QString & | sceneName, |
const QString & | sceneFolderPath | ||
) |
Saves the scene to a .obj file.
Definition at line 647 of file qgs3dsceneexporter.cpp.
|
inline |
Returns the scale of the exported 3D model.
Definition at line 106 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the normals will be exported.
Definition at line 85 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the textures will be exported.
Definition at line 90 of file qgs3dsceneexporter.h.
|
inline |
Sets the scale of the exported 3D model.
Definition at line 104 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the triangles will look smooth.
Definition at line 80 of file qgs3dsceneexporter.h.
|
inline |
Sets the terrain resolution.
Definition at line 95 of file qgs3dsceneexporter.h.
|
inline |
Sets the terrain texture resolution.
Definition at line 100 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the triangles will look smooth.
Definition at line 82 of file qgs3dsceneexporter.h.
|
inline |
Returns the terrain resolution.
Definition at line 97 of file qgs3dsceneexporter.h.
|
inline |
Returns the terrain resolution.
Definition at line 102 of file qgs3dsceneexporter.h.