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
aa26f8b6
Kaydet (Commit)
aa26f8b6
authored
May 09, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need to store these text objects separately.
Change-Id: I0ee63480fa0f15f42c81818d89ff5b5a3407ece4
üst
1d188294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+2
-14
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
aa26f8b6
...
...
@@ -55,9 +55,6 @@ void GL3DBarChart::create3DShapes()
const
float
nBarDistanceY
=
nBarSizeY
/
2
;
sal_uInt32
nId
=
1
;
std
::
vector
<
opengl3D
::
Text
*>
aYAxisTexts
;
float
nYPos
=
0.0
;
maShapes
.
clear
();
...
...
@@ -76,8 +73,8 @@ void GL3DBarChart::create3DShapes()
DataSeriesHelper
::
getDataSeriesLabel
(
rDataSeries
.
getModel
(),
mxChartType
->
getRoleOfSequenceForSeriesLabel
());
aYAxisText
s
.
push_back
(
new
opengl3D
::
Text
(
mpRenderer
.
get
(),
aSeriesName
,
nId
++
));
opengl3D
::
Text
*
p
=
aYAxisTexts
.
back
(
);
maShape
s
.
push_back
(
new
opengl3D
::
Text
(
mpRenderer
.
get
(),
aSeriesName
,
nId
++
));
opengl3D
::
Text
*
p
=
static_cast
<
opengl3D
::
Text
*>
(
&
maShapes
.
back
()
);
Size
aTextSize
=
p
->
getSize
();
glm
::
vec3
aTopLeft
,
aTopRight
,
aBottomRight
;
aTopLeft
.
x
=
aTextSize
.
getWidth
()
*
-
1.0
;
...
...
@@ -124,15 +121,6 @@ void GL3DBarChart::create3DShapes()
aBottomRight
.
y
+=
aTextSize
.
getHeight
();
p
->
setPosition
(
aTopLeft
,
aTopRight
,
aBottomRight
);
}
{
// Transfer all Y-axis text objects to the shape collection.
std
::
vector
<
opengl3D
::
Text
*>::
iterator
itText
=
aYAxisTexts
.
begin
(),
itTextEnd
=
aYAxisTexts
.
end
();
for
(;
itText
!=
itTextEnd
;
++
itText
)
maShapes
.
push_back
(
*
itText
);
}
aYAxisTexts
.
clear
();
}
void
GL3DBarChart
::
render
()
...
...
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