From e584f8753a39d3364aa50b4b89bafa4a0209af7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Fri, 18 Nov 2016 13:12:13 +0200 Subject: Allow light position modification by user Change-Id: I7efd56754bae16990fd11081493da0a37698f76b Task-number: QTRD-1803 Reviewed-by: Miikka Heikkinen --- src/datavisualization/engine/q3dobject.cpp | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'src/datavisualization/engine/q3dobject.cpp') diff --git a/src/datavisualization/engine/q3dobject.cpp b/src/datavisualization/engine/q3dobject.cpp index 42c9ccd9..f7757293 100644 --- a/src/datavisualization/engine/q3dobject.cpp +++ b/src/datavisualization/engine/q3dobject.cpp @@ -42,6 +42,28 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION The object is considered to be a single point in the coordinate space without dimensions. */ +/*! + \qmltype Object3D + \inqmlmodule QtDataVisualization + \since QtDataVisualization 1.0 + \ingroup datavisualization_qml + \instantiates Q3DObject + \brief Simple baseclass for all the objects in the 3D scene. + + Object3D is an uncreatable base type that contains only position information for an object in + 3D scene. The object is considered to be a single point in the coordinate space without + dimensions. +*/ + +/*! + * \qmlproperty vector3d Object3D::position + * + * This property contains the 3D position of the object. + * + * \note Currently setting this property has no effect for Camera3D, as the position is handled + * internally. + */ + /*! * Constructs a new 3D object with position set to origin by default. An * optional \a parent parameter can be given and is then passed to QObject constructor. @@ -84,8 +106,8 @@ Q3DScene *Q3DObject::parentScene() * * This property contains the 3D position of the object. * - * \note Currently setting this property has no effect, as the positions of Q3DObjects in the - * scene are handled internally. + * \note Currently setting this property has no effect for Q3DCamera, as the position is handled + * internally. */ QVector3D Q3DObject::position() const { -- cgit v1.2.3