QHeightMapSurfaceDataProxy

Base proxy class for Q3DSurface . More

Inheritance diagram of PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy

Synopsis

Functions

Detailed Description

QHeightMapSurfaceDataProxy takes care of surface related height map data handling. It provides a way to give a height map to be visualized as a surface plot.

Since height maps do not contain values for X or Z axes, those values need to be given separately using minXValue , maxXValue , minZValue , and maxZValue properties. X-value corresponds to image horizontal direction and Z-value to the vertical. Setting any of these properties triggers asynchronous re-resolving of any existing height map.

class PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy([parent=None])

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy(image[, parent=None])

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy(filename[, parent=None])

Parameters

Constructs QHeightMapSurfaceDataProxy with the given parent.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMap()
Return type

PySide6.QtGui.QImage

See also

setHeightMap()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapChanged(image)
Parameters

imagePySide6.QtGui.QImage

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapFile()
Return type

str

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapFileChanged(filename)
Parameters

filename – str

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxXValue()
Return type

float

See also

setMaxXValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxXValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxZValue()
Return type

float

See also

setMaxZValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxZValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minXValue()
Return type

float

See also

setMinXValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minXValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minZValue()
Return type

float

See also

setMinZValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minZValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setHeightMap(image)
Parameters

imagePySide6.QtGui.QImage

Replaces current data with the height map data specified by image.

There are several formats the image can be given in, but if it is not in a directly usable format, a conversion is made.

Note

If the result seems wrong, the automatic conversion failed and you should try converting the image yourself before setting it. Preferred format is Format_RGB32 in grayscale.

The height of the image is read from the red component of the pixels if the image is in grayscale, otherwise it is an average calculated from red, green, and blue components of the pixels. Using grayscale images may improve data conversion speed for large images.

Not recommended formats: all mono formats (for example Format_Mono ).

The height map is resolved asynchronously. is emitted when the data has been resolved.

See also

heightMap()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setHeightMapFile(filename)
Parameters

filename – str

Replaces current data with height map data from the file specified by filename.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMaxXValue(max)
Parameters

max – float

See also

maxXValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMaxZValue(max)
Parameters

max – float

See also

maxZValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMinXValue(min)
Parameters

min – float

See also

minXValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMinZValue(min)
Parameters

min – float

See also

minZValue()

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setValueRanges(minX, maxX, minZ, maxZ)
Parameters
  • minX – float

  • maxX – float

  • minZ – float

  • maxZ – float

A convenience function for setting all minimum (minX and minZ) and maximum (maxX and maxZ) values at the same time. The minimum values must be smaller than the corresponding maximum value. Otherwise the values get adjusted so that they are valid.