summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx')
-rw-r--r--slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx134
1 files changed, 67 insertions, 67 deletions
diff --git a/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx b/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx
index b3e9ceae62c2..9ebd42c3f820 100644
--- a/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx
+++ b/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,13 +34,13 @@
#include <tools/prewin.h>
#include <tools/postwin.h>
-#if defined( WNT )
+#if defined( WNT )
#include <tools/prewin.h>
#include <tools/postwin.h>
#elif defined( OS2 )
#elif defined( QUARTZ )
#elif defined( UNX )
-#endif
+#endif
#include <vector>
#include <GL/gl.h>
@@ -78,7 +78,7 @@ public:
{}
~OGLTransitionImpl();
-
+
void prepare( ::sal_Int32 glLeavingSlideTex, ::sal_Int32 glEnteringSlideTex );
void display( double nTime, ::sal_Int32 glLeavingSlideTex, ::sal_Int32 glEnteringSlideTex, double SlideWidth, double SlideHeight, double DispWidth, double DispHeight );
void finish();
@@ -117,15 +117,15 @@ private:
/** clears all the primitives and operations
*/
void clear();
-
+
/** All the primitives that use the leaving slide texture
*/
vector<Primitive> maLeavingSlidePrimitives;
-
+
/** All the primitives that use the leaving slide texture
*/
vector<Primitive> maEnteringSlidePrimitives;
-
+
/** All the surrounding scene objects
*/
vector<SceneObject*> maSceneObjects;
@@ -214,7 +214,7 @@ private:
GLuint maTexture;
};
-/** This class is a list of Triangles that will share Operations, and could possibly share
+/** This class is a list of Triangles that will share Operations, and could possibly share
*/
class Primitive
{
@@ -227,61 +227,61 @@ public:
void applyOperations(double nTime, double SlideWidthScale, double SlideHeightScale);
void display(double nTime, double SlideWidthScale, double SlideHeightScale);
const Primitive& operator=(const Primitive& rvalue);
-
+
/** PushBack a vertex,normal, and tex coord. Each SlideLocation is where on the slide is mapped to this location ( from (0,0) to (1,1) ). This will make sure the correct aspect ratio is used, and helps to make slides begin and end at the correct position. (0,0) is the top left of the slide, and (1,1) is the bottom right.
-
+
@param SlideLocation0
Location of first Vertex on slide
-
+
@param SlideLocation1
Location of second Vertex on slide
-
+
@param SlideLocation2
Location of third Vertex on slide
-
+
*/
void pushTriangle(const basegfx::B2DVector& SlideLocation0,const basegfx::B2DVector& SlideLocation1,const basegfx::B2DVector& SlideLocation2);
-
+
/** clear all the vertices, normals, tex coordinates, and normals
*/
void clearTriangles();
-
+
/** guards against directly changing the vertices
-
- @return
+
+ @return
the list of vertices
*/
const vector<basegfx::B3DVector>& getVertices() const {return Vertices;}
-
+
/** guards against directly changing the vertices
*/
const vector<basegfx::B3DVector>& getNormals() const {return Normals;}
-
+
/** guards against directly changing the vertices
-
- @return
+
+ @return
the list of Texture Coordinates
-
+
*/
const vector<basegfx::B2DVector>& getTexCoords() const {return TexCoords;}
/** list of Operations to be performed on this primitive.These operations will be called in the order they were pushed back in. In OpenGL this effectively uses the operations in the opposite order they were pushed back.
-
- @return
+
+ @return
the list of Operations
-
- */
+
+ */
vector<Operation*> Operations;
private:
/** list of vertices
*/
vector<basegfx::B3DVector> Vertices;
-
+
/** list of Normals
*/
vector<basegfx::B3DVector> Normals;
-
+
/** list of Texture Coordinates
*/
vector<basegfx::B2DVector> TexCoords;
@@ -294,33 +294,33 @@ class Operation
public:
Operation(){}
virtual ~Operation(){}
-
- /** Should this operation be interpolated . If TRUE, the transform will smoothly move from making no difference from t = 0.0 to nT0 to being completely transformed from t = nT1 to 1. If FALSE, the transform will be inneffectual from t = 0 to nT0, and completely transformed from t = nT0 to 1.
+
+ /** Should this operation be interpolated . If TRUE, the transform will smoothly move from making no difference from t = 0.0 to nT0 to being completely transformed from t = nT1 to 1. If FALSE, the transform will be inneffectual from t = 0 to nT0, and completely transformed from t = nT0 to 1.
*/
bool bInterpolate;
-
+
/** time to begin the transformation
*/
double nT0;
-
+
/** time to finish the transformation
*/
double nT1;
public:
/** this is the function that is called to give the Operation to OpenGL.
-
+
@param t
time from t = 0 to t = 1
-
+
@param SlideWidthScale
width of slide divided by width of window
-
+
@param SlideHeightScale
height of slide divided by height of window
-
+
*/
virtual void interpolate(double t,double SlideWidthScale,double SlideHeightScale) = 0;
-
+
/** return a copy of this operation
*/
virtual Operation* clone() = 0;
@@ -333,27 +333,27 @@ class SRotate: public Operation
public:
void interpolate(double t,double SlideWidthScale,double SlideHeightScale);
virtual SRotate* clone();
-
+
/** Constructor
-
+
@param Axis
axis to rotate about
-
+
@param Origin
position that rotation axis runs through
-
+
@param Angle
angle in radians of CCW rotation
-
+
@param bInter
see Operation
-
+
@param T0
transformation starting time
-
+
@param T1
transformation ending time
-
+
*/
SRotate(const basegfx::B3DVector& Axis,const basegfx::B3DVector& Origin,double Angle,bool bInter, double T0, double T1);
~SRotate(){}
@@ -361,11 +361,11 @@ private:
/** axis to rotate CCW about
*/
basegfx::B3DVector axis;
-
+
/** position that rotation axis runs through
*/
basegfx::B3DVector origin;
-
+
/** angle in radians of CCW rotation
*/
double angle;
@@ -378,24 +378,24 @@ class SScale: public Operation
public:
void interpolate(double t,double SlideWidthScale,double SlideHeightScale);
SScale* clone();
-
+
/** Constructor
-
+
@param Scale
- amount to scale by
-
+ amount to scale by
+
@param Origin
position that rotation axis runs through
-
+
@param bInter
see Operation
-
+
@param T0
transformation starting time
-
+
@param T1
transformation ending time
-
+
*/
SScale(const basegfx::B3DVector& Scale, const basegfx::B3DVector& Origin,bool bInter, double T0, double T1);
~SScale(){}
@@ -411,21 +411,21 @@ class STranslate: public Operation
public:
void interpolate(double t,double SlideWidthScale,double SlideHeightScale);
STranslate* clone();
-
+
/** Constructor
-
+
@param Vector
vector to translate
-
+
@param bInter
see Operation
-
+
@param T0
transformation starting time
-
+
@param T1
transformation ending time
-
+
*/
STranslate(const basegfx::B3DVector& Vector,bool bInter, double T0, double T1);
~STranslate(){}
@@ -442,21 +442,21 @@ class SEllipseTranslate: public Operation
public:
void interpolate(double t,double SlideWidthScale,double SlideHeightScale);
SEllipseTranslate* clone();
-
+
/** Constructor
-
+
@param Vector
vector to translate
-
+
@param bInter
see Operation
-
+
@param T0
transformation starting time
-
+
@param T1
transformation ending time
-
+
*/
SEllipseTranslate(double dWidth, double dHeight, double dStartPosition, double dEndPosition, bool bInter, double T0, double T1);
~SEllipseTranslate(){}