QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSMESHDATAPROVIDER_H
19 #define QGSMESHDATAPROVIDER_H
28 #include "qgis_core.h"
75 bool contains(
const ElementType &type )
const;
78 int vertexCount()
const;
80 int faceCount()
const;
86 int edgeCount()
const;
314 Q_DECL_DEPRECATED
virtual bool persistDatasetGroup(
const QString &path,
316 const QVector<QgsMeshDataBlock> &datasetValues,
317 const QVector<QgsMeshDataBlock> &datasetActive,
318 const QVector<double> ×
339 const QString &outputDriver,
341 const QVector<QgsMeshDataBlock> &datasetValues,
342 const QVector<QgsMeshDataBlock> &datasetActive,
343 const QVector<double> ×
362 const QString &outputDriver,
364 int datasetGroupIndex
404 QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() );
424 #endif // QGSMESHDATAPROVIDER_H
virtual int datasetGroupCount() const =0
Returns number of datasets groups loaded.
virtual QgsMeshDatasetValue datasetValue(QgsMeshDatasetIndex index, int valueIndex) const =0
Returns vector/scalar value associated with the index from the dataset To read multiple continuous va...
virtual int datasetCount(int groupIndex) const =0
Returns number of datasets loaded in the group.
Setting options for creating vector data providers.
Abstract base class for spatial data provider implementations.
Point geometry type, with support for z-dimension and m-values.
QgsPoint QgsMeshVertex
xyz coords of vertex
virtual bool addDataset(const QString &uri)=0
Associate dataset with the mesh.
Class for handling properties relating to a mesh data provider's temporal capabilities.
virtual void populateMesh(QgsMesh *mesh) const =0
Populates the mesh vertices, edges and faces.
QgsMeshDatasetValue represents single dataset value.
virtual ~QgsMeshDataSourceInterface()=default
Dtor.
Mesh - vertices, edges and faces.
TemporalUnit
Temporal units.
A rectangle specified with double values.
QgsMesh3dDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame.
virtual QgsMeshDataBlock datasetValues(QgsMeshDatasetIndex index, int valueIndex, int count) const =0
Returns N vector/scalar values from the index from the dataset.
virtual ~QgsMeshDatasetSourceInterface()=default
Dtor.
Interface for mesh data sources.
ElementType
Defines type of mesh elements.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Base class for providing data for QgsMeshLayer.
MatchingTemporalDatasetMethod
Method for selection of temporal mesh dataset from a range time.
virtual int edgeCount() const =0
Returns number of edges in the native mesh.
virtual bool isFaceActive(QgsMeshDatasetIndex index, int faceIndex) const =0
Returns whether the face is active for particular dataset.
virtual int vertexCount() const =0
Returns number of vertices in the native mesh.
Interface for mesh datasets and dataset groups.
QVector< int > QgsMeshFace
List of vertex indexes.
virtual bool persistDatasetGroup(const QString &outputFilePath, const QString &outputDriver, const QgsMeshDatasetGroupMetadata &meta, const QVector< QgsMeshDataBlock > &datasetValues, const QVector< QgsMeshDataBlock > &datasetActive, const QVector< double > ×)=0
Creates a new dataset group from a data and persists it into a destination path.
virtual QgsMeshDatasetMetadata datasetMetadata(QgsMeshDatasetIndex index) const =0
Returns dataset metadata.
virtual int faceCount() const =0
Returns number of faces in the native mesh.
QPair< int, int > QgsMeshEdge
Edge is a straight line seqment between 2 points.
virtual QgsDataProviderTemporalCapabilities * temporalCapabilities()
Returns the provider's temporal capabilities.
virtual QStringList extraDatasets() const =0
Returns list of additional dataset file URIs added using addDataset() calls.
virtual QgsMesh3dDataBlock dataset3dValues(QgsMeshDatasetIndex index, int faceIndex, int count) const =0
Returns N vector/scalar values from the face index from the dataset for 3d stacked meshes.
void datasetGroupsAdded(int count)
Emitted when some new dataset groups have been added.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
virtual bool persistDatasetGroup(const QString &outputFilePath, const QString &outputDriver, QgsMeshDatasetSourceInterface *source, int datasetGroupIndex)=0
Saves a an existing dataset group provided by source to a file with a specified driver.
virtual QgsMeshDataBlock areFacesActive(QgsMeshDatasetIndex index, int faceIndex, int count) const =0
Returns whether the faces are active for particular dataset.
virtual QgsMeshDatasetGroupMetadata datasetGroupMetadata(int groupIndex) const =0
Returns dataset group metadata.
std::unique_ptr< QgsMeshDataProviderTemporalCapabilities > mTemporalCapabilities