mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			110 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			110 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * 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   *
 | 
						|
 ************************************************************************/
 |