summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/q3dscatter.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-09-12 13:35:08 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-09-12 13:35:35 +0300
commit77ac34f3584bd4712c303cac7ec1486c1ef74b4b (patch)
treeadfb1fa672b6dfc5088cf4c4ce2ea0281a28d7e6 /src/datavisualization/engine/q3dscatter.cpp
parent7f8966b035c9fd73d2cde04521c92892feefc0f9 (diff)
Added getters
Task-number: QTRD-2243 Change-Id: I13ba560a853c2c39fc24c6dc373e50d56f8c33ef Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dscatter.cpp')
-rw-r--r--src/datavisualization/engine/q3dscatter.cpp42
1 files changed, 30 insertions, 12 deletions
diff --git a/src/datavisualization/engine/q3dscatter.cpp b/src/datavisualization/engine/q3dscatter.cpp
index f034b816..bac9a38d 100644
--- a/src/datavisualization/engine/q3dscatter.cpp
+++ b/src/datavisualization/engine/q3dscatter.cpp
@@ -316,13 +316,20 @@ void Q3DScatter::setObjectType(QDataVis::MeshStyle style, bool smooth)
}
/*!
- * Moves camera to a \a preset position. The position can be one of \c QDataVis::CameraPreset.
+ * \property Q3DScatter::cameraPreset
+ *
+ * The \a preset position of the camera. The position can be one of \c QDataVis::CameraPreset.
*/
void Q3DScatter::setCameraPreset(QDataVis::CameraPreset preset)
{
d_ptr->m_shared->setCameraPreset(preset);
}
+QDataVis::CameraPreset Q3DScatter::cameraPreset() const
+{
+ return d_ptr->m_shared->cameraPreset();
+}
+
/*!
* Move camera to a wanted position based on \a horizontal and \a vertical angles. Angles are limited
* to -180...180 in horizontal direction and -90...90 in vertical. \a distance is adjustable
@@ -339,6 +346,8 @@ void Q3DScatter::setCameraPosition(qreal horizontal, qreal vertical, int distanc
* grid color. Lighting is also adjusted by themes.
*
* \sa setObjectColor()
+ *
+ * \warning This method is subject to change.
*/
void Q3DScatter::setTheme(QDataVis::ColorTheme theme)
{
@@ -346,14 +355,9 @@ void Q3DScatter::setTheme(QDataVis::ColorTheme theme)
}
/*!
- * Set item color using your own colors. \a baseColor sets the base color of a item. If all other
- * colors are black, this sets the final color of the item if uniform is set to false.
- * \a heightColor is added to the item based on its height. The higher the item, the more prominent
- * this color becomes. Setting this black keeps the color unchanged regardless of height.
- * \a depthColor becomes more prominent the further away from the first row the item is.
- * Setting this black keeps items the same color regardless of "depth" in the set. \a uniform -flag
- * is used to define if color needs to be uniform throughout item's length, or will the colors be
- * applied by height. It is \c true by default.
+ * Set item color using your own colors. \a baseColor sets the base color of a item. The \a uniform
+ * -flag is used to define if color needs to be uniform throughout item's length, or will the colors
+ * be applied by height. It is \c true by default.
*
* Calling this method overrides colors from theme.
*
@@ -361,10 +365,17 @@ void Q3DScatter::setTheme(QDataVis::ColorTheme theme)
*
* \warning This method is subject to change.
*/
-void Q3DScatter::setObjectColor(const QColor &baseColor, const QColor &heightColor,
- const QColor &depthColor, bool uniform)
+void Q3DScatter::setObjectColor(const QColor &baseColor, bool uniform)
{
- d_ptr->m_shared->setObjectColor(baseColor, heightColor, depthColor, uniform);
+ d_ptr->m_shared->setObjectColor(baseColor, uniform);
+}
+
+/*!
+ * \return item color in use.
+ */
+QColor Q3DScatter::objectColor() const
+{
+ return d_ptr->m_shared->objectColor();
}
/*!
@@ -384,6 +395,8 @@ QDataVis::SelectionMode Q3DScatter::selectionMode() const
}
/*!
+ * \property Q3DScatter::meshFileName
+ *
* Override item type with a mesh object located in \a objFileName.
* \note Object needs to be in Wavefront obj format and include vertices, normals and UVs.
* It also needs to be in triangles.
@@ -395,6 +408,11 @@ void Q3DScatter::setMeshFileName(const QString &objFileName)
d_ptr->m_shared->setMeshFileName(objFileName);
}
+QString Q3DScatter::meshFileName() const
+{
+ return d_ptr->m_shared->meshFileName();
+}
+
/*!
* \property Q3DScatter::font
*