QGIS API Documentation 3.41.0-Master (d5b93354e9c)
|
QgsMesh3DDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame. More...
#include <qgsmeshdataset.h>
Public Member Functions | |
QgsMesh3DDataBlock () | |
Constructs an invalid block. | |
QgsMesh3DDataBlock (int count, bool isVector) | |
Constructs a new block for count faces. | |
~QgsMesh3DDataBlock () | |
int | count () const |
Number of 2d faces for which the volume data is stored in the block. | |
QVector< int > | faceToVolumeIndex () const |
Returns the indexing between faces and volumes. | |
int | firstVolumeIndex () const |
Index of the first volume stored in the buffer (absolute) | |
bool | isValid () const |
Whether the block is valid. | |
bool | isVector () const |
Whether we store vector values. | |
int | lastVolumeIndex () const |
Index of the last volume stored in the buffer (absolute) | |
void | setFaceToVolumeIndex (const QVector< int > &faceToVolumeIndex) |
Sets the indexing between faces and volumes. | |
void | setValid (bool valid) |
Sets block validity. | |
void | setValues (const QVector< double > &doubleBuffer) |
Sets the values at volume centers. | |
void | setVerticalLevels (const QVector< double > &verticalLevels) |
Sets the vertical levels height. | |
void | setVerticalLevelsCount (const QVector< int > &verticalLevelsCount) |
Sets the vertical level counts. | |
QgsMeshDatasetValue | value (int volumeIndex) const |
Returns the value at volume centers. | |
QVector< double > | values () const |
Returns the values at volume centers. | |
QVector< double > | verticalLevels () const |
Returns the vertical levels height. | |
QVector< int > | verticalLevelsCount () const |
Returns number of vertical level above 2d faces. | |
int | volumesCount () const |
Returns number of volumes stored in the buffer. | |
QgsMesh3DDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame.
Data are implicitly shared, so the class can be quickly copied std::numeric_limits<double>::quiet_NaN() represents NODATA value
Definition at line 251 of file qgsmeshdataset.h.
|
default |
Constructs an invalid block.
QgsMesh3DDataBlock::~QgsMesh3DDataBlock | ( | ) |
Definition at line 350 of file qgsmeshdataset.cpp.
QgsMesh3DDataBlock::QgsMesh3DDataBlock | ( | int | count, |
bool | isVector | ||
) |
Constructs a new block for count faces.
Definition at line 352 of file qgsmeshdataset.cpp.
int QgsMesh3DDataBlock::count | ( | ) | const |
Number of 2d faces for which the volume data is stored in the block.
Definition at line 368 of file qgsmeshdataset.cpp.
QVector< int > QgsMesh3DDataBlock::faceToVolumeIndex | ( | ) | const |
Returns the indexing between faces and volumes.
Definition at line 424 of file qgsmeshdataset.cpp.
int QgsMesh3DDataBlock::firstVolumeIndex | ( | ) | const |
Index of the first volume stored in the buffer (absolute)
Definition at line 373 of file qgsmeshdataset.cpp.
bool QgsMesh3DDataBlock::isValid | ( | ) | const |
Whether the block is valid.
Definition at line 358 of file qgsmeshdataset.cpp.
bool QgsMesh3DDataBlock::isVector | ( | ) | const |
Whether we store vector values.
Definition at line 363 of file qgsmeshdataset.cpp.
int QgsMesh3DDataBlock::lastVolumeIndex | ( | ) | const |
Index of the last volume stored in the buffer (absolute)
Definition at line 380 of file qgsmeshdataset.cpp.
void QgsMesh3DDataBlock::setFaceToVolumeIndex | ( | const QVector< int > & | faceToVolumeIndex | ) |
Sets the indexing between faces and volumes.
Definition at line 400 of file qgsmeshdataset.cpp.
void QgsMesh3DDataBlock::setValid | ( | bool | valid | ) |
Sets block validity.
Definition at line 456 of file qgsmeshdataset.cpp.
void QgsMesh3DDataBlock::setValues | ( | const QVector< double > & | doubleBuffer | ) |
Sets the values at volume centers.
For vector datasets the number of values is doubled (x1, y1, x2, y2, ... )
Definition at line 450 of file qgsmeshdataset.cpp.
void QgsMesh3DDataBlock::setVerticalLevels | ( | const QVector< double > & | verticalLevels | ) |
Sets the vertical levels height.
Definition at line 418 of file qgsmeshdataset.cpp.
void QgsMesh3DDataBlock::setVerticalLevelsCount | ( | const QVector< int > & | verticalLevelsCount | ) |
Sets the vertical level counts.
Definition at line 406 of file qgsmeshdataset.cpp.
QgsMeshDatasetValue QgsMesh3DDataBlock::value | ( | int | volumeIndex | ) | const |
Returns the value at volume centers.
volumeIndex | volume index relative to firstVolumeIndex() |
Definition at line 436 of file qgsmeshdataset.cpp.
QVector< double > QgsMesh3DDataBlock::values | ( | ) | const |
Returns the values at volume centers.
For vector datasets the number of values is doubled (x1, y1, x2, y2, ... )
Definition at line 430 of file qgsmeshdataset.cpp.
QVector< double > QgsMesh3DDataBlock::verticalLevels | ( | ) | const |
Returns the vertical levels height.
Definition at line 412 of file qgsmeshdataset.cpp.
QVector< int > QgsMesh3DDataBlock::verticalLevelsCount | ( | ) | const |
Returns number of vertical level above 2d faces.
Definition at line 394 of file qgsmeshdataset.cpp.
int QgsMesh3DDataBlock::volumesCount | ( | ) | const |
Returns number of volumes stored in the buffer.
Definition at line 389 of file qgsmeshdataset.cpp.