QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
QgsMeshDatasetValue represents single dataset value. More...
#include <qgsmeshdataprovider.h>
Public Member Functions | |
QgsMeshDatasetValue (double x, double y) | |
Constructor for vector value. More... | |
QgsMeshDatasetValue (double scalar) | |
Constructor for scalar value. More... | |
QgsMeshDatasetValue ()=default | |
Default Ctor, initialize to NaN. More... | |
~QgsMeshDatasetValue ()=default | |
Dtor. More... | |
bool | operator== (const QgsMeshDatasetValue &other) const |
double | scalar () const |
Returns magnitude of vector for vector data or scalar value for scalar data. More... | |
void | set (double scalar) |
Sets scalar value. More... | |
void | setX (double x) |
Sets X value. More... | |
void | setY (double y) |
Sets Y value. More... | |
double | x () const |
Returns x value. More... | |
double | y () const |
Returns y value. More... | |
QgsMeshDatasetValue represents single dataset value.
could be scalar or vector. Nodata values are represented by NaNs.
Definition at line 79 of file qgsmeshdataprovider.h.
QgsMeshDatasetValue::QgsMeshDatasetValue | ( | double | x, |
double | y | ||
) |
Constructor for vector value.
Definition at line 78 of file qgsmeshdataprovider.cpp.
QgsMeshDatasetValue::QgsMeshDatasetValue | ( | double | scalar | ) |
Constructor for scalar value.
Definition at line 82 of file qgsmeshdataprovider.cpp.
|
default |
Default Ctor, initialize to NaN.
|
default |
Dtor.
bool QgsMeshDatasetValue::operator== | ( | const QgsMeshDatasetValue & | other | ) | const |
Definition at line 127 of file qgsmeshdataprovider.cpp.
double QgsMeshDatasetValue::scalar | ( | ) | const |
Returns magnitude of vector for vector data or scalar value for scalar data.
Definition at line 86 of file qgsmeshdataprovider.cpp.
void QgsMeshDatasetValue::set | ( | double | scalar | ) |
Sets scalar value.
Definition at line 102 of file qgsmeshdataprovider.cpp.
void QgsMeshDatasetValue::setX | ( | double | x | ) |
Sets X value.
Definition at line 107 of file qgsmeshdataprovider.cpp.
void QgsMeshDatasetValue::setY | ( | double | y | ) |
Sets Y value.
Definition at line 112 of file qgsmeshdataprovider.cpp.
double QgsMeshDatasetValue::x | ( | ) | const |
Returns x value.
Definition at line 117 of file qgsmeshdataprovider.cpp.
double QgsMeshDatasetValue::y | ( | ) | const |
Returns y value.
Definition at line 122 of file qgsmeshdataprovider.cpp.