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
2597da2d
Kaydet (Commit)
2597da2d
authored
Agu 03, 2014
tarafından
weigao
Kaydeden (comit)
Markus Mohrhard
Agu 06, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add functions of setting the speed and distance of bars
Change-Id: Id44adf11d445b9c30467e220465528a80ee31b18
üst
cc20cedc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+6
-0
GL3DRenderer.hxx
chart2/source/view/inc/GL3DRenderer.hxx
+4
-0
GL3DRenderer.cxx
chart2/source/view/main/GL3DRenderer.cxx
+11
-0
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
2597da2d
...
...
@@ -654,6 +654,12 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
}
if
(
BENCH_MARK_MODE
&&
(
!
mpRenderThread
.
is
()))
{
//if scroll the bars, set the speed and distance first
if
(
mbScrollFlg
)
{
mpRenderer
->
SetScrollSpeed
((
float
)(
BAR_SIZE_X
+
BAR_DISTANCE_X
)
/
(
float
)
miScrollRate
);
mpRenderer
->
SetScrollDistance
((
float
)(
BAR_SIZE_X
+
BAR_DISTANCE_X
));
}
Size
aSize
=
mrWindow
.
GetSizePixel
();
mrWindow
.
getContext
().
setWinSize
(
aSize
);
mpRenderThread
=
rtl
::
Reference
<
RenderThread
>
(
new
RenderBenchMarkThread
(
this
));
...
...
chart2/source/view/inc/GL3DRenderer.hxx
Dosyayı görüntüle @
2597da2d
...
...
@@ -210,6 +210,8 @@ public:
void
StartClick
(
sal_uInt32
&
selectID
);
void
EndClick
();
void
SetScroll
();
void
SetScrollSpeed
(
float
scrollSpeed
);
void
SetScrollDistance
(
float
scrollDistance
);
private
:
void
MoveModelf
(
const
PosVecf3
&
trans
,
const
PosVecf3
&
angle
,
const
PosVecf3
&
scale
);
...
...
@@ -453,6 +455,8 @@ private:
std
::
vector
<
GLuint
>
m_Texturelist
;
bool
m_bHighLighting
;
sal_uInt32
m_uiSelectID
;
float
m_fScrollSpeed
;
float
m_fScrollDistance
;
};
}
...
...
chart2/source/view/main/GL3DRenderer.cxx
Dosyayı görüntüle @
2597da2d
...
...
@@ -109,6 +109,8 @@ OpenGL3DRenderer::OpenGL3DRenderer():
,
m_iLightNum
(
0
)
,
m_bHighLighting
(
false
)
,
m_uiSelectID
(
0
)
,
m_fScrollSpeed
(
0.0
f
)
,
m_fScrollDistance
(
0.0
f
)
{
m_Polygon3DInfo
.
lineOnly
=
false
;
m_Polygon3DInfo
.
twoSidesLighting
=
false
;
...
...
@@ -2281,6 +2283,15 @@ void OpenGL3DRenderer::SetScroll()
maResources
.
m_bScrollFlag
=
true
;
}
void
OpenGL3DRenderer
::
SetScrollSpeed
(
float
scrollSpeed
)
{
m_fScrollSpeed
=
scrollSpeed
;
}
void
OpenGL3DRenderer
::
SetScrollDistance
(
float
scrollDistance
)
{
m_fScrollDistance
=
scrollDistance
;
}
void
OpenGL3DRenderer
::
RenderBatchBars
(
bool
bNewScene
)
{
if
(
bNewScene
)
...
...
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