QHeightMapSurfaceDataProxy Class
Base proxy class for Q3DSurface. More...
| Header: | #include <QHeightMapSurfaceDataProxy> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| Since: | QtDataVisualization 1.0 |
| Instantiated By: | HeightMapSurfaceDataProxy |
| Inherits: | QSurfaceDataProxy |
Properties
|
Public Functions
| virtual | ~QHeightMapSurfaceDataProxy() |
| bool | autoScaleY() const |
| QImage | heightMap() const |
| QString | heightMapFile() const |
| float | maxXValue() const |
| float | maxYValue() const |
| float | maxZValue() const |
| float | minXValue() const |
| float | minYValue() const |
| float | minZValue() const |
| void | setAutoScaleY() |
| void | setHeightMap() |
| void | setHeightMapFile() |
| void | setMaxXValue() |
| void | setMaxYValue() |
| void | setMaxZValue() |
| void | setMinXValue() |
| void | setMinYValue() |
| void | setMinZValue() |
Signals
| void | autoScaleYChanged() |
| void | heightMapChanged() |
| void | heightMapFileChanged() |
| void | maxXValueChanged() |
| void | maxYValueChanged() |
| void | maxZValueChanged() |
| void | minXValueChanged() |
| void | minYValueChanged() |
| void | minZValueChanged() |
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.
See also QSurfaceDataProxy and Qt Data Visualization Data Handling.
Property Documentation
[since 6.3] autoScaleY : bool
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 minYValue and maxYValue.
This property was introduced in Qt 6.3.
Access functions:
| bool | autoScaleY() const |
| void | setAutoScaleY() |
Notifier signal:
| void | autoScaleYChanged() |
See also minYValue and maxYValue.
heightMap : QImage
This property holds the height map image to be visualized.
Access functions:
| QImage | heightMap() const |
| void | setHeightMap() |
Notifier signal:
| void | heightMapChanged() |
heightMapFile : QString
This property holds the name of the file with a height map image to be visualized.
Access functions:
| QString | heightMapFile() const |
| void | setHeightMapFile() |
Notifier signal:
| void | heightMapFileChanged() |
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:
| float | maxXValue() const |
| void | setMaxXValue() |
Notifier signal:
| void | maxXValueChanged() |
[since 6.3] 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.
This property was introduced in Qt 6.3.
Access functions:
| float | maxYValue() const |
| void | setMaxYValue() |
Notifier signal:
| void | maxYValueChanged() |
See also autoScaleY.
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:
| float | maxZValue() const |
| void | setMaxZValue() |
Notifier signal:
| void | maxZValueChanged() |
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:
| float | minXValue() const |
| void | setMinXValue() |
Notifier signal:
| void | minXValueChanged() |
[since 6.3] 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.
This property was introduced in Qt 6.3.
Access functions:
| float | minYValue() const |
| void | setMinYValue() |
Notifier signal:
| void | minYValueChanged() |
See also autoScaleY.
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:
| float | minZValue() const |
| void | setMinZValue() |
Notifier signal:
| void | minZValueChanged() |
Member Function Documentation
[virtual] QHeightMapSurfaceDataProxy::~QHeightMapSurfaceDataProxy()
Destroys QHeightMapSurfaceDataProxy.