18 #ifndef QGSMESHDATASET_H
19 #define QGSMESHDATASET_H
28 #include "qgis_core.h"
62 int mDatasetIndex = -1;
93 void set(
double scalar );
96 void setX(
double x );
99 void setY(
double y ) ;
102 double scalar()
const;
113 double mX = std::numeric_limits<double>::quiet_NaN();
114 double mY = std::numeric_limits<double>::quiet_NaN();
152 DataType type()
const;
158 bool isValid()
const;
170 bool active(
int index )
const;
185 void setActive(
const QVector<int> &vals );
198 QVector<int> active()
const;
206 QVector<double> values()
const;
217 void setValues(
const QVector<double> &vals );
220 void setValid(
bool valid );
223 QVector<double> mDoubleBuffer;
224 QVector<int> mIntegerBuffer;
227 bool mIsValid =
false;
256 void setValid(
bool valid );
259 bool isValid()
const;
262 bool isVector()
const;
268 int firstVolumeIndex()
const;
271 int lastVolumeIndex()
const;
274 int volumesCount()
const;
279 QVector<int> verticalLevelsCount()
const;
284 void setVerticalLevelsCount(
const QVector<int> &verticalLevelsCount );
289 QVector<double> verticalLevels()
const;
294 void setVerticalLevels(
const QVector<double> &verticalLevels );
299 QVector<int> faceToVolumeIndex()
const;
304 void setFaceToVolumeIndex(
const QVector<int> &faceToVolumeIndex );
311 QVector<double> values()
const;
326 void setValues(
const QVector<double> &doubleBuffer );
330 bool mIsValid =
false;
331 bool mIsVector =
false;
332 QVector<int> mVerticalLevelsCount;
333 QVector<double> mVerticalLevels;
334 QVector<int> mFaceToVolumeIndex;
335 QVector<double> mDoubleBuffer;
382 int maximumVerticalLevels,
383 const QDateTime &referenceTime,
385 const QMap<QString, QString> &extraOptions );
390 QString name()
const;
395 QMap<QString, QString> extraOptions()
const;
400 bool isVector()
const;
405 bool isScalar()
const;
411 bool isTemporal()
const;
419 DataType dataType()
const;
424 double minimum()
const;
429 double maximum()
const;
436 int maximumVerticalLevelsCount()
const;
443 QDateTime referenceTime()
const;
447 bool mIsScalar =
false;
448 DataType mDataType = DataType::DataOnFaces;
449 double mMinimumValue = std::numeric_limits<double>::quiet_NaN();
450 double mMaximumValue = std::numeric_limits<double>::quiet_NaN();
451 QMap<QString, QString> mExtraOptions;
452 int mMaximumVerticalLevelsCount = 0;
453 QDateTime mReferenceTime;
454 bool mIsTemporal =
false;
486 int maximumVerticalLevels
497 bool isValid()
const;
502 double minimum()
const;
507 double maximum()
const;
514 int maximumVerticalLevelsCount()
const;
517 double mTime = std::numeric_limits<double>::quiet_NaN();
518 bool mIsValid =
false;
519 double mMinimumValue = std::numeric_limits<double>::quiet_NaN();
520 double mMaximumValue = std::numeric_limits<double>::quiet_NaN();
521 int mMaximumVerticalLevelsCount = 0;
615 int childCount()
const;
621 int totalChildCount()
const;
640 QString name()
const;
648 void setName(
const QString &name );
653 bool isVector()
const;
658 int datasetGroupIndex()
const;
663 bool isEnabled()
const;
669 void setIsEnabled(
bool isEnabled );
674 QString defaultName()
const;
686 QList< QgsMeshDatasetGroupTreeItem * > mChildren;
687 QMap<int, QgsMeshDatasetGroupTreeItem *> mDatasetGroupIndexToChild;
691 QString mProviderName;
692 bool mIsVector =
false;
693 int mDatasetGroupIndex = -1;
694 bool mIsEnabled =
true;
697 #endif // QGSMESHDATASET_H