Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into skybox-feature
- Loading branch information
Showing
142 changed files
with
3,952 additions
and
378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgsmaterialregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsMaterialSettingsWidget /External/; | ||
|
||
class QgsMaterialSettingsAbstractMetadata | ||
{ | ||
%Docstring | ||
Stores metadata about one 3D material settings class. | ||
|
||
.. note:: | ||
|
||
It's necessary to implement :py:func:`~createMaterialSettings` function. | ||
In C++ you can use QgsMaterialSettingsMetadata convenience class. | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmaterialregistry.h" | ||
%End | ||
public: | ||
|
||
QgsMaterialSettingsAbstractMetadata( const QString &type, const QString &visibleName ); | ||
%Docstring | ||
Constructor for QgsMaterialSettingsAbstractMetadata, with the specified ``type`` and ``visibleName``. | ||
%End | ||
|
||
virtual ~QgsMaterialSettingsAbstractMetadata(); | ||
|
||
QString type() const; | ||
%Docstring | ||
Returns the unique material type string. | ||
%End | ||
|
||
QString visibleName() const; | ||
%Docstring | ||
Returns the material's visible (translated) name. | ||
%End | ||
|
||
virtual QgsAbstractMaterialSettings *create() = 0 /Factory/; | ||
%Docstring | ||
Creates a new instance of this material settings type. | ||
|
||
Caller takes ownership of the returned object. | ||
%End | ||
|
||
|
||
}; | ||
|
||
|
||
|
||
|
||
|
||
class QgsMaterialRegistry | ||
{ | ||
%Docstring | ||
Registry of available 3d material settings classes. | ||
|
||
QgsMaterialRegistry is not usually directly created, but rather accessed through | ||
Qgs3D.materialRegistry(). | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmaterialregistry.h" | ||
%End | ||
public: | ||
|
||
QgsMaterialRegistry(); | ||
~QgsMaterialRegistry(); | ||
|
||
|
||
QgsMaterialSettingsAbstractMetadata *materialSettingsMetadata( const QString &type ) const; | ||
%Docstring | ||
Returns metadata for specified material settings ``type``. Returns ``None`` if not found | ||
%End | ||
|
||
QStringList materialSettingsTypes() const; | ||
%Docstring | ||
Returns a list of all available material settings types. | ||
%End | ||
|
||
bool addMaterialSettingsType( QgsMaterialSettingsAbstractMetadata *metadata /Transfer/ ); | ||
%Docstring | ||
Registers a new material settings type. Takes ownership of the ``metadata`` instance. | ||
%End | ||
|
||
QgsAbstractMaterialSettings *createMaterialSettings( const QString &type ) const /Factory/; | ||
%Docstring | ||
Creates a new instance of the material settings of the specified ``type``. | ||
|
||
The caller takes ownership of the returned object. | ||
|
||
Returns ``None`` if the specified type is not found in the registry. | ||
%End | ||
|
||
private: | ||
QgsMaterialRegistry( const QgsMaterialRegistry &rh ); | ||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgsmaterialregistry.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
Oops, something went wrong.