00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Math Library 00005 * Module : ICoordinatesTransformator 00006 * Package : Zeus.ZeusMath.Geometry.Interfaces 00007 * Author : Martin Abbuehl 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef ICoordinatesTransformatorHPP 00033 #define ICoordinatesTransformatorHPP 00034 00035 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00036 #include <zeusmath/Config/PlatformDefines.hpp> 00037 #include <zeusmath/System/Interfaces/ISquareMatrix3.hpp> 00038 #include <zeusmath/Geometry/Interfaces/IVector3D.hpp> 00039 00040 00041 BEGIN_NAMESPACE_Zeus 00042 00043 /******************************************************************************/ 00047 /******************************************************************************/ 00048 class ICoordinatesTransformator : public IZUnknown 00049 { 00050 public: 00051 /******************************************************************************/ 00053 /******************************************************************************/ 00054 virtual void MQUALIFIER initAsIdentity() = 0; 00055 00056 /******************************************************************************/ 00060 /******************************************************************************/ 00061 virtual bool MQUALIFIER isIdentity() const = 0; 00062 00063 /******************************************************************************/ 00070 /******************************************************************************/ 00071 virtual void MQUALIFIER addRotationX(const IAngle& rAngle) = 0; 00072 00073 /******************************************************************************/ 00080 /******************************************************************************/ 00081 virtual void MQUALIFIER addRotationY(const IAngle& rAngle) = 0; 00082 00083 /******************************************************************************/ 00090 /******************************************************************************/ 00091 virtual void MQUALIFIER addRotationZ(const IAngle& rAngle) = 0; 00092 00093 /******************************************************************************/ 00100 /******************************************************************************/ 00101 virtual void MQUALIFIER addTranslation(const IVector3D& rVector) = 0; 00102 00103 /******************************************************************************/ 00107 /******************************************************************************/ 00108 virtual bool MQUALIFIER setStretchFactor(const Float& fFactor) = 0; 00109 00110 /******************************************************************************/ 00126 /******************************************************************************/ 00127 virtual void MQUALIFIER transform(const IVector3D& rVecOriginalSystem, 00128 IVector3D& rVecTransformedSystem) const = 0; 00129 00130 /******************************************************************************/ 00135 /******************************************************************************/ 00136 virtual void MQUALIFIER transformReverse(const IVector3D& rVecTransformedSystem, 00137 IVector3D& rVecOriginalSystem) const = 0; 00138 00139 /******************************************************************************/ 00143 /******************************************************************************/ 00144 virtual const ISquareMatrix3& MQUALIFIER getRotationMatrix() const = 0; 00145 00146 /******************************************************************************/ 00150 /******************************************************************************/ 00151 virtual const ISquareMatrix3& MQUALIFIER getReverseRotationMatrix() const = 0; 00152 00153 /******************************************************************************/ 00157 /******************************************************************************/ 00158 virtual const IVector3D& MQUALIFIER getTranslationVector() const = 0; 00159 00160 /******************************************************************************/ 00164 /******************************************************************************/ 00165 virtual const Float& MQUALIFIER getStretchFactor() const = 0; 00166 00167 /******************************************************************************/ 00172 /******************************************************************************/ 00173 virtual void MQUALIFIER assign(const ICoordinatesTransformator& Transformator) = 0; 00174 00175 /******************************************************************************/ 00177 /******************************************************************************/ 00178 HIDE_ASSIGNMENT_OPERATOR(ICoordinatesTransformator) 00179 }; 00180 00181 END_NAMESPACE_Zeus 00182 00183 00184 #endif 00185