/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc ** All rights reserved. ** For any questions to Digia, please use contact form at http://qt.digia.com ** ** This file is part of the QtDataVisualization module. ** ** Licensees holding valid Qt Enterprise licenses may use this file in ** accordance with the Qt Enterprise License Agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. ** ** If you have questions regarding the use of this file, please use ** contact form at http://qt.digia.com ** ****************************************************************************/ #ifndef QHEIGHTMAPSURFACEDATAPROXY_H #define QHEIGHTMAPSURFACEDATAPROXY_H #include #include QT_BEGIN_NAMESPACE_DATAVISUALIZATION class QHeightMapSurfaceDataProxyPrivate; class QT_DATAVISUALIZATION_EXPORT QHeightMapSurfaceDataProxy : public QSurfaceDataProxy { Q_OBJECT Q_PROPERTY(QImage heightMap READ heightMap WRITE setHeightMap NOTIFY heightMapChanged) Q_PROPERTY(QString heightMapFile READ heightMapFile WRITE setHeightMapFile NOTIFY heightMapFileChanged) Q_PROPERTY(float minXValue READ minXValue WRITE setMinXValue NOTIFY minXValueChanged) Q_PROPERTY(float maxXValue READ maxXValue WRITE setMaxXValue NOTIFY maxXValueChanged) Q_PROPERTY(float minZValue READ minZValue WRITE setMinZValue NOTIFY minZValueChanged) Q_PROPERTY(float maxZValue READ maxZValue WRITE setMaxZValue NOTIFY maxZValueChanged) public: explicit QHeightMapSurfaceDataProxy(QObject *parent = 0); explicit QHeightMapSurfaceDataProxy(const QImage &image, QObject *parent = 0); virtual ~QHeightMapSurfaceDataProxy(); void setHeightMap(const QImage &image); QImage heightMap() const; void setHeightMapFile(const QString &filename); QString heightMapFile() const; void setValueRanges(float minX, float maxX, float minZ, float maxZ); void setMinXValue(float min); float minXValue() const; void setMaxXValue(float max); float maxXValue() const; void setMinZValue(float min); float minZValue() const; void setMaxZValue(float max); float maxZValue() const; signals: void heightMapChanged(QImage image); void heightMapFileChanged(QString filename); void minXValueChanged(float value); void maxXValueChanged(float value); void minZValueChanged(float value); void maxZValueChanged(float value); protected: explicit QHeightMapSurfaceDataProxy(QHeightMapSurfaceDataProxyPrivate *d, QObject *parent = 0); QHeightMapSurfaceDataProxyPrivate *dptr(); const QHeightMapSurfaceDataProxyPrivate *dptrc() const; private: Q_DISABLE_COPY(QHeightMapSurfaceDataProxy) friend class Surface3DController; }; QT_END_NAMESPACE_DATAVISUALIZATION #endif