18 #ifndef QGSALGORITHMEXPORTMESH_H
19 #define QGSALGORITHMEXPORTMESH_H
43 QString
group()
const override;
44 QString
groupId()
const override;
47 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
54 virtual QSet<int> supportedDataType()
const = 0;
57 virtual QgsGeometry meshElement(
int index )
const = 0;
60 QList<DataGroup> mDataPerGroup;
62 int mExportVectorOption = 2;
63 int mElementCount = 0;
66 class QgsExportMeshVerticesAlgorithm :
public QgsExportMeshOnElement
69 QString shortHelpString()
const override;
70 QString name()
const override;
71 QString displayName()
const override;
78 QSet<int> supportedDataType()
const override
83 QgsGeometry meshElement(
int index )
const override;
87 class QgsExportMeshFacesAlgorithm :
public QgsExportMeshOnElement
90 QString shortHelpString()
const override;
91 QString name()
const override;
92 QString displayName()
const override;
99 QSet<int> supportedDataType()
const override
104 QgsGeometry meshElement(
int index )
const override;
108 class QgsExportMeshEdgesAlgorithm :
public QgsExportMeshOnElement
111 QString shortHelpString()
const override;
112 QString name()
const override;
113 QString displayName()
const override;
120 QSet<int> supportedDataType()
const override
125 QgsGeometry meshElement(
int index )
const override;
134 QString
name()
const override;
136 QString
group()
const override;
137 QString
groupId()
const override;
142 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
148 QSet<int> supportedDataType();
152 QList<DataGroup> mDataPerGroup;
154 int mExportVectorOption = 2;
162 QString
name()
const override;
164 QString
group()
const override;
165 QString
groupId()
const override;
170 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
176 QSet<int> supportedDataType();
180 QList<DataGroup> mDataPerGroup;
189 QString
name()
const override;
191 QString
group()
const override;
192 QString
groupId()
const override;
197 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
203 QSet<int> supportedDataType()
214 QVector<double> mLevels;
216 QList<DataGroup> mDataPerGroup;
219 QString mDateTimeString;
227 QString
name()
const override;
229 QString
group()
const override;
230 QString
groupId()
const override;
235 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
241 QSet<int> supportedDataType()
252 QList<DataGroup> mDataPerGroup;
262 QString
name()
const override;
264 QString
group()
const override;
265 QString
groupId()
const override;
270 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
276 QSet<int> supportedDataType()
290 QList<int> mGroupIndexes;
291 QList<DataGroup> mDatasets;
292 QList<qint64> mRelativeTimeSteps;
293 QStringList mTimeStepString;
294 QMap<qint64, QMap<int, int>> mRelativeTimeToData;
295 QMap<int, QgsMeshDatasetGroupMetadata> mGroupsMetadata;
This class represents a coordinate reference system (CRS).
A geometry is the spatial representation of a feature.
QgsMesh3dDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
Represents all mesh renderer settings.
Abstract base class for processing algorithms.
virtual QString group() const
Returns the name of the group this algorithm belongs to.
virtual QString groupId() const
Returns the unique ID of the group this algorithm belongs to.
virtual QString shortHelpString() const
Returns a localised short helper string for the algorithm.
virtual QVariantMap processAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0
Runs the algorithm using the specified parameters.
virtual QString displayName() const =0
Returns the translated algorithm name, which should be used for any user-visible display of the algor...
virtual bool prepareAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)
Prepares the algorithm to run using the specified parameters.
virtual QgsProcessingAlgorithm * createInstance() const =0
Creates a new instance of the algorithm class.
virtual void initAlgorithm(const QVariantMap &configuration=QVariantMap())=0
Initializes the algorithm using the specified configuration.
virtual QString name() const =0
Returns the algorithm name, used for identifying the algorithm.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
SourceType
Data source types enum.
@ TypeVectorLine
Vector line layers.
@ TypeVectorPolygon
Vector polygon layers.
@ TypeVectorPoint
Vector point layers.
Triangular/Derived Mesh is mesh with vertices in map coordinates.
Type
The WKB type describes the number of dimensions a geometry has.
Mesh - vertices, edges and faces.
ElementType
Defines type of mesh elements.