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
ce538c82
Kaydet (Commit)
ce538c82
authored
Agu 26, 2014
tarafından
weigao
Kaydeden (comit)
Markus Mohrhard
Agu 27, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reduce render fps and data update fps to half
Change-Id: Ibb8b57577696e582c05ac0ea372385373e3444de
üst
ca2c7b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GL3DBarChart.cxx
chart2/source/view/charttypes/GL3DBarChart.cxx
+3
-3
No files found.
chart2/source/view/charttypes/GL3DBarChart.cxx
Dosyayı görüntüle @
ce538c82
...
@@ -999,7 +999,7 @@ void GL3DBarChart::addScreenTextShape(OUString &nStr, glm::vec2 rLeftTop, float
...
@@ -999,7 +999,7 @@ void GL3DBarChart::addScreenTextShape(OUString &nStr, glm::vec2 rLeftTop, float
{
{
maScreenTextShapes
.
push_back
(
new
opengl3D
::
ScreenText
(
mpRenderer
.
get
(),
*
mpTextCache
,
nStr
,
nEvent
));
maScreenTextShapes
.
push_back
(
new
opengl3D
::
ScreenText
(
mpRenderer
.
get
(),
*
mpTextCache
,
nStr
,
nEvent
));
const
opengl3D
::
TextCacheItem
&
rTextCache
=
mpTextCache
->
getText
(
nStr
);
const
opengl3D
::
TextCacheItem
&
rTextCache
=
mpTextCache
->
getText
(
nStr
);
float
nRectWidth
=
(
float
)
rTextCache
.
maSize
.
Width
()
/
(
float
)
rTextCache
.
maSize
.
Height
()
*
0.05
;
float
nRectWidth
=
(
float
)
rTextCache
.
maSize
.
Width
()
/
(
float
)
rTextCache
.
maSize
.
Height
()
*
nTextHeight
/
2.0
f
;
opengl3D
::
ScreenText
*
pScreenText
=
static_cast
<
opengl3D
::
ScreenText
*>
(
&
maScreenTextShapes
.
back
());
opengl3D
::
ScreenText
*
pScreenText
=
static_cast
<
opengl3D
::
ScreenText
*>
(
&
maScreenTextShapes
.
back
());
pScreenText
->
setPosition
(
rLeftTop
,
glm
::
vec2
(
rLeftTop
.
x
+
nRectWidth
,
rLeftTop
.
y
-
nTextHeight
),
rPos
);
pScreenText
->
setPosition
(
rLeftTop
,
glm
::
vec2
(
rLeftTop
.
x
+
nRectWidth
,
rLeftTop
.
y
-
nTextHeight
),
rPos
);
}
}
...
@@ -1017,7 +1017,7 @@ void GL3DBarChart::updateRenderFPS()
...
@@ -1017,7 +1017,7 @@ void GL3DBarChart::updateRenderFPS()
osl_getSystemTime
(
&
maFPSRenderStartTime
);
osl_getSystemTime
(
&
maFPSRenderStartTime
);
}
}
osl_getSystemTime
(
&
maFPSRenderEndTime
);
osl_getSystemTime
(
&
maFPSRenderEndTime
);
addScreenTextShape
(
maFPS
,
glm
::
vec2
(
-
0.99
f
,
0.99
f
),
0.
1
f
);
addScreenTextShape
(
maFPS
,
glm
::
vec2
(
-
0.99
f
,
0.99
f
),
0.
06
f
);
}
}
int
GL3DBarChart
::
calcTimeInterval
(
TimeValue
&
startTime
,
TimeValue
&
endTime
)
int
GL3DBarChart
::
calcTimeInterval
(
TimeValue
&
startTime
,
TimeValue
&
endTime
)
...
@@ -1061,7 +1061,7 @@ void GL3DBarChart::updateDataUpdateFPS()
...
@@ -1061,7 +1061,7 @@ void GL3DBarChart::updateDataUpdateFPS()
osl_getSystemTime
(
&
maDataUpdateStartTime
);
osl_getSystemTime
(
&
maDataUpdateStartTime
);
}
}
osl_getSystemTime
(
&
maDataUpdateEndTime
);
osl_getSystemTime
(
&
maDataUpdateEndTime
);
addScreenTextShape
(
maDataUpdateFPS
,
glm
::
vec2
(
-
0.69
f
,
0.99
f
),
0.
1
f
);
addScreenTextShape
(
maDataUpdateFPS
,
glm
::
vec2
(
-
0.69
f
,
0.99
f
),
0.
06
f
);
}
}
void
GL3DBarChart
::
recordBarHistory
(
sal_uInt32
&
nBarID
,
float
&
nVal
)
void
GL3DBarChart
::
recordBarHistory
(
sal_uInt32
&
nBarID
,
float
&
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