diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-08-09 14:00:04 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-08-09 14:01:09 +0300 |
commit | 35a909ad090b682464aaf3eb9d9f508c33c62f86 (patch) | |
tree | d192785a6d42f13343e5dd02056ac6a63cf26df3 /src/datavis3d/engine/q3dscatter.h | |
parent | c0bd9987bd8262a629518c744062beab17a3a9ee (diff) |
Q3DScatter: Axes taken into use for lines and labels
-uniform scaling still needs labeling fix
Change-Id: I29c89a260124f6abaceee6d8b5b1938ef1fa19c0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavis3d/engine/q3dscatter.h')
-rw-r--r-- | src/datavis3d/engine/q3dscatter.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/datavis3d/engine/q3dscatter.h b/src/datavis3d/engine/q3dscatter.h index f85a5c5f..d34342da 100644 --- a/src/datavis3d/engine/q3dscatter.h +++ b/src/datavis3d/engine/q3dscatter.h @@ -50,7 +50,7 @@ QT_DATAVIS3D_BEGIN_NAMESPACE class Q3DScatterPrivate; class LabelItem; -class QAbstractAxis; +class QValueAxis; class QCategoryAxis; class QScatterDataProxy; @@ -104,11 +104,6 @@ public: void setBarColor(QColor baseColor, QColor heightColor, QColor depthColor, bool uniform = true); - // Set segment count and step. Note; segmentCount * 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 setSegmentCount(int segmentCount, qreal step, qreal minimum = 0.0f); - // override bar type with own mesh void setMeshFileName(const QString &objFileName); // TODO: light placement API @@ -150,12 +145,15 @@ public: void setShadowQuality(ShadowQuality quality); ShadowQuality shadowQuality(); - // Axes - row & column axes are fixed to category axes, value axis can be - // customized. - QCategoryAxis *rowAxis(); - QCategoryAxis *columnAxis(); - void setValueAxis(QAbstractAxis *axis); - QAbstractAxis *valueAxis(); + // Axes + void setValueAxisX(QValueAxis *axis); + QValueAxis *valueAxisX(); + + void setValueAxisY(QValueAxis *axis); + QValueAxis *valueAxisY(); + + void setValueAxisZ(QValueAxis *axis); + QValueAxis *valueAxisZ(); // Sets the data proxy. Assumes ownership of the data proxy. Deletes old proxy. void setDataProxy(QtDataVis3D::QScatterDataProxy *proxy); |