00001 /**************************************************************************** 00002 * VCGLib o o * 00003 * Visual and Computer Graphics Library o o * 00004 * _ O _ * 00005 * Copyright(C) 2004 \/)\/ * 00006 * Visual Computing Lab /\/| * 00007 * ISTI - Italian National Research Council | * 00008 * \ * 00009 * All rights reserved. * 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 * This program is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * 00020 * for more details. * 00021 * * 00022 ****************************************************************************/ 00023 /**************************************************************************** 00024 History 00025 00026 $Log: not supported by cvs2svn $ 00027 Revision 1.2 2006/01/03 12:44:58 spinelli 00028 fix some bugs. 00029 00030 Revision 1.1 2004/03/16 03:08:02 tarini 00031 first commit 00032 00033 00034 ****************************************************************************/ 00035 00036 #ifndef __VCGLIB_SPACE 00037 #define __VCGLIB_SPACE 00038 00039 00040 #include <vcg/math/linear.h> 00041 00042 namespace vcg { 00051 template <int N, class S> class Point; 00052 template <int N, class S> class Box; 00053 00054 class ParamType; 00055 00056 template <int N, class S> 00057 class Space { 00058 public: 00060 enum {Dimension=N}; 00062 typedef S ScalarType; 00064 typedef Point<N,S> PointType; 00066 //typedef ParamType; 00067 00069 Box<N,S> const BBox() const; 00070 00072 PointType ClosestPoint(PointType const &p) const; 00073 00074 PointType LocalToGlobal(ParamType); 00075 00076 ParamType GlobalToLocal(ParamType); 00077 }; // end class definition 00078 00083 } // end namespace 00084 #endif