diff options
author | Mika Salmela <mika.salmela@digia.com> | 2013-07-22 16:51:18 +0300 |
---|---|---|
committer | Mika Salmela <mika.salmela@digia.com> | 2013-07-22 16:52:38 +0300 |
commit | 51d6d0258c8d1fe0608045986792ac5601f8613f (patch) | |
tree | 95956d8f7e2f61ce2a56fc88ee094b51047078b9 /src/datavis3d/engine/surface3dcontroller_p.h | |
parent | 2ba572295f102ad06ae95ec676c064909775011f (diff) |
Fancy curve example and other stuff.
Change-Id: Id090ed0bedb3bec96ab6ba64b9af8205c1998f12
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavis3d/engine/surface3dcontroller_p.h')
-rw-r--r-- | src/datavis3d/engine/surface3dcontroller_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datavis3d/engine/surface3dcontroller_p.h b/src/datavis3d/engine/surface3dcontroller_p.h index 1e1e5044..3207f6f3 100644 --- a/src/datavis3d/engine/surface3dcontroller_p.h +++ b/src/datavis3d/engine/surface3dcontroller_p.h @@ -72,6 +72,10 @@ private: bool m_smoothSurface; bool m_surfaceGrid; + GLint m_tickCount; + GLfloat m_tickStep; + GLfloat m_tickMinimum; + // Interaction MouseState m_mouseState; QPoint m_mousePos; @@ -97,6 +101,11 @@ public: void setSurfaceGrid(bool enable); bool surfaceGrid(); + // Set tick count and step. Note; tickCount * step should be the maximum possible value of data + // set. Minimum is the absolute minimum possible value a bar can have. This is especially + // important to set if values can be negative. + void setTickCount(GLint tickCount, GLfloat step, GLfloat minimum = 0.0f); + //TODO: Temp solution void setData(QList<qreal> series, int width, int depth); @@ -115,6 +124,7 @@ public: signals: void smoothStatusChanged(bool enable); void surfaceGridChanged(bool enable); + void tickCountChanged(GLint tickCount, GLfloat step, GLfloat minimum); private: Q_DISABLE_COPY(Surface3dController) |