Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
af5dfd8a
Kaydet (Commit)
af5dfd8a
authored
Haz 17, 2014
tarafından
weigao
Kaydeden (comit)
Markus Mohrhard
Haz 17, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add move to default process
Change-Id: I8d562b3e2d1bb83a6e07ed089a3006a109beeece
üst
a96c5757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+7
-12
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
af5dfd8a
...
@@ -357,24 +357,19 @@ void GL3DBarChart::moveToDefault()
...
@@ -357,24 +357,19 @@ void GL3DBarChart::moveToDefault()
glm
::
vec3
maTargetDirection
=
maDefaultCameraDirection
;
glm
::
vec3
maTargetDirection
=
maDefaultCameraDirection
;
maStepDirection
=
(
maTargetDirection
-
maCameraDirection
)
/
((
float
)
mnStepsTotal
);
maStepDirection
=
(
maTargetDirection
-
maCameraDirection
)
/
((
float
)
mnStepsTotal
);
while
((
mnStep
<
mnStepsTotal
)
&&
mbBlockUserInput
)
maTimer
.
SetTimeout
(
TIMEOUT
);
{
maTimer
.
SetTimeoutHdl
(
LINK
(
this
,
GL3DBarChart
,
MoveToBar
));
++
mnStep
;
maTimer
.
Start
();
maCameraPosition
+=
maStep
;
mpCamera
->
setPosition
(
maCameraPosition
);
maCameraDirection
+=
maStepDirection
;
mpCamera
->
setDirection
(
maCameraDirection
);
render
();
}
maShapes
.
pop_back
();
mbBlockUserInput
=
false
;
mnStep
=
0
;
}
}
void
GL3DBarChart
::
clickedAt
(
const
Point
&
rPos
,
sal_uInt16
nButtons
)
void
GL3DBarChart
::
clickedAt
(
const
Point
&
rPos
,
sal_uInt16
nButtons
)
{
{
if
(
mbBlockUserInput
)
if
(
mbBlockUserInput
)
return
;
return
;
if
(
nButtons
==
MOUSE_RIGHT
)
{
moveToDefault
();
}
if
(
nButtons
!=
MOUSE_LEFT
)
if
(
nButtons
!=
MOUSE_LEFT
)
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment