chart2/source/view/inc/3DChartObjects.hxx | 4 ++++ chart2/source/view/main/3DChartObjects.cxx | 4 ++++ 2 files changed, 8 insertions(+)
New commits: commit 166c282e98ded4822425e034b1002d7fe447f405 Author: Jan Holesovsky <ke...@collabora.com> Date: Tue May 6 21:22:21 2014 +0200 3d charts: Zoom the camera towards a bar. Change-Id: I3fa644924ca176dfd853b527e0c42dadaf9fa091 diff --git a/chart2/source/view/inc/3DChartObjects.hxx b/chart2/source/view/inc/3DChartObjects.hxx index db2e5fd..c86b3f0 100644 --- a/chart2/source/view/inc/3DChartObjects.hxx +++ b/chart2/source/view/inc/3DChartObjects.hxx @@ -89,6 +89,10 @@ class Camera : public Renderable3DObject public: Camera(OpenGL3DRenderer* pRenderer); virtual void render() SAL_OVERRIDE; + + /// Zooms the camera towards the bar with Unique Id nId. + void zoom(sal_uInt32 nId); + private: glm::vec3 maPos; glm::vec3 maUp; diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx index 330747d..19770c0 100644 --- a/chart2/source/view/main/3DChartObjects.cxx +++ b/chart2/source/view/main/3DChartObjects.cxx @@ -111,6 +111,10 @@ void Camera::render() mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true); } +void Camera::zoom(sal_uInt32 /*nId*/) +{ + // TODO here +} namespace temporary { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits