00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Math Library 00005 * Module : ICircle2D 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 ICircle2DHPP 00033 #define ICircle2DHPP 00034 00035 #include <zeusmath/Config/PlatformDefines.hpp> 00036 #include <zeusmath/Geometry/Interfaces/IGeometricObject2D.hpp> 00037 #include <zeusmath/Geometry/Interfaces/IVector2D.hpp> 00038 00039 00040 #define INTERFACE_ICircle2D TIID(0x3996fd11, 0xf83a, 0x4da4, 0x8a, 0x10, 0x3f, 0x31, 0xee, 0x63, 0xed, 0xb6) 00041 00042 00043 BEGIN_NAMESPACE_Zeus 00044 00045 // Forward declarations. 00046 class IStraightLine2D; 00047 00048 /******************************************************************************/ 00051 /******************************************************************************/ 00052 class ICircle2D : public IGeometricObject2D 00053 { 00054 HIDE_ASSIGNMENT_OPERATOR(ICircle2D) 00055 00056 public: 00057 /******************************************************************************/ 00059 /******************************************************************************/ 00060 virtual const IVector2D& MQUALIFIER getCenter() const = 0; 00061 00062 /******************************************************************************/ 00066 /******************************************************************************/ 00067 virtual void MQUALIFIER setCenter(const IVector2D& rVecCenter) = 0; 00068 00069 /******************************************************************************/ 00071 /******************************************************************************/ 00072 virtual const Float& MQUALIFIER getRadius() const = 0; 00073 00074 /******************************************************************************/ 00078 /******************************************************************************/ 00079 virtual void MQUALIFIER setRadius(const Float& rfRadius) = 0; 00080 00081 /******************************************************************************/ 00086 /******************************************************************************/ 00087 virtual void MQUALIFIER assign(const ICircle2D& rCircle) = 0; 00088 00089 /******************************************************************************/ 00091 /******************************************************************************/ 00092 /******************************************************************************/ 00099 /******************************************************************************/ 00100 virtual bool MQUALIFIER isEqual(const ICircle2D& rCircle) const = 0; 00101 00102 /******************************************************************************/ 00104 /******************************************************************************/ 00105 /******************************************************************************/ 00111 /******************************************************************************/ 00112 virtual void MQUALIFIER calcPointFromAngle(const IAngle& rAngle, IVector2D& rVecPoint) const = 0; 00113 00114 /******************************************************************************/ 00123 /******************************************************************************/ 00124 virtual bool MQUALIFIER calcAngleFromPoint(const IVector2D& rVecPoint, IAngle& rAngle) const = 0; 00125 00126 /******************************************************************************/ 00128 /******************************************************************************/ 00129 /******************************************************************************/ 00135 /******************************************************************************/ 00136 virtual bool MQUALIFIER isPointInside(const IVector2D& rVecPoint) const = 0; 00137 }; 00138 00139 00140 END_NAMESPACE_Zeus 00141 00142 #endif 00143