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
df7cef1c
Kaydet (Commit)
df7cef1c
authored
May 10, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
give each series an own color
Change-Id: Ia74eda050349d34d23e07b8e700aaae97e43d903
üst
27340aeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+5
-1
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
df7cef1c
...
@@ -58,6 +58,10 @@ void GL3DBarChart::create3DShapes()
...
@@ -58,6 +58,10 @@ void GL3DBarChart::create3DShapes()
float
nXEnd
=
0.0
;
float
nXEnd
=
0.0
;
float
nYPos
=
0.0
;
float
nYPos
=
0.0
;
const
Color
aSeriesColor
[]
=
{
COL_RED
,
COL_GREEN
,
COL_YELLOW
,
COL_BROWN
,
COL_GRAY
};
maShapes
.
clear
();
maShapes
.
clear
();
maShapes
.
push_back
(
new
opengl3D
::
Camera
(
mpRenderer
.
get
()));
maShapes
.
push_back
(
new
opengl3D
::
Camera
(
mpRenderer
.
get
()));
sal_Int32
nSeriesIndex
=
0
;
sal_Int32
nSeriesIndex
=
0
;
...
@@ -85,12 +89,12 @@ void GL3DBarChart::create3DShapes()
...
@@ -85,12 +89,12 @@ void GL3DBarChart::create3DShapes()
aBottomRight
.
y
+=
aTextSize
.
getHeight
();
aBottomRight
.
y
+=
aTextSize
.
getHeight
();
p
->
setPosition
(
aTopLeft
,
aTopRight
,
aBottomRight
);
p
->
setPosition
(
aTopLeft
,
aTopRight
,
aBottomRight
);
sal_Int32
nColor
=
aSeriesColor
[
nSeriesIndex
%
SAL_N_ELEMENTS
(
aSeriesColor
)].
GetColor
();
for
(
sal_Int32
nIndex
=
0
;
nIndex
<
nPointCount
;
++
nIndex
)
for
(
sal_Int32
nIndex
=
0
;
nIndex
<
nPointCount
;
++
nIndex
)
{
{
float
nVal
=
rDataSeries
.
getYValue
(
nIndex
);
float
nVal
=
rDataSeries
.
getYValue
(
nIndex
);
float
nXPos
=
nIndex
*
(
nBarSizeX
+
nBarDistanceX
);
float
nXPos
=
nIndex
*
(
nBarSizeX
+
nBarDistanceX
);
sal_Int32
nColor
=
COL_RED
;
glm
::
mat4
aBarPosition
;
glm
::
mat4
aBarPosition
;
aBarPosition
=
glm
::
scale
(
aBarPosition
,
nBarSizeX
,
nBarSizeY
,
nVal
);
aBarPosition
=
glm
::
scale
(
aBarPosition
,
nBarSizeX
,
nBarSizeY
,
nVal
);
...
...
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