mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Remove orphaned sip files
These headers are marked SIP_NO_FILE, these files are not referenced anywhere
This commit is contained in:
parent
cda4105230
commit
774ad87251
@ -1,137 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgs3dexportobject.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Qgs3DExportObject
|
||||
{
|
||||
%Docstring
|
||||
The Qgs3DExportObject class
|
||||
Manages the data of each object of the scene (positions, normals, texture coordinates ...) since each object
|
||||
|
||||
.. note::
|
||||
|
||||
Not available in Python bindings
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgs3dexportobject.h"
|
||||
%End
|
||||
public:
|
||||
enum ObjectType
|
||||
{
|
||||
TriangularFaces,
|
||||
LineStrip,
|
||||
Points
|
||||
};
|
||||
|
||||
Qgs3DExportObject( const QString &name );
|
||||
%Docstring
|
||||
Qgs3DExportObject
|
||||
Constructs an export object that will be filled with coordinates later
|
||||
|
||||
:param parentName:
|
||||
The name of the parent (Will be useful to define scene hierarchy)
|
||||
:param parent:
|
||||
The parent QObject (we use this to delete the Qgs3DExportObject instance once the exporter instance is deallocated)
|
||||
%End
|
||||
|
||||
QString name() const;
|
||||
%Docstring
|
||||
Returns the object name
|
||||
%End
|
||||
void setName( const QString &name );
|
||||
%Docstring
|
||||
Sets the object name
|
||||
%End
|
||||
|
||||
ObjectType type() const;
|
||||
%Docstring
|
||||
Returns the object type
|
||||
%End
|
||||
void setType( ObjectType type );
|
||||
%Docstring
|
||||
Sets the object type
|
||||
%End
|
||||
|
||||
bool smoothEdges();
|
||||
%Docstring
|
||||
Returns whether object edges will look smooth
|
||||
%End
|
||||
void setSmoothEdges( bool smoothEdges );
|
||||
%Docstring
|
||||
Sets whether triangles edges will look smooth
|
||||
%End
|
||||
|
||||
void setupPositionCoordinates( const QVector<float> &positionsBuffer, float scale = 1.0f, const QVector3D &translation = QVector3D( 0, 0, 0 ) );
|
||||
%Docstring
|
||||
Sets positions coordinates and does the translation and scaling
|
||||
%End
|
||||
void setupFaces( const QVector<uint> &facesIndexes );
|
||||
%Docstring
|
||||
Sets the faces in facesIndexes to the faces in the object
|
||||
%End
|
||||
void setupLine( const QVector<uint> &facesIndexes );
|
||||
%Docstring
|
||||
sets line vertex indexes
|
||||
%End
|
||||
|
||||
void setupNormalCoordinates( const QVector<float> &normalsBuffer );
|
||||
%Docstring
|
||||
Sets normal coordinates for each vertex
|
||||
%End
|
||||
void setupTextureCoordinates( const QVector<float> &texturesBuffer );
|
||||
%Docstring
|
||||
Sets texture coordinates for each vertex
|
||||
%End
|
||||
void setupMaterial( QgsAbstractMaterialSettings *material );
|
||||
%Docstring
|
||||
Sets the material parameters (diffuse color, shininess...) from phong material
|
||||
%End
|
||||
|
||||
void setTextureImage( const QImage &image );
|
||||
%Docstring
|
||||
Sets the texture image used by the object
|
||||
%End
|
||||
QImage textureImage();
|
||||
|
||||
void objectBounds( float &minX, float &minY, float &minZ, float &maxX, float &maxY, float &maxZ );
|
||||
%Docstring
|
||||
|
||||
Updates the box bounds explained with the current object bounds
|
||||
This expands the bounding box if the current object outside the bounds of the already established bounds
|
||||
%End
|
||||
|
||||
void setMaterialParameter( const QString ¶meter, const QString &value );
|
||||
%Docstring
|
||||
Sets a material parameter to be exported in the .mtl file
|
||||
%End
|
||||
|
||||
void saveTo( QTextStream &out, float scale, const QVector3D ¢er );
|
||||
%Docstring
|
||||
Saves the current object to the output stream while scaling the object and centering it to be visible in exported scene
|
||||
%End
|
||||
QString saveMaterial( QTextStream &mtlOut, const QString &folder );
|
||||
%Docstring
|
||||
saves the texture of the object and material information
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgs3dexportobject.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,109 +0,0 @@
|
||||
/************************************************************************
|
||||
* 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 *
|
||||
************************************************************************/
|
||||
@ -1,22 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgscolorramptexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgscolorramptexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,48 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsimagetexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsImageTexture : Qt3DRender::QPaintedTextureImage
|
||||
{
|
||||
%Docstring
|
||||
The QgsImageTexture class
|
||||
Holds an image that can be used as a texture in the 3D view
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsimagetexture.h"
|
||||
%End
|
||||
public:
|
||||
QgsImageTexture( const QImage &image, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void paint( QPainter *painter );
|
||||
%Docstring
|
||||
paints on the current QImage using painter
|
||||
%End
|
||||
|
||||
QImage getImage() const;
|
||||
%Docstring
|
||||
Returns the image
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsimagetexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,108 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxentity.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSkyboxEntity : Qt3DCore::QEntity
|
||||
{
|
||||
%Docstring
|
||||
base class for all skybox types
|
||||
It holds the commun member data between different skybox entity types
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
enum SkyboxType
|
||||
{
|
||||
HDRSkybox,
|
||||
TexturesCollectionSkybox,
|
||||
DistinctTexturesSkybox
|
||||
};
|
||||
public:
|
||||
QgsSkyboxEntity( QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual SkyboxType type() const = 0;
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
class QgsHDRSkyboxEntity : QgsSkyboxEntity
|
||||
{
|
||||
%Docstring
|
||||
a skybox constructed from a 360 HDR image
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
QgsHDRSkyboxEntity( const QString &hdrTexturePath, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Construct a skybox from a high resolution 360 image
|
||||
%End
|
||||
|
||||
QString hdrTexturePath() const;
|
||||
%Docstring
|
||||
Returns the path of the current texture in use
|
||||
%End
|
||||
virtual SkyboxType type() const;
|
||||
%Docstring
|
||||
Returns the type of the current skybox
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsCubeFacesSkyboxEntity : QgsSkyboxEntity
|
||||
{
|
||||
%Docstring
|
||||
a skybox constructed from a 6 cube faces
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
QgsCubeFacesSkyboxEntity( const QString &posX, const QString &posY, const QString &posZ, const QString &negX, const QString &negY, const QString &negZ, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructs a skybox from 6 different images
|
||||
%End
|
||||
|
||||
QgsCubeFacesSkyboxEntity( const QString &baseName, const QString &extension, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructs a skybox from a collection of images
|
||||
The images in the source directory should match the pattern:
|
||||
baseName + * "_posx|_posy|_posz|_negx|_negy|_negz" + extension
|
||||
%End
|
||||
|
||||
virtual SkyboxType type() const;
|
||||
%Docstring
|
||||
Returns the type of the current skybox
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxentity.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,100 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxsettings.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSkyboxSettings
|
||||
{
|
||||
%Docstring
|
||||
class containing the configuration of a skybox entity
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxsettings.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
void readXml( const QDomElement &element, const QgsReadWriteContext &context );
|
||||
%Docstring
|
||||
Reads settings from a DOM ``element``
|
||||
%End
|
||||
void writeXml( QDomElement &element, const QgsReadWriteContext &context ) const;
|
||||
%Docstring
|
||||
Writes settings to a DOM ``element``
|
||||
%End
|
||||
|
||||
bool isSkyboxEnabled() const;
|
||||
%Docstring
|
||||
Returns whether the skybox is enabled
|
||||
%End
|
||||
void setIsSkyboxEnabled( bool enabled );
|
||||
%Docstring
|
||||
Sets whether the skybox is enabled
|
||||
%End
|
||||
|
||||
QgsSkyboxEntity::SkyboxType skyboxType() const;
|
||||
%Docstring
|
||||
Returns the type of the skybox
|
||||
%End
|
||||
void setSkyboxType( QgsSkyboxEntity::SkyboxType type );
|
||||
%Docstring
|
||||
Sets the type of the skybox
|
||||
%End
|
||||
|
||||
QString skyboxBaseName() const;
|
||||
%Docstring
|
||||
Returns the base name of a skybox of type "Textures collection"
|
||||
%End
|
||||
void setSkyboxBaseName( const QString &baseName );
|
||||
%Docstring
|
||||
Sets the base name of a skybox of type "Textures collection"
|
||||
%End
|
||||
|
||||
QString skyboxExtension() const;
|
||||
%Docstring
|
||||
Returns the extension of a skybox of type "Textures collection"
|
||||
%End
|
||||
void setSkyboxExtension( const QString &extension );
|
||||
%Docstring
|
||||
Sets the extension of a skybox of type "Textures collection"
|
||||
%End
|
||||
|
||||
QString hdrTexturePath() const;
|
||||
%Docstring
|
||||
Returns the HDR texture path of a skybox of type "HDR texture"
|
||||
%End
|
||||
void setHdrTexturePath( const QString &texturePath );
|
||||
%Docstring
|
||||
Sets the HDR texture path of a skybox of type "HDR texture"
|
||||
%End
|
||||
|
||||
QMap<QString, QString> cubeMapFacesPaths() const;
|
||||
%Docstring
|
||||
Returns a map containing the path of each texture specified by the user.
|
||||
The map will contain the following keys corresponding to each face "posX", "posY", "posZ", "negX", "negY", "negZ".
|
||||
%End
|
||||
|
||||
void setCubeMapFace( const QString &face, const QString &path );
|
||||
%Docstring
|
||||
Sets a face of one of the skybox 6 textures
|
||||
The face parameter needs to be one of the followings: "posX", "posY", "posZ", "negX", "negY", "negZ"
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxsettings.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,22 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,137 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgs3dexportobject.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Qgs3DExportObject
|
||||
{
|
||||
%Docstring
|
||||
The Qgs3DExportObject class
|
||||
Manages the data of each object of the scene (positions, normals, texture coordinates ...) since each object
|
||||
|
||||
.. note::
|
||||
|
||||
Not available in Python bindings
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgs3dexportobject.h"
|
||||
%End
|
||||
public:
|
||||
enum ObjectType
|
||||
{
|
||||
TriangularFaces,
|
||||
LineStrip,
|
||||
Points
|
||||
};
|
||||
|
||||
Qgs3DExportObject( const QString &name );
|
||||
%Docstring
|
||||
Qgs3DExportObject
|
||||
Constructs an export object that will be filled with coordinates later
|
||||
|
||||
:param parentName:
|
||||
The name of the parent (Will be useful to define scene hierarchy)
|
||||
:param parent:
|
||||
The parent QObject (we use this to delete the Qgs3DExportObject instance once the exporter instance is deallocated)
|
||||
%End
|
||||
|
||||
QString name() const;
|
||||
%Docstring
|
||||
Returns the object name
|
||||
%End
|
||||
void setName( const QString &name );
|
||||
%Docstring
|
||||
Sets the object name
|
||||
%End
|
||||
|
||||
ObjectType type() const;
|
||||
%Docstring
|
||||
Returns the object type
|
||||
%End
|
||||
void setType( ObjectType type );
|
||||
%Docstring
|
||||
Sets the object type
|
||||
%End
|
||||
|
||||
bool smoothEdges();
|
||||
%Docstring
|
||||
Returns whether object edges will look smooth
|
||||
%End
|
||||
void setSmoothEdges( bool smoothEdges );
|
||||
%Docstring
|
||||
Sets whether triangles edges will look smooth
|
||||
%End
|
||||
|
||||
void setupPositionCoordinates( const QVector<float> &positionsBuffer, float scale = 1.0f, const QVector3D &translation = QVector3D( 0, 0, 0 ) );
|
||||
%Docstring
|
||||
Sets positions coordinates and does the translation and scaling
|
||||
%End
|
||||
void setupFaces( const QVector<uint> &facesIndexes );
|
||||
%Docstring
|
||||
Sets the faces in facesIndexes to the faces in the object
|
||||
%End
|
||||
void setupLine( const QVector<uint> &facesIndexes );
|
||||
%Docstring
|
||||
sets line vertex indexes
|
||||
%End
|
||||
|
||||
void setupNormalCoordinates( const QVector<float> &normalsBuffer );
|
||||
%Docstring
|
||||
Sets normal coordinates for each vertex
|
||||
%End
|
||||
void setupTextureCoordinates( const QVector<float> &texturesBuffer );
|
||||
%Docstring
|
||||
Sets texture coordinates for each vertex
|
||||
%End
|
||||
void setupMaterial( QgsAbstractMaterialSettings *material );
|
||||
%Docstring
|
||||
Sets the material parameters (diffuse color, shininess...) from phong material
|
||||
%End
|
||||
|
||||
void setTextureImage( const QImage &image );
|
||||
%Docstring
|
||||
Sets the texture image used by the object
|
||||
%End
|
||||
QImage textureImage();
|
||||
|
||||
void objectBounds( float &minX, float &minY, float &minZ, float &maxX, float &maxY, float &maxZ );
|
||||
%Docstring
|
||||
|
||||
Updates the box bounds explained with the current object bounds
|
||||
This expands the bounding box if the current object outside the bounds of the already established bounds
|
||||
%End
|
||||
|
||||
void setMaterialParameter( const QString ¶meter, const QString &value );
|
||||
%Docstring
|
||||
Sets a material parameter to be exported in the .mtl file
|
||||
%End
|
||||
|
||||
void saveTo( QTextStream &out, float scale, const QVector3D ¢er );
|
||||
%Docstring
|
||||
Saves the current object to the output stream while scaling the object and centering it to be visible in exported scene
|
||||
%End
|
||||
QString saveMaterial( QTextStream &mtlOut, const QString &folder );
|
||||
%Docstring
|
||||
saves the texture of the object and material information
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgs3dexportobject.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,109 +0,0 @@
|
||||
/************************************************************************
|
||||
* 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 *
|
||||
************************************************************************/
|
||||
@ -1,22 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgscolorramptexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgscolorramptexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,48 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsimagetexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsImageTexture : Qt3DRender::QPaintedTextureImage
|
||||
{
|
||||
%Docstring
|
||||
The QgsImageTexture class
|
||||
Holds an image that can be used as a texture in the 3D view
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsimagetexture.h"
|
||||
%End
|
||||
public:
|
||||
QgsImageTexture( const QImage &image, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void paint( QPainter *painter );
|
||||
%Docstring
|
||||
paints on the current QImage using painter
|
||||
%End
|
||||
|
||||
QImage getImage() const;
|
||||
%Docstring
|
||||
Returns the image
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsimagetexture.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,108 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxentity.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSkyboxEntity : Qt3DCore::QEntity
|
||||
{
|
||||
%Docstring
|
||||
base class for all skybox types
|
||||
It holds the commun member data between different skybox entity types
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
enum SkyboxType
|
||||
{
|
||||
HDRSkybox,
|
||||
TexturesCollectionSkybox,
|
||||
DistinctTexturesSkybox
|
||||
};
|
||||
public:
|
||||
QgsSkyboxEntity( QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual SkyboxType type() const = 0;
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
class QgsHDRSkyboxEntity : QgsSkyboxEntity
|
||||
{
|
||||
%Docstring
|
||||
a skybox constructed from a 360 HDR image
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
QgsHDRSkyboxEntity( const QString &hdrTexturePath, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Construct a skybox from a high resolution 360 image
|
||||
%End
|
||||
|
||||
QString hdrTexturePath() const;
|
||||
%Docstring
|
||||
Returns the path of the current texture in use
|
||||
%End
|
||||
virtual SkyboxType type() const;
|
||||
%Docstring
|
||||
Returns the type of the current skybox
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsCubeFacesSkyboxEntity : QgsSkyboxEntity
|
||||
{
|
||||
%Docstring
|
||||
a skybox constructed from a 6 cube faces
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxentity.h"
|
||||
%End
|
||||
public:
|
||||
QgsCubeFacesSkyboxEntity( const QString &posX, const QString &posY, const QString &posZ, const QString &negX, const QString &negY, const QString &negZ, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructs a skybox from 6 different images
|
||||
%End
|
||||
|
||||
QgsCubeFacesSkyboxEntity( const QString &baseName, const QString &extension, Qt3DCore::QNode *parent = 0 );
|
||||
%Docstring
|
||||
Constructs a skybox from a collection of images
|
||||
The images in the source directory should match the pattern:
|
||||
baseName + * "_posx|_posy|_posz|_negx|_negy|_negz" + extension
|
||||
%End
|
||||
|
||||
virtual SkyboxType type() const;
|
||||
%Docstring
|
||||
Returns the type of the current skybox
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxentity.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,100 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxsettings.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSkyboxSettings
|
||||
{
|
||||
%Docstring
|
||||
class containing the configuration of a skybox entity
|
||||
|
||||
.. versionadded:: 3.16
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsskyboxsettings.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
void readXml( const QDomElement &element, const QgsReadWriteContext &context );
|
||||
%Docstring
|
||||
Reads settings from a DOM ``element``
|
||||
%End
|
||||
void writeXml( QDomElement &element, const QgsReadWriteContext &context ) const;
|
||||
%Docstring
|
||||
Writes settings to a DOM ``element``
|
||||
%End
|
||||
|
||||
bool isSkyboxEnabled() const;
|
||||
%Docstring
|
||||
Returns whether the skybox is enabled
|
||||
%End
|
||||
void setIsSkyboxEnabled( bool enabled );
|
||||
%Docstring
|
||||
Sets whether the skybox is enabled
|
||||
%End
|
||||
|
||||
QgsSkyboxEntity::SkyboxType skyboxType() const;
|
||||
%Docstring
|
||||
Returns the type of the skybox
|
||||
%End
|
||||
void setSkyboxType( QgsSkyboxEntity::SkyboxType type );
|
||||
%Docstring
|
||||
Sets the type of the skybox
|
||||
%End
|
||||
|
||||
QString skyboxBaseName() const;
|
||||
%Docstring
|
||||
Returns the base name of a skybox of type "Textures collection"
|
||||
%End
|
||||
void setSkyboxBaseName( const QString &baseName );
|
||||
%Docstring
|
||||
Sets the base name of a skybox of type "Textures collection"
|
||||
%End
|
||||
|
||||
QString skyboxExtension() const;
|
||||
%Docstring
|
||||
Returns the extension of a skybox of type "Textures collection"
|
||||
%End
|
||||
void setSkyboxExtension( const QString &extension );
|
||||
%Docstring
|
||||
Sets the extension of a skybox of type "Textures collection"
|
||||
%End
|
||||
|
||||
QString hdrTexturePath() const;
|
||||
%Docstring
|
||||
Returns the HDR texture path of a skybox of type "HDR texture"
|
||||
%End
|
||||
void setHdrTexturePath( const QString &texturePath );
|
||||
%Docstring
|
||||
Sets the HDR texture path of a skybox of type "HDR texture"
|
||||
%End
|
||||
|
||||
QMap<QString, QString> cubeMapFacesPaths() const;
|
||||
%Docstring
|
||||
Returns a map containing the path of each texture specified by the user.
|
||||
The map will contain the following keys corresponding to each face "posX", "posY", "posZ", "negX", "negY", "negZ".
|
||||
%End
|
||||
|
||||
void setCubeMapFace( const QString &face, const QString &path );
|
||||
%Docstring
|
||||
Sets a face of one of the skybox 6 textures
|
||||
The face parameter needs to be one of the followings: "posX", "posY", "posZ", "negX", "negY", "negZ"
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/qgsskyboxsettings.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
@ -1,22 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
Loading…
x
Reference in New Issue
Block a user