Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[3d] Abstract out material settings
Opens the possibilities for non-phong based materials for 3d symbols
- Loading branch information
1 parent
a345ae9
commit f2e4ac6
Showing
52 changed files
with
840 additions
and
389 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
108 changes: 108 additions & 0 deletions
108
python/3d/auto_generated/qgsabstractmaterialsettings.sip.in
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,108 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgsabstractmaterialsettings.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsMaterialContext | ||
{ | ||
%Docstring | ||
Context settings for a material. | ||
|
||
.. warning:: | ||
|
||
This is not considered stable API, and may change in future QGIS releases. It is | ||
exposed to the Python bindings as a tech preview only. | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsabstractmaterialsettings.h" | ||
%End | ||
public: | ||
|
||
bool isSelected() const; | ||
%Docstring | ||
Returns ``True`` if the material should represent a selected state. | ||
|
||
.. seealso:: :py:func:`setIsSelected` | ||
%End | ||
|
||
void setIsSelected( bool isSelected ); | ||
%Docstring | ||
Sets whether the material should represent a selected state. | ||
|
||
.. seealso:: :py:func:`isSelected` | ||
%End | ||
|
||
QColor selectionColor() const; | ||
%Docstring | ||
Returns the color for representing materials in a selected state. | ||
|
||
.. seealso:: :py:func:`setSelectionColor` | ||
%End | ||
|
||
void setSelectionColor( const QColor &color ); | ||
%Docstring | ||
Sets the color for representing materials in a selected state. | ||
|
||
.. seealso:: :py:func:`selectionColor` | ||
%End | ||
|
||
}; | ||
|
||
class QgsAbstractMaterialSettings /Abstract/ | ||
{ | ||
%Docstring | ||
Abstract base class for material settings. | ||
|
||
.. warning:: | ||
|
||
This is not considered stable API, and may change in future QGIS releases. It is | ||
exposed to the Python bindings as a tech preview only. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsabstractmaterialsettings.h" | ||
%End | ||
public: | ||
|
||
virtual ~QgsAbstractMaterialSettings(); | ||
|
||
virtual QgsAbstractMaterialSettings *clone() const = 0 /Factory/; | ||
%Docstring | ||
Clones the material settings. | ||
|
||
Caller takes ownership of the returned object. | ||
%End | ||
|
||
virtual void readXml( const QDomElement &element, const QgsReadWriteContext &context ) = 0; | ||
%Docstring | ||
Reads settings from a DOM ``element`` | ||
%End | ||
|
||
virtual void writeXml( QDomElement &element, const QgsReadWriteContext &context ) const = 0; | ||
%Docstring | ||
Writes settings to a DOM ``element`` | ||
%End | ||
|
||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgsabstractmaterialsettings.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
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.