QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Class to store memory dataset. More...
#include <qgsmeshdataset.h>
Public Member Functions | |
QgsMeshMemoryDataset ()=default | |
Constructor. More... | |
QgsMeshDataBlock | areFacesActive (int faceIndex, int count) const override |
Returns whether faces are active. More... | |
void | calculateMinMax () |
Calculates the minimum and the maximum of this group. More... | |
QgsMeshDatasetValue | datasetValue (int valueIndex) const override |
Returns the value with index valueIndex. More... | |
QgsMeshDataBlock | datasetValues (bool isScalar, int valueIndex, int count) const override |
Returns count values from valueIndex. More... | |
bool | isActive (int faceIndex) const override |
Returns whether the face is active. More... | |
QgsMeshDatasetMetadata | metadata () const override |
Returns the metadata of the dataset. More... | |
int | valuesCount () const override |
Returns the values count. More... | |
Public Member Functions inherited from QgsMeshDataset | |
QgsMeshDataset ()=default | |
Constructor. More... | |
virtual | ~QgsMeshDataset ()=default |
Destructor. More... | |
virtual QgsMeshDataBlock | areFacesActive (int faceIndex, int count) const =0 |
Returns whether faces are active. More... | |
virtual QgsMeshDatasetValue | datasetValue (int valueIndex) const =0 |
Returns the value with index valueIndex. More... | |
virtual QgsMeshDataBlock | datasetValues (bool isScalar, int valueIndex, int count) const =0 |
Returns count values from valueIndex. More... | |
virtual bool | isActive (int faceIndex) const =0 |
Returns whether the face is active. More... | |
virtual QgsMeshDatasetMetadata | metadata () const =0 |
Returns the metadata of the dataset. More... | |
virtual int | valuesCount () const =0 |
Returns the values count. More... | |
Public Attributes | |
QVector< int > | active |
double | maximum = std::numeric_limits<double>::quiet_NaN() |
double | minimum = std::numeric_limits<double>::quiet_NaN() |
double | time = -1 |
bool | valid = false |
QVector< QgsMeshDatasetValue > | values |
Class to store memory dataset.
The QgsMeshDatasetValue objects and whether the faces are active are stored in QVector containers that are exposed for efficiency
Definition at line 704 of file qgsmeshdataset.h.
|
default |
Constructor.
|
overridevirtual |
Returns whether faces are active.
Implements QgsMeshDataset.
Definition at line 838 of file qgsmeshdataset.cpp.
void QgsMeshMemoryDataset::calculateMinMax | ( | ) |
Calculates the minimum and the maximum of this group.
Definition at line 856 of file qgsmeshdataset.cpp.
|
overridevirtual |
Returns the value with index valueIndex.
Implements QgsMeshDataset.
Definition at line 807 of file qgsmeshdataset.cpp.
|
overridevirtual |
Returns count values from valueIndex.
Implements QgsMeshDataset.
Definition at line 815 of file qgsmeshdataset.cpp.
|
overridevirtual |
Returns whether the face is active.
Implements QgsMeshDataset.
Definition at line 891 of file qgsmeshdataset.cpp.
|
overridevirtual |
Returns the metadata of the dataset.
Implements QgsMeshDataset.
Definition at line 851 of file qgsmeshdataset.cpp.
|
overridevirtual |
Returns the values count.
Implements QgsMeshDataset.
Definition at line 899 of file qgsmeshdataset.cpp.
QVector<int> QgsMeshMemoryDataset::active |
Definition at line 721 of file qgsmeshdataset.h.
double QgsMeshMemoryDataset::maximum = std::numeric_limits<double>::quiet_NaN() |
Definition at line 725 of file qgsmeshdataset.h.
double QgsMeshMemoryDataset::minimum = std::numeric_limits<double>::quiet_NaN() |
Definition at line 724 of file qgsmeshdataset.h.
double QgsMeshMemoryDataset::time = -1 |
Definition at line 722 of file qgsmeshdataset.h.
bool QgsMeshMemoryDataset::valid = false |
Definition at line 723 of file qgsmeshdataset.h.
QVector<QgsMeshDatasetValue> QgsMeshMemoryDataset::values |
Definition at line 720 of file qgsmeshdataset.h.