QHeightMapSurfaceDataProxy Class
Base proxy class for Q3DSurface. More...
| Header: | #include <QHeightMapSurfaceDataProxy> |
| qmake: | QT += datavisualization |
| Since: | QtDataVisualization 1.0 |
| Instantiated By: | HeightMapSurfaceDataProxy |
| Inherits: | QSurfaceDataProxy |
This class was introduced in QtDataVisualization 1.0.
Properties
|
Public Functions
| QImage | heightMap() const |
| QString | heightMapFile() const |
| float | maxXValue() const |
| float | maxZValue() const |
| float | minXValue() const |
| float | minZValue() const |
| void | setHeightMap(const QImage &image) |
| void | setHeightMapFile(const QString &filename) |
| void | setMaxXValue(float max) |
| void | setMaxZValue(float max) |
| void | setMinXValue(float min) |
| void | setMinZValue(float min) |
Signals
| void | heightMapChanged(const QImage &image) |
| void | heightMapFileChanged(const QString &filename) |
| void | maxXValueChanged(float value) |
| void | maxZValueChanged(float value) |
| void | minXValueChanged(float value) |
| void | minZValueChanged(float value) |
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
heightMap : QImage
This property holds the height map image to be visualized.
Access functions:
| QImage | heightMap() const |
| void | setHeightMap(const QImage &image) |
Notifier signal:
| void | heightMapChanged(const QImage &image) |
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(const QString &filename) |
Notifier signal:
| void | heightMapFileChanged(const QString &filename) |
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(float max) |
Notifier signal:
| void | maxXValueChanged(float value) |
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(float max) |
Notifier signal:
| void | maxZValueChanged(float value) |
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(float min) |
Notifier signal:
| void | minXValueChanged(float value) |
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(float min) |
Notifier signal:
| void | minZValueChanged(float value) |