//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00015 #ifndef _DOMAIN_H 00016 #define _DOMAIN_H 00017 00018 00019 #include "GoTools/utils/config.h" 00020 #include "GoTools/utils/Array.h" 00021 00022 00023 namespace Go 00024 { 00029 class GO_API Domain 00030 { 00031 public: 00033 virtual ~Domain() {} 00034 00041 virtual bool isInDomain(const Array<double, 2>& point, 00042 double tolerance) const = 0; 00043 00050 virtual bool isOnBoundary(const Array<double, 2>& point, 00051 double tolerance) const = 0; 00052 00061 virtual void closestInDomain(const Array<double, 2>& point, 00062 Array<double, 2>& clo_pt, 00063 double tolerance) const = 0; 00064 00074 virtual void closestOnBoundary(const Array<double, 2>& point, 00075 Array<double, 2>& clo_bd_pt, 00076 double tolerance) const = 0; 00077 00078 }; 00079 00080 00081 } // namespace Go 00082 00083 00084 #endif // _DOMAIN_H 00085
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3