Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38309 from vcloarec/TINMeshCreaton
TIN Mesh creation
- Loading branch information
Showing
40 changed files
with
2,203 additions
and
23 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
120 changes: 120 additions & 0 deletions
120
python/analysis/auto_generated/mesh/qgsmeshtriangulation.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,120 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/mesh/qgsmeshtriangulation.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsMeshTriangulation : QObject | ||
{ | ||
%Docstring | ||
|
||
Class that handles mesh creation with Delaunay constrained triangulation | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmeshtriangulation.h" | ||
%End | ||
public: | ||
|
||
QgsMeshTriangulation(); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
~QgsMeshTriangulation(); | ||
|
||
bool addVertices( QgsFeatureIterator &vertexFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transform, QgsFeedback *feedback = 0, long featureCount = 1 ); | ||
%Docstring | ||
Adds vertices to the triangulation from a feature iterator, return ``True`` if successful. | ||
|
||
:param vertexFeatureIterator: the feature iterator of vertices to insert | ||
:param valueAttribute: the index of the attribute that represents the value of vertices, if -1 uses Z coordinate of vertices | ||
:param transform: the coordinates transform used to transform coordinates | ||
:param feedback: feedback argument may be specified to allow cancellation and progress reports | ||
:param featureCount: the count of feature to allow progress report of the feedback | ||
%End | ||
|
||
bool addBreakLines( QgsFeatureIterator &lineFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transformContext, QgsFeedback *feedback = 0, long featureCount = 1 ); | ||
%Docstring | ||
Adds break lines from a vector layer, return ``True`` if successful. | ||
|
||
:param lineFeatureIterator: the feature iterator of break lines to insert | ||
:param valueAttribute: the index of the attribute that represents the value of vertices, if -1 uses Z coordinate of vertices | ||
:param transform: the coordinates transform used to transform coordinates | ||
:param feedback: feedback argument may be specified to allow cancellation and progress reports | ||
:param featureCount: the count of feature to allow progress report of the feedback | ||
|
||
.. warning:: | ||
|
||
if the feature iterator contains only point geometries, the vertices will be added only without treating them as breaklines | ||
%End | ||
|
||
QgsMesh triangulatedMesh() const; | ||
%Docstring | ||
Returns the triangulated mesh | ||
%End | ||
|
||
void setCrs( const QgsCoordinateReferenceSystem &crs ); | ||
%Docstring | ||
Sets the coordinate reference system used for the triangulation | ||
%End | ||
|
||
private: | ||
QgsMeshTriangulation( const QgsMeshTriangulation &rhs ); | ||
}; | ||
|
||
|
||
class QgsMeshZValueDatasetGroup: QgsMeshDatasetGroup | ||
{ | ||
%Docstring | ||
|
||
Convenient class that can be used to obtain a datasetgroup on vertices that represents the Z value of the mesh vertices | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmeshtriangulation.h" | ||
%End | ||
public: | ||
|
||
QgsMeshZValueDatasetGroup( const QString &datasetGroupName, const QgsMesh &mesh ); | ||
%Docstring | ||
Constructor | ||
|
||
:param datasetGroupName: the name of the dataset group | ||
:param mesh: the mesh used to create the Z value dataset | ||
%End | ||
|
||
virtual void initialize(); | ||
|
||
virtual QgsMeshDatasetMetadata datasetMetadata( int datasetIndex ) const; | ||
|
||
virtual int datasetCount() const; | ||
|
||
virtual QgsMeshDataset *dataset( int index ) const; | ||
|
||
virtual QgsMeshDatasetGroup::Type type() const; | ||
virtual QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context ) const; | ||
|
||
|
||
private: | ||
QgsMeshZValueDatasetGroup( const QgsMeshZValueDatasetGroup &rhs ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/mesh/qgsmeshtriangulation.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
100 changes: 100 additions & 0 deletions
100
python/core/auto_generated/processing/qgsprocessingparametertininputlayers.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,100 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertininputlayers.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsProcessingParameterTinInputLayers: QgsProcessingParameterDefinition | ||
{ | ||
%Docstring | ||
A parameter for processing algorithms that need a list of input vector layers to construct a TIN | ||
A valid value for this parameter is a list (QVariantList), where each item is a map (QVariantMap) in this form: | ||
{ | ||
'source': string that represents identification of the vector layer, | ||
'type': how the vector layer is used : as vertices, structure lines or break lines | ||
'attributeIndex' : the index of the attribute of the vector layer used to defined the Z value of vertices, | ||
if -1, the Z coordinates of features are used | ||
} | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertininputlayers.h" | ||
%End | ||
public: | ||
|
||
enum Type | ||
{ | ||
Vertices, | ||
StructureLines, | ||
BreakLines | ||
}; | ||
|
||
struct InputLayer | ||
{ | ||
QString source; //!The source of the input layer | ||
Type type; //!The type of the input layer (see Type) | ||
int attributeIndex; //! The attribute index used for Z value of vertices | ||
}; | ||
|
||
QgsProcessingParameterTinInputLayers( const QString &name, const QString &description = QString() ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
virtual QgsProcessingParameterDefinition *clone() const; | ||
|
||
virtual QString type() const; | ||
|
||
virtual bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = 0 ) const; | ||
|
||
virtual QString valueAsPythonString( const QVariant &value, QgsProcessingContext &context ) const; | ||
|
||
virtual QString asPythonString( QgsProcessing::PythonOutputType outputType = QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const; | ||
|
||
|
||
static QString typeName(); | ||
%Docstring | ||
Returns the type name for the parameter class. | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeTinInputLayers : QgsProcessingParameterType | ||
{ | ||
%Docstring | ||
Parameter type definition for QgsProcessingParameterTinInputLayers. | ||
|
||
.. versionadded:: 3.16 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertininputlayers.h" | ||
%End | ||
public: | ||
virtual QgsProcessingParameterDefinition *create( const QString &name ) const /Factory/; | ||
|
||
virtual QString description() const; | ||
|
||
virtual QString name() const; | ||
|
||
virtual QString id() const; | ||
|
||
virtual QString pythonImportString() const; | ||
|
||
virtual QString className() const; | ||
|
||
virtual QStringList acceptedPythonTypes() const; | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertininputlayers.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
Oops, something went wrong.