summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-20 19:00:09 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-20 19:00:09 +0200
commit1a44a8fc7e8f86af327034bf66ca08e9a414fb75 (patch)
tree003861d40bfe5ed4b6644d08dc64436d187618bb /tools
parentaa40ec4414ccb3d64f6f72faab84fa127af9974c (diff)
callcatcher: clean up B3dTransformationSet
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/b3dtrans.hxx14
-rw-r--r--tools/source/generic/b3dtrans.cxx67
2 files changed, 0 insertions, 81 deletions
diff --git a/tools/inc/tools/b3dtrans.hxx b/tools/inc/tools/b3dtrans.hxx
index bcf690d0fae7..420db468291a 100644
--- a/tools/inc/tools/b3dtrans.hxx
+++ b/tools/inc/tools/b3dtrans.hxx
@@ -161,7 +161,6 @@ public:
// Projection
void SetProjection(const basegfx::B3DHomMatrix& mProject);
const basegfx::B3DHomMatrix& GetProjection();
- const basegfx::B3DHomMatrix& GetInvProjection();
// Texture
const basegfx::B2DHomMatrix& GetTexture() { return maTexture; }
@@ -175,9 +174,7 @@ public:
void SetDeviceRectangle(double fL=-1.0, double fR=1.0, double fB=-1.0, double fT=1.0, sal_Bool bBroadCastChange=sal_True);
double GetDeviceRectangleWidth() const { return mfRightBound - mfLeftBound; }
double GetDeviceRectangleHeight() const { return mfTopBound - mfBottomBound; }
- void SetFrontClippingPlane(double fF=0.0);
double GetFrontClippingPlane() { return mfNearBound; }
- void SetBackClippingPlane(double fB=1.0);
double GetBackClippingPlane() { return mfFarBound; }
void SetPerspective(sal_Bool bNew);
sal_Bool GetPerspective() { return mbPerspective; }
@@ -186,16 +183,6 @@ public:
const Rectangle& GetViewportRectangle() { return maViewportRectangle; }
void CalcViewport();
- // Transponierte Inverse fuer Vectortransformationen
- const basegfx::B3DHomMatrix& GetInvTransObjectToEye();
-
- // Speziell zum Umwandeln von Punkten Objekt -> Device
- const basegfx::B3DHomMatrix& GetObjectToDevice();
-
- // Speziell zum Umwandeln von Punkten World -> View
- const basegfx::B3DHomMatrix& GetMatFromWorldToView();
- const basegfx::B3DHomMatrix& GetInvMatFromWorldToView();
-
// Bounds des Viewports lesen
const basegfx::B3DVector& GetScale();
const basegfx::B3DVector& GetTranslate();
@@ -224,7 +211,6 @@ protected:
void PostSetObjectTrans();
void PostSetOrientation();
void PostSetProjection();
- void PostSetTexture();
void PostSetViewport();
void CalcMatObjectToDevice();
diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx
index 9c1c5c9a10b7..1f731e1fd387 100644
--- a/tools/source/generic/b3dtrans.cxx
+++ b/tools/source/generic/b3dtrans.cxx
@@ -233,13 +233,6 @@ const basegfx::B3DHomMatrix& B3dTransformationSet::GetProjection()
return maProjection;
}
-const basegfx::B3DHomMatrix& B3dTransformationSet::GetInvProjection()
-{
- if(!mbProjectionValid)
- CalcViewport();
- return maInvProjection;
-}
-
void B3dTransformationSet::PostSetProjection()
{
// Zuweisen und Inverse bestimmen
@@ -253,16 +246,6 @@ void B3dTransformationSet::PostSetProjection()
/*************************************************************************
|*
-|* Texturtransformation
-|*
-\************************************************************************/
-
-void B3dTransformationSet::PostSetTexture()
-{
-}
-
-/*************************************************************************
-|*
|* Viewport-Transformation
|*
\************************************************************************/
@@ -422,28 +405,6 @@ void B3dTransformationSet::DeviceRectangleChange()
{
}
-void B3dTransformationSet::SetFrontClippingPlane(double fF)
-{
- if(mfNearBound != fF)
- {
- mfNearBound = fF;
- mbProjectionValid = sal_False;
- mbObjectToDeviceValid = sal_False;
- mbWorldToViewValid = sal_False;
- }
-}
-
-void B3dTransformationSet::SetBackClippingPlane(double fB)
-{
- if(mfFarBound != fB)
- {
- mfFarBound = fB;
- mbProjectionValid = sal_False;
- mbObjectToDeviceValid = sal_False;
- mbWorldToViewValid = sal_False;
- }
-}
-
void B3dTransformationSet::SetPerspective(sal_Bool bNew)
{
if(mbPerspective != bNew)
@@ -503,13 +464,6 @@ void B3dTransformationSet::CalcMatObjectToDevice()
mbObjectToDeviceValid = sal_True;
}
-const basegfx::B3DHomMatrix& B3dTransformationSet::GetObjectToDevice()
-{
- if(!mbObjectToDeviceValid)
- CalcMatObjectToDevice();
- return maObjectToDevice;
-}
-
void B3dTransformationSet::CalcMatInvTransObjectToEye()
{
maInvTransObjectToEye = maObjectTrans;
@@ -528,13 +482,6 @@ void B3dTransformationSet::CalcMatInvTransObjectToEye()
mbInvTransObjectToEyeValid = sal_True;
}
-const basegfx::B3DHomMatrix& B3dTransformationSet::GetInvTransObjectToEye()
-{
- if(!mbInvTransObjectToEyeValid)
- CalcMatInvTransObjectToEye();
- return maInvTransObjectToEye;
-}
-
void B3dTransformationSet::CalcMatFromWorldToView()
{
maMatFromWorldToView = maOrientation;
@@ -550,20 +497,6 @@ void B3dTransformationSet::CalcMatFromWorldToView()
mbWorldToViewValid = sal_True;
}
-const basegfx::B3DHomMatrix& B3dTransformationSet::GetMatFromWorldToView()
-{
- if(!mbWorldToViewValid)
- CalcMatFromWorldToView();
- return maMatFromWorldToView;
-}
-
-const basegfx::B3DHomMatrix& B3dTransformationSet::GetInvMatFromWorldToView()
-{
- if(!mbWorldToViewValid)
- CalcMatFromWorldToView();
- return maInvMatFromWorldToView;
-}
-
/*************************************************************************
|*
|* Direkter Zugriff auf verschiedene Transformationen