QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Entity that handles the exporting of 3D scene. More...
#include <qgs3dsceneexporter.h>
Public Member Functions | |
Qgs3DSceneExporter () | |
~Qgs3DSceneExporter () | |
bool | exportNormals () const |
Returns whether the normals will be exported. | |
bool | exportTextures () const |
Returns whether the textures will be exported. | |
void | parseTerrain (QgsTerrainEntity *terrain, const QString &layer) |
Creates terrain export objects from the terrain entity. | |
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. | |
bool | save (const QString &sceneName, const QString &sceneFolderPath, int precision=6) |
Saves the scene to a .obj file Returns false if the operation failed. | |
float | scale () const |
Returns the scale of the exported 3D model. | |
void | setExportNormals (bool exportNormals) |
Sets whether the normals will be exported. | |
void | setExportTextures (bool exportTextures) |
Sets whether the textures will be exported. | |
void | setScale (float scale) |
Sets the scale of the exported 3D model. | |
void | setSmoothEdges (bool smoothEdges) |
Sets whether the triangles will look smooth. | |
void | setTerrainResolution (int resolution) |
Sets the terrain resolution. | |
void | setTerrainTextureResolution (int resolution) |
Sets the terrain texture resolution. | |
bool | smoothEdges () const |
Returns whether the triangles will look smooth. | |
int | terrainResolution () const |
Returns the terrain resolution. | |
int | terrainTextureResolution () const |
Returns the terrain resolution. | |
Entity that handles the exporting of 3D scene.
3
Definition at line 57 of file qgs3dsceneexporter.h.
|
inline |
Definition at line 62 of file qgs3dsceneexporter.h.
|
inline |
Definition at line 64 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the normals will be exported.
Definition at line 93 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the textures will be exported.
Definition at line 98 of file qgs3dsceneexporter.h.
void Qgs3DSceneExporter::parseTerrain | ( | QgsTerrainEntity * | terrain, |
const QString & | layer | ||
) |
Creates terrain export objects from the terrain entity.
Definition at line 269 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 192 of file qgs3dsceneexporter.cpp.
bool Qgs3DSceneExporter::save | ( | const QString & | sceneName, |
const QString & | sceneFolderPath, | ||
int | precision = 6 |
||
) |
Saves the scene to a .obj file Returns false
if the operation failed.
Definition at line 811 of file qgs3dsceneexporter.cpp.
|
inline |
Returns the scale of the exported 3D model.
Definition at line 112 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the normals will be exported.
Definition at line 91 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the textures will be exported.
Definition at line 96 of file qgs3dsceneexporter.h.
|
inline |
Sets the scale of the exported 3D model.
Definition at line 110 of file qgs3dsceneexporter.h.
|
inline |
Sets whether the triangles will look smooth.
Definition at line 86 of file qgs3dsceneexporter.h.
|
inline |
Sets the terrain resolution.
Definition at line 101 of file qgs3dsceneexporter.h.
|
inline |
Sets the terrain texture resolution.
Definition at line 106 of file qgs3dsceneexporter.h.
|
inline |
Returns whether the triangles will look smooth.
Definition at line 88 of file qgs3dsceneexporter.h.
|
inline |
Returns the terrain resolution.
Definition at line 103 of file qgs3dsceneexporter.h.
|
inline |
Returns the terrain resolution.
Definition at line 108 of file qgs3dsceneexporter.h.