diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 23:35:24 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-13 07:20:18 +0200 |
commit | e9b017f533497c3a809d719934e01e4041fa252f (patch) | |
tree | 47e50566f0e4691eb51959779fb744d70428d129 /svx/source/engine3d | |
parent | 9b8b278d5e38b11f9c819f2b6c2bfa478a35b217 (diff) |
callcatcher: remove unused Viewport3D:::Foo
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/viewpt3d2.cxx | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/svx/source/engine3d/viewpt3d2.cxx b/svx/source/engine3d/viewpt3d2.cxx index 76dba241fe92..c487ab3f2a0d 100644 --- a/svx/source/engine3d/viewpt3d2.cxx +++ b/svx/source/engine3d/viewpt3d2.cxx @@ -66,15 +66,6 @@ void Viewport3D::SetViewWindow(double fX, double fY, double fW, double fH) fHRatio = aDeviceRect.GetHeight() / aViewWin.H; } -void Viewport3D::GetViewWindow(double& rX, double& rY, - double& rW, double& rH) const -{ - rX = aViewWin.X; - rY = aViewWin.Y; - rW = aViewWin.W; - rH = aViewWin.H; -} - // Returns observer position (PRP) in world coordinates const basegfx::B3DPoint& Viewport3D::GetViewPoint() @@ -84,15 +75,6 @@ const basegfx::B3DPoint& Viewport3D::GetViewPoint() return aViewPoint; } -// Returns transformations matrix - -const basegfx::B3DHomMatrix& Viewport3D::GetViewTransform() -{ - MakeTransform(); - - return aViewTf; -} - // Calculate View transformations matrix void Viewport3D::MakeTransform(void) @@ -205,48 +187,6 @@ void Viewport3D::SetDeviceWindow(const Rectangle& rRect) aDeviceRect = rRect; } -// Project the 3D pointon the View plane - -basegfx::B3DPoint Viewport3D::DoProjection(const basegfx::B3DPoint& rVec) const -{ - basegfx::B3DPoint aVec(rVec); - - if ( eProjection == PR_PERSPECTIVE ) - { - double fPrDist = fVPD - aPRP.getZ(); - - if ( aPRP.getZ() == rVec.getZ() ) - { - aVec.setX(0.0); - aVec.setY(0.0); - } - else - { - // This is the version for any PRP, but not used due to - // performance reasons - fPrDist /= aVec.getZ() - aPRP.getZ(); - aVec.setX(aVec.getX() * fPrDist); - aVec.setY(aVec.getY() * fPrDist); - } - } - - return aVec; -} - -// Mapp 3D point to device coordinates - -basegfx::B3DPoint Viewport3D::MapToDevice(const basegfx::B3DPoint& rVec) const -{ - basegfx::B3DPoint aRetval; - - // Subtract Y-coordinate, since the device Y-Axis runs from top to bottom - aRetval.setX((double)aDeviceRect.Left() + ((rVec.getX() - aViewWin.X) * fWRatio)); - aRetval.setY((double)aDeviceRect.Bottom() - ((rVec.getY() - aViewWin.Y) * fHRatio)); - aRetval.setZ(rVec.getZ()); - - return aRetval; -} - // Set View Reference Point void Viewport3D::SetVRP(const basegfx::B3DPoint& rNewVRP) @@ -290,22 +230,4 @@ void Viewport3D::SetVPD(double fNewVPD) bTfValid = sal_False; } -// Set distance of the front Clipping plane - -void Viewport3D::SetNearClipDist(double fNewNCD) -{ - fNearClipDist = fNewNCD; - bTfValid = sal_False; -} - -// Set distance of the rear Clipping plane - -void Viewport3D::SetFarClipDist(double fNewFCD) -{ - fFarClipDist = fNewFCD; - bTfValid = sal_False; -} - -// eof - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |