Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move altitude binding/clamping enums to Qgs3DTypes + add culling mode…
… in Python
- Loading branch information
Showing
23 changed files
with
214 additions
and
163 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
52 changes: 33 additions & 19 deletions
52
python/3d/auto_generated/qgs3dutils.sip.in → python/3d/auto_generated/qgs3dtypes.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 |
---|---|---|
@@ -1,37 +1,51 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgs3dutils.h * | ||
* src/3d/qgs3dtypes.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
enum AltitudeClamping | ||
{ | ||
AltClampAbsolute, | ||
AltClampRelative, | ||
AltClampTerrain, | ||
}; | ||
|
||
|
||
enum AltitudeBinding | ||
class Qgs3DTypes | ||
{ | ||
AltBindVertex, | ||
AltBindCentroid, | ||
%Docstring | ||
Defines enumerations and other auxilliary types for QGIS 3D | ||
|
||
.. versionadded:: 3.4 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgs3dtypes.h" | ||
%End | ||
public: | ||
enum AltitudeClamping | ||
{ | ||
AltClampAbsolute, | ||
AltClampRelative, | ||
AltClampTerrain, | ||
}; | ||
|
||
enum AltitudeBinding | ||
{ | ||
AltBindVertex, | ||
AltBindCentroid, | ||
}; | ||
|
||
enum CullingMode | ||
{ | ||
NoCulling, | ||
Front, | ||
Back, | ||
FrontAndBack | ||
}; | ||
}; | ||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/3d/qgs3dutils.h * | ||
* src/3d/qgs3dtypes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*************************************************************************** | ||
qgs3dtypes.h | ||
-------------------------------------- | ||
Date : October 2018 | ||
Copyright : (C) 2018 by Martin Dobias | ||
Email : wonder dot sk at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGS3DTYPES_H | ||
#define QGS3DTYPES_H | ||
|
||
#include "qgis_3d.h" | ||
|
||
/** | ||
* \ingroup 3d | ||
* Defines enumerations and other auxilliary types for QGIS 3D | ||
* \since QGIS 3.4 | ||
*/ | ||
class _3D_EXPORT Qgs3DTypes | ||
{ | ||
public: | ||
//! how to handle altitude of vector features | ||
enum AltitudeClamping | ||
{ | ||
AltClampAbsolute, //!< Z_final = z_geometry | ||
AltClampRelative, //!< Z_final = z_terrain + z_geometry | ||
AltClampTerrain, //!< Z_final = z_terrain | ||
}; | ||
|
||
//! how to handle clamping of vertices of individual features | ||
enum AltitudeBinding | ||
{ | ||
AltBindVertex, //!< Clamp every vertex of feature | ||
AltBindCentroid, //!< Clamp just centroid of feature | ||
}; | ||
|
||
//! Triangle culling mode | ||
enum CullingMode | ||
{ | ||
NoCulling, //!< Will render both front and back faces of triangles | ||
Front, //!< Will render only back faces of triangles | ||
Back, //!< Will render only front faces of triangles (recommended when input data are consistent) | ||
FrontAndBack //!< Will not render anything | ||
}; | ||
}; | ||
|
||
#endif // QGS3DTYPES_H |
Oops, something went wrong.