QGIS API Documentation  3.2.0-Bonn (bc43194)
Public Member Functions | List of all members
QgsMeshDatasetValue Class Reference

QgsMeshDatasetValue represents single mesh 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...
 

Detailed Description

QgsMeshDatasetValue represents single mesh dataset value.

could be scalar or vector. Nodata values are represented by NaNs.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.2

Definition at line 48 of file qgsmeshdataprovider.h.

Constructor & Destructor Documentation

◆ QgsMeshDatasetValue() [1/3]

QgsMeshDatasetValue::QgsMeshDatasetValue ( double  x,
double  y 
)

Constructor for vector value.

Definition at line 43 of file qgsmeshdataprovider.cpp.

◆ QgsMeshDatasetValue() [2/3]

QgsMeshDatasetValue::QgsMeshDatasetValue ( double  scalar)

Constructor for scalar value.

Definition at line 47 of file qgsmeshdataprovider.cpp.

◆ QgsMeshDatasetValue() [3/3]

QgsMeshDatasetValue::QgsMeshDatasetValue ( )
default

Default Ctor, initialize to NaN.

◆ ~QgsMeshDatasetValue()

QgsMeshDatasetValue::~QgsMeshDatasetValue ( )
default

Dtor.

Member Function Documentation

◆ operator==()

bool QgsMeshDatasetValue::operator== ( const QgsMeshDatasetValue other) const

Definition at line 92 of file qgsmeshdataprovider.cpp.

◆ scalar()

double QgsMeshDatasetValue::scalar ( ) const

Returns magnitude of vector for vector data or scalar value for scalar data.

Definition at line 51 of file qgsmeshdataprovider.cpp.

◆ set()

void QgsMeshDatasetValue::set ( double  scalar)

Sets scalar value.

Definition at line 67 of file qgsmeshdataprovider.cpp.

◆ setX()

void QgsMeshDatasetValue::setX ( double  x)

Sets X value.

Definition at line 72 of file qgsmeshdataprovider.cpp.

◆ setY()

void QgsMeshDatasetValue::setY ( double  y)

Sets Y value.

Definition at line 77 of file qgsmeshdataprovider.cpp.

◆ x()

double QgsMeshDatasetValue::x ( ) const

Returns x value.

Definition at line 82 of file qgsmeshdataprovider.cpp.

◆ y()

double QgsMeshDatasetValue::y ( ) const

Returns y value.

Definition at line 87 of file qgsmeshdataprovider.cpp.


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