-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] QGIS 3D (pull request #5203)
- Loading branch information
Showing
149 changed files
with
15,116 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/./3d/qgs3drendererregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class Qgs3DRendererAbstractMetadata | ||
{ | ||
%Docstring | ||
Base metadata class for 3D renderers. Instances of derived classes may be registered in Qgs3DRendererRegistry. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgs3drendererregistry.h" | ||
%End | ||
public: | ||
|
||
virtual ~Qgs3DRendererAbstractMetadata(); | ||
|
||
QString type() const; | ||
%Docstring | ||
Returns unique identifier of the 3D renderer class | ||
:rtype: str | ||
%End | ||
|
||
virtual QgsAbstract3DRenderer *createRenderer( QDomElement &elem, const QgsReadWriteContext &context ) = 0 /Factory/; | ||
%Docstring | ||
Returns new instance of the renderer given the DOM element. Returns NULL on error. | ||
Pure virtual function: must be implemented in derived classes. | ||
:rtype: QgsAbstract3DRenderer | ||
%End | ||
|
||
protected: | ||
|
||
explicit Qgs3DRendererAbstractMetadata( const QString &type ); | ||
%Docstring | ||
Constructor of the base class | ||
%End | ||
|
||
protected: | ||
}; | ||
|
||
|
||
class Qgs3DRendererRegistry | ||
{ | ||
%Docstring | ||
Keeps track of available 3D renderers. Should be accessed through QgsApplication.renderer3DRegistry() singleton. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgs3drendererregistry.h" | ||
%End | ||
public: | ||
Qgs3DRendererRegistry(); | ||
%Docstring | ||
Creates registry of 3D renderers | ||
%End | ||
|
||
~Qgs3DRendererRegistry(); | ||
|
||
void addRenderer( Qgs3DRendererAbstractMetadata *metadata /Transfer/ ); | ||
%Docstring | ||
Registers a new 3D renderer type. The call takes ownership of the passed metadata object. | ||
%End | ||
|
||
void removeRenderer( const QString &type ); | ||
%Docstring | ||
Unregisters a 3D renderer type | ||
%End | ||
|
||
Qgs3DRendererAbstractMetadata *rendererMetadata( const QString &type ) const; | ||
%Docstring | ||
Returns metadata for a 3D renderer type (may be used to create a new instance of the type) | ||
:rtype: Qgs3DRendererAbstractMetadata | ||
%End | ||
|
||
QStringList renderersList() const; | ||
%Docstring | ||
Returns a list of all available 3D renderer types. | ||
:rtype: list of str | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/./3d/qgs3drendererregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/./3d/qgsabstract3drenderer.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsAbstract3DRenderer /Abstract/ | ||
{ | ||
%Docstring | ||
Base class for all renderers that may to participate in 3D view. | ||
|
||
3D renderers implement the method createEntity() that returns a new 3D entity - that entity | ||
will be added to the 3D scene to represent data in renderer's display style. | ||
|
||
Renderers may store some custom properties (e.g. materials, sizes) that are written to and read from | ||
XML. It is therefore not recommended to store large amount of data within a renderer (e.g. arrays of vertices). | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsabstract3drenderer.h" | ||
%End | ||
public: | ||
virtual ~QgsAbstract3DRenderer(); | ||
|
||
virtual QString type() const = 0; | ||
%Docstring | ||
Returns unique identifier of the renderer class (used to identify subclass) | ||
:rtype: str | ||
%End | ||
virtual QgsAbstract3DRenderer *clone() const = 0 /Factory/; | ||
%Docstring | ||
Returns a cloned instance | ||
:rtype: QgsAbstract3DRenderer | ||
%End | ||
|
||
virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const = 0; | ||
%Docstring | ||
Writes renderer's properties to given XML element | ||
%End | ||
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context ) = 0; | ||
%Docstring | ||
Reads renderer's properties from given XML element | ||
%End | ||
virtual void resolveReferences( const QgsProject &project ); | ||
%Docstring | ||
Resolves references to other objects - second phase of loading - after readXml() | ||
%End | ||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/./3d/qgsabstract3drenderer.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.