[Libreoffice-commits] core.git: chart2/source
Jan Holesovsky
kendy at collabora.com
Tue May 6 12:23:47 PDT 2014
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 <kendy at 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 {
More information about the Libreoffice-commits
mailing list