Subgroup: Mesh

Class: QgsMeshDatasetValue

class qgis.core.QgsMeshDatasetValue(x: float, y: float)

Bases: sip.wrapper

Constructor for vector value

QgsMeshDatasetValue(scalar: float) Constructor for scalar value

QgsMeshDatasetValue() Default Ctor, initialize to NaN

QgsMeshDatasetValue(QgsMeshDatasetValue)

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

New in version 3.2: 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

Signals

Attributes

scalar(self) → float

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

set(self, scalar: float)

Sets scalar value

setX(self, x: float)

Sets X value

setY(self, y: float)

Sets Y value

x(self) → float

Returns x value

y(self) → float

Returns y value