18 #ifndef QGSMESHDATAPROVIDER_H 19 #define QGSMESHDATAPROVIDER_H 26 #include "qgis_core.h" 59 int mDatasetIndex = -1;
96 void set(
double scalar );
99 void setX(
double x );
102 void setY(
double y ) ;
105 double scalar()
const;
116 double mX = std::numeric_limits<double>::quiet_NaN();
117 double mY = std::numeric_limits<double>::quiet_NaN();
155 const QMap<QString, QString> &extraOptions );
160 QString name()
const;
165 QMap<QString, QString> extraOptions()
const;
170 bool isVector()
const;
175 bool isScalar()
const;
184 bool mIsScalar =
false;
185 bool mIsOnVertices =
false;
186 QMap<QString, QString> mExtraOptions;
222 bool isValid()
const;
225 double mTime = std::numeric_limits<double>::quiet_NaN();
226 bool mIsValid =
false;
255 virtual int vertexCount()
const = 0;
261 virtual int faceCount()
const = 0;
300 virtual bool addDataset(
const QString &uri ) = 0;
305 virtual QStringList extraDatasets()
const = 0;
310 virtual int datasetGroupCount( )
const = 0;
315 virtual int datasetCount(
int groupIndex )
const = 0;
384 void datasetGroupsAdded(
int count );
387 #endif // QGSMESHDATAPROVIDER_H A rectangle specified with double values.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Abstract base class for spatial data provider implementations.
Point geometry type, with support for z-dimension and m-values.
Base class for providing data for QgsMeshLayer.
Setting options for creating vector data providers.
Interface for mesh datasets and dataset groups.
QVector< int > QgsMeshFace
List of vertex indexes.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
QgsMeshDatasetValue represents single dataset value.
Interface for mesh data sources.
QgsPoint QgsMeshVertex
xyz coords of vertex