Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split simple line material out from phong material
- Loading branch information
1 parent
c87a8f6
commit 4d55185
Showing
18 changed files
with
628 additions
and
14 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
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
85 changes: 85 additions & 0 deletions
85
python/3d/auto_generated/materials/qgssimplelinematerialsettings.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,85 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/materials/qgssimplelinematerialsettings.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsSimpleLineMaterialSettings : QgsAbstractMaterialSettings | ||
{ | ||
%Docstring | ||
Basic shading material used for rendering simple lines as solid line components. | ||
|
||
.. 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 "qgssimplelinematerialsettings.h" | ||
%End | ||
public: | ||
|
||
QgsSimpleLineMaterialSettings(); | ||
%Docstring | ||
Constructor for QgsSimpleLineMaterialSettings. | ||
%End | ||
|
||
virtual QString type() const; | ||
|
||
|
||
static bool supportsTechnique( QgsMaterialSettingsRenderingTechnique technique ); | ||
%Docstring | ||
Returns ``True`` if the specified ``technique`` is suppored by the material. | ||
%End | ||
|
||
static QgsAbstractMaterialSettings *create() /Factory/; | ||
%Docstring | ||
Returns a new instance of QgsSimpleLineMaterialSettings. | ||
%End | ||
|
||
virtual QgsSimpleLineMaterialSettings *clone() const /Factory/; | ||
|
||
|
||
QColor ambient() const; | ||
%Docstring | ||
Returns the ambient color component. | ||
|
||
.. seealso:: :py:func:`setAmbient` | ||
%End | ||
|
||
void setAmbient( const QColor &ambient ); | ||
%Docstring | ||
Sets the ``ambient`` color component. | ||
|
||
.. seealso:: :py:func:`ambient` | ||
%End | ||
|
||
virtual QMap<QString, QString> toExportParameters() const; | ||
|
||
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context ); | ||
|
||
virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const; | ||
|
||
|
||
bool operator==( const QgsSimpleLineMaterialSettings &other ) const; | ||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/materials/qgssimplelinematerialsettings.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,106 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgs3dmapexportsettings.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class Qgs3DMapExportSettings | ||
{ | ||
%Docstring | ||
The Qgs3DMapExportSettings class | ||
Manages the various settings the user can choose from when exporting a 3D scene | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgs3dmapexportsettings.h" | ||
%End | ||
public: | ||
Qgs3DMapExportSettings(); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
~Qgs3DMapExportSettings(); | ||
|
||
QString sceneName() const; | ||
%Docstring | ||
Returns the scene name | ||
%End | ||
QString sceneFolderPath() const; | ||
%Docstring | ||
Returns the scene folder path | ||
%End | ||
int terrrainResolution() const; | ||
%Docstring | ||
Returns the terrain resolution | ||
%End | ||
bool smoothEdges() const; | ||
%Docstring | ||
Returns whether triangles edges will look smooth | ||
%End | ||
bool exportNormals() const; | ||
%Docstring | ||
Returns whether normals will be exported | ||
%End | ||
bool exportTextures() const; | ||
%Docstring | ||
Returns whether textures will be exported | ||
%End | ||
int terrainTextureResolution() const; | ||
%Docstring | ||
Returns the terrain texture resolution | ||
%End | ||
float scale() const; | ||
%Docstring | ||
Returns the scale of the exported model | ||
%End | ||
|
||
void setSceneName( const QString &sceneName ); | ||
%Docstring | ||
Sets the scene name | ||
%End | ||
void setSceneFolderPath( const QString &sceneFolderPath ); | ||
%Docstring | ||
Sets the scene's .obj file folder path | ||
%End | ||
void setTerrainResolution( int resolution ); | ||
%Docstring | ||
Sets the terrain resolution | ||
%End | ||
void setSmoothEdges( bool smoothEdges ); | ||
%Docstring | ||
Sets whether triangles edges will look smooth | ||
%End | ||
void setExportNormals( bool exportNormals ); | ||
%Docstring | ||
Sets whether normals should be exported | ||
%End | ||
void setExportTextures( bool exportTextures ); | ||
%Docstring | ||
Sets whether textures will be exported | ||
%End | ||
void setTerrainTextureResolution( int resolution ); | ||
%Docstring | ||
Sets the terrain texture resolution | ||
%End | ||
void setScale( float scale ); | ||
%Docstring | ||
Sets the scale of exported model | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgs3dmapexportsettings.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.