Class: QgsMeshDatasetValue

class qgis.core.QgsMeshDatasetValue

Bases: sip.wrapper

QgsMeshDatasetValue represents single dataset value.

Values may be scalar or vector. Nodata values are represented by NaNs.

Note

The API is considered EXPERIMENTAL and can be changed without a notice

New in version 3.2.

QgsMeshDatasetValue(x: float, y: float) Constructor for vector value

QgsMeshDatasetValue(scalar: float) Constructor for scalar value

QgsMeshDatasetValue() Default Ctor, initialize to NaN

QgsMeshDatasetValue(QgsMeshDatasetValue)

Methods

scalar

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

set

Sets scalar value

setX

Sets X value

setY

Sets Y value

x

Returns x value

y

Returns y value

scalar(self)float

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

Return type

float

set(self, scalar: float)

Sets scalar value

Parameters

scalar (float) –

setX(self, x: float)

Sets X value

Parameters

x (float) –

setY(self, y: float)

Sets Y value

Parameters

y (float) –

x(self)float

Returns x value

Return type

float

y(self)float

Returns y value

Return type

float