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
389d8e9f
Kaydet (Commit)
389d8e9f
authored
Haz 01, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix refresh problem with 2D OpenGL chart and OpenGLWindow
Change-Id: I32f23967a826262051495d57a4dd529ca3694548
üst
dacab845
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
ChartView.hxx
chart2/inc/ChartView.hxx
+3
-0
ChartView.cxx
chart2/source/view/main/ChartView.cxx
+43
-0
No files found.
chart2/inc/ChartView.hxx
Dosyayı görüntüle @
389d8e9f
...
...
@@ -55,6 +55,7 @@ class DrawModelWrapper;
class
SeriesPlotterContainer
;
class
VDataSeries
;
class
GL3DPlotterBase
;
class
GL2DRenderer
;
enum
TimeBasedMode
{
...
...
@@ -103,6 +104,7 @@ class ChartView : public ::cppu::WeakImplHelper10<
,
public
ExplicitValueProvider
,
private
SfxListener
{
friend
class
GL2DRenderer
;
private
:
void
init
();
...
...
@@ -277,6 +279,7 @@ private: //member
boost
::
shared_ptr
<
GL3DPlotterBase
>
m_pGL3DPlotter
;
TimeBasedInfo
maTimeBased
;
osl
::
Mutex
maTimeMutex
;
boost
::
scoped_ptr
<
GL2DRenderer
>
mp2DRenderer
;
};
}
...
...
chart2/source/view/main/ChartView.cxx
Dosyayı görüntüle @
389d8e9f
...
...
@@ -154,6 +154,46 @@ void debugGL3DOutput( ChartModel& rModel )
}
class
GL2DRenderer
:
public
IRenderer
{
public
:
GL2DRenderer
(
ChartView
*
pView
);
virtual
void
update
()
SAL_OVERRIDE
;
virtual
void
clickedAt
(
const
Point
&
rPos
,
sal_uInt16
nButton
)
SAL_OVERRIDE
;
virtual
void
mouseDragMove
(
const
Point
&
rBegin
,
const
Point
&
rEnd
,
sal_uInt16
nButton
)
SAL_OVERRIDE
;
virtual
void
scroll
(
long
nDelta
)
SAL_OVERRIDE
;
virtual
void
contextDestroyed
()
SAL_OVERRIDE
;
private
:
ChartView
*
mpView
;
};
GL2DRenderer
::
GL2DRenderer
(
ChartView
*
pView
)
:
mpView
(
pView
)
{
}
void
GL2DRenderer
::
update
()
{
mpView
->
render
();
}
void
GL2DRenderer
::
clickedAt
(
const
Point
&
,
sal_uInt16
)
{
}
void
GL2DRenderer
::
mouseDragMove
(
const
Point
&
,
const
Point
&
,
sal_uInt16
)
{
}
void
GL2DRenderer
::
scroll
(
long
)
{
}
void
GL2DRenderer
::
contextDestroyed
()
{
}
const
uno
::
Sequence
<
sal_Int8
>&
ExplicitValueProvider
::
getUnoTunnelId
()
{
return
theExplicitValueProviderUnoTunnelId
::
get
().
getSeq
();
...
...
@@ -195,6 +235,7 @@ ChartView::ChartView(
,
m_nScaleYDenominator
(
1
)
,
m_bSdrViewIsInEditMode
(
false
)
,
m_aResultingDiagramRectangleExcludingAxes
(
0
,
0
,
0
,
0
)
,
mp2DRenderer
(
new
GL2DRenderer
(
this
))
{
init
();
}
...
...
@@ -2674,6 +2715,8 @@ void ChartView::render()
{
AbstractShapeFactory
*
pShapeFactory
=
AbstractShapeFactory
::
getOrCreateShapeFactory
(
m_xShapeFactory
);
OpenGLWindow
*
pWindow
=
mrChartModel
.
getOpenGLWindow
();
if
(
pWindow
)
pWindow
->
setRenderer
(
mp2DRenderer
.
get
());
bool
bRender
=
pShapeFactory
->
preRender
(
pWindow
);
if
(
bRender
)
{
...
...
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