diff options
author | weigao <weigao@multicorewareinc.com> | 2014-06-16 23:21:04 -0700 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-06-17 07:43:58 +0200 |
commit | a96c575764a36399e459813d6204db3bfc0a08f3 (patch) | |
tree | dc4d61184130d6d91c893c5edcdb5990793173e5 /chart2 | |
parent | 6c4ce5f351f7acf2086f5bf2b67ef15ffcda0c51 (diff) |
modify the click view angle
Change-Id: I8717745d2f503f8ad3c21673a07aed867b5681f9
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index 88f49dd840b3..c88980980802 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -400,14 +400,15 @@ void GL3DBarChart::clickedAt(const Point& rPos, sal_uInt16 nButtons) render(); glm::vec3 maTargetPosition = rBarInfo.maPos; - maTargetPosition.z += 45; - maStep = (maTargetPosition - maCameraPosition)/100.0f; + maTargetPosition.z += 240; + maTargetPosition.y += BAR_SIZE_Y / 2.0f; + maStep = (maTargetPosition - maCameraPosition)/((float)mnStepsTotal); glm::vec3 maTargetDirection = rBarInfo.maPos; maTargetDirection.x += BAR_SIZE_X / 2.0f; maTargetDirection.y += BAR_SIZE_Y / 2.0f; - maStepDirection = (maTargetDirection - maCameraDirection)/100.f; + maStepDirection = (maTargetDirection - maCameraDirection)/((float)mnStepsTotal); maTimer.SetTimeout(TIMEOUT); maTimer.SetTimeoutHdl(LINK(this, GL3DBarChart, MoveToBar)); |