QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsMeshMemoryDataset Class Reference

Class to store memory dataset. More...

#include <qgsmeshdataset.h>

Inheritance diagram for QgsMeshMemoryDataset:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshMemoryDataset ()=default
 Constructor.
 
QgsMeshDataBlock areFacesActive (int faceIndex, int count) const override
 Returns whether faces are active.
 
void calculateMinMax ()
 Calculates the minimum and the maximum of this group.
 
QgsMeshDatasetValue datasetValue (int valueIndex) const override
 Returns the value with index valueIndex.
 
QgsMeshDataBlock datasetValues (bool isScalar, int valueIndex, int count) const override
 Returns count values from valueIndex.
 
bool isActive (int faceIndex) const override
 Returns whether the face is active.
 
QgsMeshDatasetMetadata metadata () const override
 Returns the metadata of the dataset.
 
int valuesCount () const override
 Returns the values count.
 
- Public Member Functions inherited from QgsMeshDataset
 QgsMeshDataset ()=default
 Constructor.
 
virtual ~QgsMeshDataset ()=default
 Destructor.
 

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< QgsMeshDatasetValuevalues
 

Detailed Description

Class to store memory dataset.

The QgsMeshDatasetValue objects and whether the faces are active are stored in QVector containers that are exposed for efficiency

Since
QGIS 3.16

Definition at line 707 of file qgsmeshdataset.h.

Constructor & Destructor Documentation

◆ QgsMeshMemoryDataset()

QgsMeshMemoryDataset::QgsMeshMemoryDataset ( )
default

Constructor.

Member Function Documentation

◆ areFacesActive()

QgsMeshDataBlock QgsMeshMemoryDataset::areFacesActive ( int  faceIndex,
int  count 
) const
overridevirtual

Returns whether faces are active.

Implements QgsMeshDataset.

Definition at line 838 of file qgsmeshdataset.cpp.

◆ calculateMinMax()

void QgsMeshMemoryDataset::calculateMinMax ( )

Calculates the minimum and the maximum of this group.

Definition at line 856 of file qgsmeshdataset.cpp.

◆ datasetValue()

QgsMeshDatasetValue QgsMeshMemoryDataset::datasetValue ( int  valueIndex) const
overridevirtual

Returns the value with index valueIndex.

Implements QgsMeshDataset.

Definition at line 807 of file qgsmeshdataset.cpp.

◆ datasetValues()

QgsMeshDataBlock QgsMeshMemoryDataset::datasetValues ( bool  isScalar,
int  valueIndex,
int  count 
) const
overridevirtual

Returns count values from valueIndex.

Implements QgsMeshDataset.

Definition at line 815 of file qgsmeshdataset.cpp.

◆ isActive()

bool QgsMeshMemoryDataset::isActive ( int  faceIndex) const
overridevirtual

Returns whether the face is active.

Implements QgsMeshDataset.

Definition at line 891 of file qgsmeshdataset.cpp.

◆ metadata()

QgsMeshDatasetMetadata QgsMeshMemoryDataset::metadata ( ) const
overridevirtual

Returns the metadata of the dataset.

Implements QgsMeshDataset.

Definition at line 851 of file qgsmeshdataset.cpp.

◆ valuesCount()

int QgsMeshMemoryDataset::valuesCount ( ) const
overridevirtual

Returns the values count.

Implements QgsMeshDataset.

Definition at line 899 of file qgsmeshdataset.cpp.

Member Data Documentation

◆ active

QVector<int> QgsMeshMemoryDataset::active

Definition at line 724 of file qgsmeshdataset.h.

◆ maximum

double QgsMeshMemoryDataset::maximum = std::numeric_limits<double>::quiet_NaN()

Definition at line 728 of file qgsmeshdataset.h.

◆ minimum

double QgsMeshMemoryDataset::minimum = std::numeric_limits<double>::quiet_NaN()

Definition at line 727 of file qgsmeshdataset.h.

◆ time

double QgsMeshMemoryDataset::time = -1

Definition at line 725 of file qgsmeshdataset.h.

◆ valid

bool QgsMeshMemoryDataset::valid = false

Definition at line 726 of file qgsmeshdataset.h.

◆ values

QVector<QgsMeshDatasetValue> QgsMeshMemoryDataset::values

Definition at line 723 of file qgsmeshdataset.h.


The documentation for this class was generated from the following files: