QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
QgsMeshDatasetValue represents single dataset value. More...
#include <qgsmeshdataset.h>
Public Member Functions | |
QgsMeshDatasetValue ()=default | |
Default Ctor, initialize to NaN. | |
QgsMeshDatasetValue (double scalar) | |
Constructor for scalar value. | |
QgsMeshDatasetValue (double x, double y) | |
Constructor for vector value. | |
~QgsMeshDatasetValue ()=default | |
bool | operator== (QgsMeshDatasetValue other) const |
double | scalar () const |
Returns magnitude of vector for vector data or scalar value for scalar data. | |
void | set (double scalar) |
Sets scalar value. | |
void | setX (double x) |
Sets X value. | |
void | setY (double y) |
Sets Y value. | |
double | x () const |
Returns x value. | |
double | y () const |
Returns y value. | |
QgsMeshDatasetValue represents single dataset value.
Values may be scalar or vector. Nodata values are represented by NaNs.
Definition at line 82 of file qgsmeshdataset.h.
QgsMeshDatasetValue::QgsMeshDatasetValue | ( | double | x, |
double | y | ||
) |
Constructor for vector value.
Definition at line 57 of file qgsmeshdataset.cpp.
QgsMeshDatasetValue::QgsMeshDatasetValue | ( | double | scalar | ) |
Constructor for scalar value.
Definition at line 61 of file qgsmeshdataset.cpp.
|
default |
Default Ctor, initialize to NaN.
|
default |
bool QgsMeshDatasetValue::operator== | ( | QgsMeshDatasetValue | other | ) | const |
Definition at line 106 of file qgsmeshdataset.cpp.
double QgsMeshDatasetValue::scalar | ( | ) | const |
Returns magnitude of vector for vector data or scalar value for scalar data.
Definition at line 65 of file qgsmeshdataset.cpp.
void QgsMeshDatasetValue::set | ( | double | scalar | ) |
Sets scalar value.
Definition at line 81 of file qgsmeshdataset.cpp.
void QgsMeshDatasetValue::setX | ( | double | x | ) |
Sets X value.
Definition at line 86 of file qgsmeshdataset.cpp.
void QgsMeshDatasetValue::setY | ( | double | y | ) |
Sets Y value.
Definition at line 91 of file qgsmeshdataset.cpp.
double QgsMeshDatasetValue::x | ( | ) | const |
Returns x value.
Definition at line 96 of file qgsmeshdataset.cpp.
double QgsMeshDatasetValue::y | ( | ) | const |
Returns y value.
Definition at line 101 of file qgsmeshdataset.cpp.