From 84d20142bd8926be2e08e4354635f36bc681f186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Thu, 30 Jan 2014 11:15:53 +0200 Subject: Moved nonfunctional public methods to private Task-number: QTRD-2809 Change-Id: I009316652475d71d82a66ba23368b045f34c1f9a Reviewed-by: Miikka Heikkinen --- src/datavisualization/engine/q3dscene.cpp | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/datavisualization/engine/q3dscene.cpp') diff --git a/src/datavisualization/engine/q3dscene.cpp b/src/datavisualization/engine/q3dscene.cpp index 6ee4e275..f4467f22 100644 --- a/src/datavisualization/engine/q3dscene.cpp +++ b/src/datavisualization/engine/q3dscene.cpp @@ -438,23 +438,6 @@ void Q3DScene::setDevicePixelRatio(float pixelRatio) } } -/*! - * Calculates and sets the light position relative to the currently active camera using the given - * parameters. - * The relative 3D offset to the current camera position is defined in \a relativePosition. - * Optional \a fixedRotation fixes the light rotation around the data visualization area to the - * given value in degrees. - * Optional \a distanceModifier modifies the distance of the light from the data visualization. - */ -void Q3DScene::setLightPositionRelativeToCamera(const QVector3D &relativePosition, - float fixedRotation, float distanceModifier) -{ - d_ptr->m_light->setPosition( - d_ptr->m_camera->calculatePositionRelativeToCamera(relativePosition, - fixedRotation, - distanceModifier)); -} - Q3DScenePrivate::Q3DScenePrivate(Q3DScene *q) : QObject(0), q_ptr(q), @@ -650,4 +633,21 @@ QRect Q3DScenePrivate::glSecondarySubViewport() return m_glSecondarySubViewport; } +/*! + * \internal + * Calculates and sets the light position relative to the currently active camera using the given + * parameters. + * The relative 3D offset to the current camera position is defined in \a relativePosition. + * Optional \a fixedRotation fixes the light rotation around the data visualization area to the + * given value in degrees. + * Optional \a distanceModifier modifies the distance of the light from the data visualization. + */ +void Q3DScenePrivate::setLightPositionRelativeToCamera(const QVector3D &relativePosition, + float fixedRotation, float distanceModifier) +{ + m_light->setPosition(m_camera->d_ptr->calculatePositionRelativeToCamera(relativePosition, + fixedRotation, + distanceModifier)); +} + QT_END_NAMESPACE_DATAVISUALIZATION -- cgit v1.2.3