diff options
author | Albert Thuswaldner <albert.thuswaldner@gmail.com> | 2011-02-21 23:29:31 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-21 23:29:31 +0100 |
commit | 43fdbd39de2089c42d6538964b87f05a3407f929 (patch) | |
tree | 02eb64be08f49581b662bef4d1b00ba279850e15 /svx/source/engine3d | |
parent | 3b29a82367b8733e02aa8882912d3def85b8ecea (diff) |
Remove dead code and translate German comments
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/camera3d.cxx | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/svx/source/engine3d/camera3d.cxx b/svx/source/engine3d/camera3d.cxx index 40aa705d7467..657ee04e5442 100644 --- a/svx/source/engine3d/camera3d.cxx +++ b/svx/source/engine3d/camera3d.cxx @@ -31,12 +31,6 @@ #include <svx/camera3d.hxx> #include <tools/stream.hxx> -/************************************************************************* -|* -|* Konstruktor -|* -\************************************************************************/ - Camera3D::Camera3D(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt, double fFocalLen, double fBankAng) : aResetPos(rPos), @@ -52,24 +46,12 @@ Camera3D::Camera3D(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLook SetFocalLength(fFocalLen); } -/************************************************************************* -|* -|* Default-Konstruktor -|* -\************************************************************************/ - Camera3D::Camera3D() { basegfx::B3DPoint aVector3D(0.0 ,0.0 ,1.0); Camera3D(aVector3D, basegfx::B3DPoint()); } -/************************************************************************* -|* -|* Konstruktor -|* -\************************************************************************/ - void Camera3D::Reset() { SetVPD(0); @@ -79,11 +61,7 @@ void Camera3D::Reset() SetFocalLength(fResetFocalLength); } -/************************************************************************* -|* -|* Defaultwerte fuer Reset setzen -|* -\************************************************************************/ +// Set default values for reset void Camera3D::SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt, double fFocalLen, double fBankAng) @@ -94,11 +72,7 @@ void Camera3D::SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoin fResetBankAngle = fBankAng; } -/************************************************************************* -|* -|* ViewWindow setzen und PRP anpassen -|* -\************************************************************************/ +// Set ViewWindow and adjust PRP void Camera3D::SetViewWindow(double fX, double fY, double fW, double fH) { @@ -107,12 +81,6 @@ void Camera3D::SetViewWindow(double fX, double fY, double fW, double fH) SetFocalLength(fFocalLength); } -/************************************************************************* -|* -|* Kameraposition setzen -|* -\************************************************************************/ - void Camera3D::SetPosition(const basegfx::B3DPoint& rNewPos) { if ( rNewPos != aPosition ) @@ -124,12 +92,6 @@ void Camera3D::SetPosition(const basegfx::B3DPoint& rNewPos) } } -/************************************************************************* -|* -|* Blickpunkt setzen -|* -\************************************************************************/ - void Camera3D::SetLookAt(const basegfx::B3DPoint& rNewLookAt) { if ( rNewLookAt != aLookAt ) @@ -140,12 +102,6 @@ void Camera3D::SetLookAt(const basegfx::B3DPoint& rNewLookAt) } } -/************************************************************************* -|* -|* Position und Blickpunkt setzen -|* -\************************************************************************/ - void Camera3D::SetPosAndLookAt(const basegfx::B3DPoint& rNewPos, const basegfx::B3DPoint& rNewLookAt) { @@ -160,12 +116,6 @@ void Camera3D::SetPosAndLookAt(const basegfx::B3DPoint& rNewPos, } } -/************************************************************************* -|* -|* seitlichen Neigungswinkel setzen -|* -\************************************************************************/ - void Camera3D::SetBankAngle(double fAngle) { basegfx::B3DVector aDiff(aPosition - aLookAt); @@ -177,7 +127,7 @@ void Camera3D::SetBankAngle(double fAngle) aPrj.setY(-1.0); } else - { // aPrj = Projektion von aDiff auf die XZ-Ebene + { // aPrj = Projection from aDiff on the XZ-plane aPrj.setY(0.0); if ( aDiff.getY() < 0.0 ) |