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
5695cdfd
Kaydet (Commit)
5695cdfd
authored
May 28, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
May 28, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
change the bar direction for the demo
Change-Id: I24e45810cb154310d8e35982e2ef100cf5746e2b
üst
a8b7fcf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+4
-4
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
5695cdfd
...
...
@@ -103,8 +103,8 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
// guarantee they are positioned correctly. In fact, they are guaranteed
// to be positioned incorrectly.
const
float
nBarSizeX
=
5
.0
f
;
const
float
nBarSizeY
=
30
.0
f
;
const
float
nBarSizeX
=
30
.0
f
;
const
float
nBarSizeY
=
5
.0
f
;
const
float
nBarDistanceX
=
5.0
f
;
const
float
nBarDistanceY
=
5.0
;
...
...
@@ -153,9 +153,9 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
opengl3D
::
Text
*
p
=
static_cast
<
opengl3D
::
Text
*>
(
&
maShapes
.
back
());
glm
::
vec3
aTopLeft
,
aTopRight
,
aBottomRight
;
aTopRight
.
x
=
-
nBarDistanceY
;
aTopRight
.
y
=
nYPos
+
0.25
*
nBarSiz
eY
;
aTopRight
.
y
=
nYPos
+
nBarDistanc
eY
;
aTopLeft
.
x
=
calculateTextWidth
(
aSeriesName
)
*
-
1.0
-
nBarDistanceY
;
aTopLeft
.
y
=
nYPos
+
0.25
*
nBarSiz
eY
;
aTopLeft
.
y
=
nYPos
+
nBarDistanc
eY
;
aBottomRight
=
aTopRight
;
aBottomRight
.
y
-=
TEXT_HEIGHT
;
p
->
setPosition
(
aTopLeft
,
aTopRight
,
aBottomRight
);
...
...
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