forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 9
/
qgs3dsceneexporter.sip.in
109 lines (92 loc) · 2.97 KB
/
qgs3dsceneexporter.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgs3dsceneexporter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class Qgs3DSceneExporter : Qt3DCore::QEntity
{
%Docstring
The Qgs3DSceneExporter class
Entity that handles the exporting of 3D scene
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgs3dsceneexporter.h"
%End
public:
Qgs3DSceneExporter();
%Docstring
Constructor
%End
~Qgs3DSceneExporter();
bool parseVectorLayerEntity( Qt3DCore::QEntity *entity, QgsVectorLayer *layer );
%Docstring
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
%End
void parseTerrain( QgsTerrainEntity *terrain, const QString &layer );
%Docstring
Creates terrain export objects from the terrain entity
%End
void save( const QString &sceneName, const QString &sceneFolderPath );
%Docstring
Saves the scene to a .obj file
%End
void setSmoothEdges( bool smoothEdges );
%Docstring
Sets whether the triangles will look smooth
%End
bool smoothEdges() const;
%Docstring
Returns whether the triangles will look smooth
%End
void setExportNormals( bool exportNormals );
%Docstring
Sets whether the normals will be exported
%End
bool exportNormals() const;
%Docstring
Returns whether the normals will be exported
%End
void setExportTextures( bool exportTextures );
%Docstring
Sets whether the textures will be exported
%End
bool exportTextures() const;
%Docstring
Returns whether the textures will be exported
%End
void setTerrainResolution( int resolution );
%Docstring
Sets the terrain resolution
%End
int terrainResolution() const;
%Docstring
Returns the terrain resolution
%End
void setTerrainTextureResolution( int resolution );
%Docstring
Sets the terrain texture resolution
%End
int terrainTextureResolution() const;
%Docstring
Returns the terrain resolution
%End
void setScale( float scale );
%Docstring
Sets the scale of the exported 3D model
%End
float scale() const;
%Docstring
Returns the scale of the exported 3D model
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgs3dsceneexporter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/