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
b976c1e3
Kaydet (Commit)
b976c1e3
authored
Kas 19, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-function
Change-Id: I4ae45a0809cc57fad3d8e872952aedfead27a518
üst
01d26477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
82 deletions
+0
-82
NetChart.cxx
chart2/source/view/charttypes/NetChart.cxx
+0
-82
No files found.
chart2/source/view/charttypes/NetChart.cxx
Dosyayı görüntüle @
b976c1e3
...
...
@@ -126,88 +126,6 @@ void NetChart::addSeries( VDataSeries* pSeries, sal_Int32 zSlot, sal_Int32 xSlot
VSeriesPlotter
::
addSeries
(
pSeries
,
zSlot
,
xSlot
,
ySlot
);
}
namespace
{
void
lcl_removeDuplicatePoints
(
drawing
::
PolyPolygonShape3D
&
rPolyPoly
,
PlottingPositionHelper
&
rPosHelper
)
{
sal_Int32
nPolyCount
=
rPolyPoly
.
SequenceX
.
getLength
();
if
(
!
nPolyCount
)
return
;
drawing
::
PolyPolygonShape3D
aTmp
;
aTmp
.
SequenceX
.
realloc
(
nPolyCount
);
aTmp
.
SequenceY
.
realloc
(
nPolyCount
);
aTmp
.
SequenceZ
.
realloc
(
nPolyCount
);
for
(
sal_Int32
nPolygonIndex
=
0
;
nPolygonIndex
<
nPolyCount
;
nPolygonIndex
++
)
{
drawing
::
DoubleSequence
*
pOuterSourceX
=
&
rPolyPoly
.
SequenceX
.
getArray
()[
nPolygonIndex
];
drawing
::
DoubleSequence
*
pOuterSourceY
=
&
rPolyPoly
.
SequenceY
.
getArray
()[
nPolygonIndex
];
drawing
::
DoubleSequence
*
pOuterSourceZ
=
&
rPolyPoly
.
SequenceZ
.
getArray
()[
nPolygonIndex
];
drawing
::
DoubleSequence
*
pOuterTargetX
=
&
aTmp
.
SequenceX
.
getArray
()[
nPolygonIndex
];
drawing
::
DoubleSequence
*
pOuterTargetY
=
&
aTmp
.
SequenceY
.
getArray
()[
nPolygonIndex
];
drawing
::
DoubleSequence
*
pOuterTargetZ
=
&
aTmp
.
SequenceZ
.
getArray
()[
nPolygonIndex
];
sal_Int32
nPointCount
=
pOuterSourceX
->
getLength
();
if
(
!
nPointCount
)
continue
;
pOuterTargetX
->
realloc
(
nPointCount
);
pOuterTargetY
->
realloc
(
nPointCount
);
pOuterTargetZ
->
realloc
(
nPointCount
);
double
*
pSourceX
=
pOuterSourceX
->
getArray
();
double
*
pSourceY
=
pOuterSourceY
->
getArray
();
double
*
pSourceZ
=
pOuterSourceZ
->
getArray
();
double
*
pTargetX
=
pOuterTargetX
->
getArray
();
double
*
pTargetY
=
pOuterTargetY
->
getArray
();
double
*
pTargetZ
=
pOuterTargetZ
->
getArray
();
//copy first point
*
pTargetX
=*
pSourceX
++
;
*
pTargetY
=*
pSourceY
++
;
*
pTargetZ
=*
pSourceZ
++
;
sal_Int32
nTargetPointCount
=
1
;
for
(
sal_Int32
nSource
=
1
;
nSource
<
nPointCount
;
nSource
++
)
{
if
(
!
rPosHelper
.
isSameForGivenResolution
(
*
pTargetX
,
*
pTargetY
,
*
pTargetZ
,
*
pSourceX
,
*
pSourceY
,
*
pSourceZ
)
)
{
pTargetX
++
;
pTargetY
++
;
pTargetZ
++
;
*
pTargetX
=*
pSourceX
;
*
pTargetY
=*
pSourceY
;
*
pTargetZ
=*
pSourceZ
;
nTargetPointCount
++
;
}
pSourceX
++
;
pSourceY
++
;
pSourceZ
++
;
}
//free unused space
if
(
nTargetPointCount
<
nPointCount
)
{
pOuterTargetX
->
realloc
(
nTargetPointCount
);
pOuterTargetY
->
realloc
(
nTargetPointCount
);
pOuterTargetZ
->
realloc
(
nTargetPointCount
);
}
pOuterSourceX
->
realloc
(
0
);
pOuterSourceY
->
realloc
(
0
);
pOuterSourceZ
->
realloc
(
0
);
}
//free space
rPolyPoly
.
SequenceX
.
realloc
(
nPolyCount
);
rPolyPoly
.
SequenceY
.
realloc
(
nPolyCount
);
rPolyPoly
.
SequenceZ
.
realloc
(
nPolyCount
);
rPolyPoly
=
aTmp
;
}
}
bool
NetChart
::
impl_createLine
(
VDataSeries
*
pSeries
,
drawing
::
PolyPolygonShape3D
*
pSeriesPoly
,
PlottingPositionHelper
*
pPosHelper
)
...
...
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