PySide6.QtGraphs.QHeightMapSurfaceDataProxy¶
- class QHeightMapSurfaceDataProxy¶
- Base proxy class for - Q3DSurfaceWidgetItem.- Details- QHeightMapSurfaceDataProxytakes care of the processing of height map data related to surfaces. It provides the visualization of a height map as a surface plot.- Since height maps do not contain values for X or Z axes, those values need to be given separately using the - minXValue,- maxXValue,- minZValue, and- maxZValueproperties. The X-value corresponds to image horizontal direction and the Z-value to the vertical. Setting any of these properties triggers an asynchronous re-resolution of any existing height map.- Synopsis¶- Properties¶- autoScaleYᅟ- Scale height values to Y-axis
- heightMapᅟ- Height map image to be visualized
- heightMapFileᅟ- Name of the file with a height map image to be visualized
- maxXValueᅟ- Maximum X value for the generated surface points
- maxYValueᅟ- Maximum Y value for the generated surface points
- maxZValueᅟ- Maximum Z value for the generated surface points
- minXValueᅟ- Minimum X value for the generated surface points
- minYValueᅟ- Minimum Y value for the generated surface points
- minZValueᅟ- Minimum Z value for the generated surface points
 - Methods¶- def - __init__()
- def - autoScaleY()
- def - heightMap()
- def - heightMapFile()
- def - maxXValue()
- def - maxYValue()
- def - maxZValue()
- def - minXValue()
- def - minYValue()
- def - minZValue()
- def - setAutoScaleY()
- def - setHeightMap()
- def - setMaxXValue()
- def - setMaxYValue()
- def - setMaxZValue()
- def - setMinXValue()
- def - setMinYValue()
- def - setMinZValue()
- def - setValueRanges()
 - Signals¶- Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property autoScaleYᅟ: bool¶
 - This property holds Scale height values to Y-axis.. - Defaults to - false.- When this property is set to - true, the height values are scaled to fit on the Y-axis between- minYValueand- maxYValue.- Access functions:
 - This property holds The height map image to be visualized.. - Access functions:
 - property heightMapFileᅟ: str¶
 - This property holds The name of the file with a height map image to be visualized.. - Access functions:
 - property maxXValueᅟ: 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. - Access functions:
 - property maxYValueᅟ: float¶
 - This property holds The maximum Y 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. - See also - Access functions:
 - property maxZValueᅟ: 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. - Access functions:
 - property minXValueᅟ: 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. - Access functions:
 - property minYValueᅟ: float¶
 - This property holds The minimum Y 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. - See also - Access functions:
 - property minZValueᅟ: 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. - Access functions:
 - Constructs - QHeightMapSurfaceDataProxywith the given- parent.- Constructs - QHeightMapSurfaceDataProxywith the given- imageand- parent. Height map is set by calling- setHeightMap()with- image.- See also - __init__(filename[, parent=None])
- Parameters:
- filename – str 
- parent – - QObject
 
 
 - Constructs - QHeightMapSurfaceDataProxyfrom the given image- filenameand- parent. Height map is set by calling- setHeightMapFile()with- filename.- See also - autoScaleY()¶
- Return type:
- bool 
 - See also 
 - Getter of property - autoScaleYᅟ.- autoScaleYChanged(enabled)¶
- Parameters:
- enabled – bool 
 
 - Notification signal of property - autoScaleYᅟ.- handlePendingResolve()¶
 - heightMap()¶
- Return type:
 - See also 
 - Getter of property - heightMapᅟ.- Notification signal of property - heightMapᅟ.- heightMapFile()¶
- Return type:
- str 
 - See also 
 - Getter of property - heightMapFileᅟ.- heightMapFileChanged(filename)¶
- Parameters:
- filename – str 
 
 - Notification signal of property - heightMapFileᅟ.- maxXValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - maxXValueᅟ.- maxXValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - maxXValueᅟ.- maxYValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - maxYValueᅟ.- maxYValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - maxYValueᅟ.- maxZValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - maxZValueᅟ.- maxZValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - maxZValueᅟ.- minXValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - minXValueᅟ.- minXValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - minXValueᅟ.- minYValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - minYValueᅟ.- minYValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - minYValueᅟ.- minZValue()¶
- Return type:
- float 
 - See also 
 - Getter of property - minZValueᅟ.- minZValueChanged(value)¶
- Parameters:
- value – float 
 
 - Notification signal of property - minZValueᅟ.- setAutoScaleY(enabled)¶
- Parameters:
- enabled – bool 
 - See also 
 - Setter of property - autoScaleYᅟ.- Replaces current data with the height map data specified by - image.- There are several formats the - imagecan 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 - imageyourself before setting it. Preferred format is QImage::Format_RGB32 in grayscale.- The height of the - imageis read from the red component of the pixels if the- imageis in grayscale. Otherwise it is an average calculated from the 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 QImage::Format_Mono). - The height map is resolved asynchronously. - arrayReset()is emitted when the data has been resolved.- See also - Setter of property - heightMapᅟ.- setHeightMapFile(filename)¶
- Parameters:
- filename – str 
 
 - Replaces current data with height map data from the file specified by - filename.- See also - Setter of property - heightMapFileᅟ.- setMaxXValue(max)¶
- Parameters:
- max – float 
 - See also 
 - Setter of property - maxXValueᅟ.- setMaxYValue(max)¶
- Parameters:
- max – float 
 - See also 
 - Setter of property - maxYValueᅟ.- setMaxZValue(max)¶
- Parameters:
- max – float 
 - See also 
 - Setter of property - maxZValueᅟ.- setMinXValue(min)¶
- Parameters:
- min – float 
 - See also 
 - Setter of property - minXValueᅟ.- setMinYValue(min)¶
- Parameters:
- min – float 
 - See also 
 - Setter of property - minYValueᅟ.- setMinZValue(min)¶
- Parameters:
- min – float 
 - See also 
 - Setter of property - minZValueᅟ.- setValueRanges(minX, maxX, minZ, maxZ)¶
- Parameters:
- minX – float 
- maxX – float 
- minZ – float 
- maxZ – float 
 
 
 - A convenience function for setting all minimum ( - minXand- minZ) and maximum (- maxXand- 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.