PySide6.QtGraphs.QHeightMapSurfaceDataProxy¶
- class QHeightMapSurfaceDataProxy¶
Base proxy class for
Q3DSurfaceWidgetItem
. More…Synopsis¶
Properties¶
autoScaleYᅟ
- Scale height values to Y-axisheightMapᅟ
- Height map image to be visualizedheightMapFileᅟ
- Name of the file with a height map image to be visualizedmaxXValueᅟ
- Maximum X value for the generated surface pointsmaxYValueᅟ
- Maximum Y value for the generated surface pointsmaxZValueᅟ
- Maximum Z value for the generated surface pointsminXValueᅟ
- Minimum X value for the generated surface pointsminYValueᅟ
- Minimum Y value for the generated surface pointsminZValueᅟ
- 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
Detailed Description¶
QHeightMapSurfaceDataProxy
takes 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
, andmaxZValue
properties. 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.See also
QSurfaceDataProxy
Qt Graphs Data Handling with 3DNote
Properties can be used directly when
from __feature__ import true_property
is 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 betweenminYValue
andmaxYValue
.- 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
QHeightMapSurfaceDataProxy
with the givenparent
.Constructs
QHeightMapSurfaceDataProxy
with the givenimage
andparent
. Height map is set by callingsetHeightMap()
withimage
.See also
- __init__(filename[, parent=None])
- Parameters:
filename – str
parent –
QObject
Constructs
QHeightMapSurfaceDataProxy
from the given imagefilename
andparent
. Height map is set by callingsetHeightMapFile()
withfilename
.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
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 QImage::Format_RGB32 in grayscale.The height of the
image
is read from the red component of the pixels if theimage
is 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 (
minX
andminZ
) and maximum (maxX
andmaxZ
) 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.