QHeightMapSurfaceDataProxy

Base proxy class for Q3DSurface . More

Inheritance diagram of PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy

Synopsis

Functions

Signals

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

This property holds The height map image to be visualized..

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapChanged(image)
Parameters

imagePySide6.QtGui.QImage

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapFile()
Return type

str

This property holds The name of the file with a height map image to be visualized..

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.heightMapFileChanged(filename)
Parameters

filename – str

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxXValue()
Return type

float

This property holds The maximum X value for the generated surface points..

Defaults to 10.0.

When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxXValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxZValue()
Return type

float

This property holds The maximum Z value for the generated surface points..

Defaults to 10.0.

When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.maxZValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minXValue()
Return type

float

This property holds The minimum X value for the generated surface points..

Defaults to 0.0.

When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minXValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minZValue()
Return type

float

This property holds The minimum Z value for the generated surface points..

Defaults to 0.0.

When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.minZValueChanged(value)
Parameters

value – float

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setHeightMap(image)
Parameters

imagePySide6.QtGui.QImage

This property holds The height map image to be visualized..

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setHeightMapFile(filename)
Parameters

filename – str

This property holds The name of the file with a height map image to be visualized..

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMaxXValue(max)
Parameters

max – float

This property holds The maximum X value for the generated surface points..

Defaults to 10.0.

When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMaxZValue(max)
Parameters

max – float

This property holds The maximum Z value for the generated surface points..

Defaults to 10.0.

When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMinXValue(min)
Parameters

min – float

This property holds The minimum X value for the generated surface points..

Defaults to 0.0.

When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.

PySide6.QtDataVisualization.QHeightMapSurfaceDataProxy.setMinZValue(min)
Parameters

min – float

This property holds The minimum Z value for the generated surface points..

Defaults to 0.0.

When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.

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.