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
db3c6265
Kaydet (Commit)
db3c6265
authored
May 28, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
chart2: fix namespacing
Change-Id: Ib9ef14b4ce38f93f590473913a308a967343c75d
üst
b4150450
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
48 deletions
+43
-48
DummyXShape.hxx
chart2/source/view/main/DummyXShape.hxx
+34
-36
OpenGLRender.hxx
chart2/source/view/main/OpenGLRender.hxx
+9
-12
No files found.
chart2/source/view/main/DummyXShape.hxx
Dosyayı görüntüle @
db3c6265
...
...
@@ -62,8 +62,6 @@
#include <map>
#include <boost/unordered_map.hpp>
using
namespace
com
::
sun
::
star
;
namespace
chart
{
...
...
@@ -175,7 +173,7 @@ public:
protected
:
std
::
map
<
OUString
,
uno
::
Any
>
maProperties
;
std
::
map
<
OUString
,
css
::
uno
::
Any
>
maProperties
;
com
::
sun
::
star
::
awt
::
Point
maPosition
;
com
::
sun
::
star
::
awt
::
Size
maSize
;
...
...
@@ -189,29 +187,29 @@ private:
class
DummyCube
:
public
DummyXShape
{
public
:
DummyCube
(
const
drawing
::
Position3D
&
rPos
,
const
drawing
::
Direction3D
&
rSize
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xPropSet
,
DummyCube
(
const
css
::
drawing
::
Position3D
&
rPos
,
const
css
::
drawing
::
Direction3D
&
rSize
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
&
xPropSet
,
const
tPropertyNameMap
&
rPropertyNameMap
);
};
class
DummyCylinder
:
public
DummyXShape
{
public
:
DummyCylinder
(
const
drawing
::
Position3D
&
,
const
drawing
::
Direction3D
&
rSize
);
DummyCylinder
(
const
css
::
drawing
::
Position3D
&
,
const
css
::
drawing
::
Direction3D
&
rSize
);
};
class
DummyPyramid
:
public
DummyXShape
{
public
:
DummyPyramid
(
const
drawing
::
Position3D
&
rPosition
,
const
drawing
::
Direction3D
&
rSize
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xPropSet
,
DummyPyramid
(
const
css
::
drawing
::
Position3D
&
rPosition
,
const
css
::
drawing
::
Direction3D
&
rSize
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
&
xPropSet
,
const
tPropertyNameMap
&
rPropertyNameMap
);
};
class
DummyCone
:
public
DummyXShape
{
public
:
DummyCone
(
const
drawing
::
Position3D
&
rPosition
,
const
drawing
::
Direction3D
&
rSize
);
DummyCone
(
const
css
::
drawing
::
Position3D
&
rPosition
,
const
css
::
drawing
::
Direction3D
&
rSize
);
};
class
DummyPieSegment2D
:
public
DummyXShape
...
...
@@ -219,7 +217,7 @@ class DummyPieSegment2D : public DummyXShape
public
:
DummyPieSegment2D
(
double
fUnitCircleStartAngleDegree
,
double
fUnitCircleWidthAngleDegree
,
double
fUnitCircleInnerRadius
,
double
fUnitCircleOuterRadius
,
const
drawing
::
Direction3D
&
rOffset
,
const
drawing
::
HomogenMatrix
&
rUnitCircleToScene
);
const
css
::
drawing
::
Direction3D
&
rOffset
,
const
css
::
drawing
::
HomogenMatrix
&
rUnitCircleToScene
);
void
render
()
SAL_OVERRIDE
;
private
:
double
mfUnitCircleStartAngleDegree
;
...
...
@@ -227,25 +225,25 @@ private:
double
mfUnitCircleInnerRadius
;
double
mfUnitCircleOuterRadius
;
drawing
::
Direction3D
maOffset
;
drawing
::
HomogenMatrix
maUnitCircleToScene
;
css
::
drawing
::
Direction3D
maOffset
;
css
::
drawing
::
HomogenMatrix
maUnitCircleToScene
;
};
class
DummyPieSegment
:
public
DummyXShape
{
public
:
DummyPieSegment
(
const
drawing
::
Direction3D
&
rOffset
,
const
drawing
::
HomogenMatrix
&
rUnitCircleToScene
);
const
css
::
drawing
::
Direction3D
&
rOffset
,
const
css
::
drawing
::
HomogenMatrix
&
rUnitCircleToScene
);
private
:
drawing
::
Direction3D
maOffset
;
drawing
::
HomogenMatrix
maUnitCircleToScene
;
css
::
drawing
::
Direction3D
maOffset
;
css
::
drawing
::
HomogenMatrix
maUnitCircleToScene
;
};
class
DummyStripe
:
public
DummyXShape
{
public
:
DummyStripe
(
const
Stripe
&
rStripe
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xPropSet
,
DummyStripe
(
const
Stripe
&
rStripe
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
&
xPropSet
,
const
tPropertyNameMap
&
rPropertyNameMap
);
private
:
...
...
@@ -255,32 +253,32 @@ private:
class
DummyArea3D
:
public
DummyXShape
{
public
:
DummyArea3D
(
const
drawing
::
PolyPolygonShape3D
&
rShape
);
DummyArea3D
(
const
css
::
drawing
::
PolyPolygonShape3D
&
rShape
);
private
:
drawing
::
PolyPolygonShape3D
maShapes
;
css
::
drawing
::
PolyPolygonShape3D
maShapes
;
};
class
DummyArea2D
:
public
DummyXShape
{
public
:
DummyArea2D
(
const
drawing
::
PointSequenceSequence
&
rShape
);
DummyArea2D
(
const
css
::
drawing
::
PointSequenceSequence
&
rShape
);
virtual
void
render
()
SAL_OVERRIDE
;
private
:
drawing
::
PointSequenceSequence
maShapes
;
css
::
drawing
::
PointSequenceSequence
maShapes
;
};
class
DummySymbol2D
:
public
DummyXShape
{
public
:
DummySymbol2D
(
const
drawing
::
Position3D
&
rPosition
,
const
drawing
::
Direction3D
&
rSize
,
DummySymbol2D
(
const
css
::
drawing
::
Position3D
&
rPosition
,
const
css
::
drawing
::
Direction3D
&
rSize
,
sal_Int32
nStandardSymbol
,
sal_Int32
nFillColor
);
void
render
()
SAL_OVERRIDE
;
private
:
drawing
::
Position3D
mrPosition
;
drawing
::
Direction3D
mrSize
;
css
::
drawing
::
Position3D
mrPosition
;
css
::
drawing
::
Direction3D
mrSize
;
sal_Int32
mnStandardSymbol
;
sal_Int32
mnFillColor
;
};
...
...
@@ -288,17 +286,17 @@ private:
class
DummyGraphic2D
:
public
DummyXShape
{
public
:
DummyGraphic2D
(
const
drawing
::
Position3D
&
rPosition
,
const
drawing
::
Direction3D
&
rSize
,
const
uno
::
Reference
<
graphic
::
XGraphic
>
xGraphic
);
DummyGraphic2D
(
const
css
::
drawing
::
Position3D
&
rPosition
,
const
css
::
drawing
::
Direction3D
&
rSize
,
const
css
::
uno
::
Reference
<
css
::
graphic
::
XGraphic
>
xGraphic
);
private
:
uno
::
Reference
<
graphic
::
XGraphic
>
mxGraphic
;
css
::
uno
::
Reference
<
css
::
graphic
::
XGraphic
>
mxGraphic
;
};
class
DummyCircle
:
public
DummyXShape
{
public
:
DummyCircle
(
const
awt
::
Point
&
rPosition
,
const
awt
::
Size
&
rSize
);
DummyCircle
(
const
css
::
awt
::
Point
&
rPosition
,
const
css
::
awt
::
Size
&
rSize
);
virtual
void
render
()
SAL_OVERRIDE
;
};
...
...
@@ -306,30 +304,30 @@ public:
class
DummyLine3D
:
public
DummyXShape
{
public
:
DummyLine3D
(
const
drawing
::
PolyPolygonShape3D
&
rPoints
,
const
VLineProperties
&
rProperties
);
DummyLine3D
(
const
css
::
drawing
::
PolyPolygonShape3D
&
rPoints
,
const
VLineProperties
&
rProperties
);
private
:
drawing
::
PolyPolygonShape3D
maPoints
;
css
::
drawing
::
PolyPolygonShape3D
maPoints
;
};
class
DummyLine2D
:
public
DummyXShape
{
public
:
DummyLine2D
(
const
drawing
::
PointSequenceSequence
&
rPoints
,
const
VLineProperties
*
pProperties
);
DummyLine2D
(
const
awt
::
Size
&
rSize
,
const
awt
::
Point
&
rPosition
);
DummyLine2D
(
const
css
::
drawing
::
PointSequenceSequence
&
rPoints
,
const
VLineProperties
*
pProperties
);
DummyLine2D
(
const
css
::
awt
::
Size
&
rSize
,
const
css
::
awt
::
Point
&
rPosition
);
virtual
void
render
()
SAL_OVERRIDE
;
private
:
drawing
::
PointSequenceSequence
maPoints
;
css
::
drawing
::
PointSequenceSequence
maPoints
;
};
class
DummyRectangle
:
public
DummyXShape
{
public
:
DummyRectangle
();
DummyRectangle
(
const
awt
::
Size
&
rSize
);
DummyRectangle
(
const
awt
::
Size
&
rSize
,
const
awt
::
Point
&
rPoint
,
const
tNameSequence
&
rNames
,
DummyRectangle
(
const
css
::
awt
::
Size
&
rSize
);
DummyRectangle
(
const
css
::
awt
::
Size
&
rSize
,
const
css
::
awt
::
Point
&
rPoint
,
const
tNameSequence
&
rNames
,
const
tAnySequence
&
rValues
);
virtual
void
render
()
SAL_OVERRIDE
;
...
...
@@ -339,7 +337,7 @@ class DummyText : public DummyXShape
{
public
:
DummyText
(
const
OUString
&
rText
,
const
tNameSequence
&
rNames
,
const
tAnySequence
&
rValues
,
const
uno
::
Any
&
rTrans
,
com
::
sun
::
star
::
uno
::
Reference
<
const
tAnySequence
&
rValues
,
const
css
::
uno
::
Any
&
rTrans
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapes
>
xTarget
,
double
nRotation
);
virtual
void
render
()
SAL_OVERRIDE
;
...
...
@@ -352,7 +350,7 @@ private:
void
setTransformatAsProperty
(
const
com
::
sun
::
star
::
drawing
::
HomogenMatrix3
&
rMatrix
);
OUString
maText
;
uno
::
Any
maTrans
;
css
::
uno
::
Any
maTrans
;
BitmapEx
maBitmap
;
double
mnRotation
;
};
...
...
chart2/source/view/main/OpenGLRender.hxx
Dosyayı görüntüle @
db3c6265
...
...
@@ -28,9 +28,6 @@
#define DEBUG_POSITIONING 0
#define RENDER_TO_FILE 0
using
namespace
std
;
using
namespace
::
com
::
sun
::
star
;
struct
PosVecf3
{
float
x
;
...
...
@@ -64,9 +61,9 @@ struct TextInfo
float
nDy
;
};
typedef
vector
<
GLfloat
>
Area2DPointList
;
typedef
vector
<
GLfloat
>
PieSegment2DPointList
;
typedef
vector
<
GLfloat
>
PointList
;
typedef
std
::
vector
<
GLfloat
>
Area2DPointList
;
typedef
std
::
vector
<
GLfloat
>
PieSegment2DPointList
;
typedef
std
::
vector
<
GLfloat
>
PointList
;
// for 3D, use vector to save the points
...
...
@@ -99,14 +96,14 @@ public:
int
CreateTextTexture
(
const
boost
::
shared_array
<
sal_uInt8
>
&
rPixels
,
const
::
Size
&
aPixelSize
,
const
::
css
::
awt
::
Point
&
,
const
::
css
::
awt
::
Size
&
aSize
,
const
css
::
awt
::
Point
&
,
const
css
::
awt
::
Size
&
aSize
,
long
rotation
,
const
::
css
::
drawing
::
HomogenMatrix3
&
rTrans
);
const
css
::
drawing
::
HomogenMatrix3
&
rTrans
);
int
CreateTextTexture
(
const
BitmapEx
&
rBitmapEx
,
const
::
css
::
awt
::
Point
&
aPos
,
const
css
::
awt
::
Size
&
aSize
,
long
rotation
,
const
::
css
::
drawing
::
HomogenMatrix3
&
rTrans
);
int
CreateTextTexture
(
::
rtl
::
OUString
const
&
textValue
,
Font
aFont
,
long
fontColor
,
awt
::
Point
aPos
,
awt
::
Size
aSize
,
long
rotation
);
const
css
::
awt
::
Point
&
aPos
,
const
css
::
awt
::
Size
&
aSize
,
long
rotation
,
const
css
::
drawing
::
HomogenMatrix3
&
rTrans
);
int
CreateTextTexture
(
::
rtl
::
OUString
const
&
textValue
,
Font
aFont
,
long
fontColor
,
css
::
awt
::
Point
aPos
,
css
::
awt
::
Size
aSize
,
long
rotation
);
int
RenderTextShape
();
int
SetArea2DShapePoint
(
float
x
,
float
y
,
int
listLength
);
...
...
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