00001 // Copyright (C) 2005 Dave Griffiths 00002 // 00003 // This program is free software; you can redistribute it and/or modify 00004 // it under the terms of the GNU General Public License as published by 00005 // the Free Software Foundation; either version 2 of the License, or 00006 // (at your option) any later version. 00007 // 00008 // This program is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 // GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License 00014 // along with this program; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00016 00017 #include <string> 00018 #include <map> 00019 #include <assert.h> 00020 #include "State.h" 00021 #include "PDataContainer.h" 00022 00023 #ifndef N_EVALUATOR 00024 #define N_EVALUATOR 00025 00026 namespace Fluxus 00027 { 00028 00032 class Evaluator 00033 { 00034 public: 00035 Evaluator(); 00036 virtual ~Evaluator(); 00037 00038 class Blend 00039 { 00040 public: 00041 Blend(char t): m_Type(t) {} 00042 string m_Name; 00043 char m_Type; 00044 }; 00045 00046 template<class T> 00047 class TypedBlend : public Blend 00048 { 00049 public: 00050 TypedBlend(char t, T b) : Blend(t), m_Blend(b) {} 00051 T m_Blend; 00052 }; 00053 00054 class Point 00055 { 00056 public: 00057 vector<Blend*> m_Blends; 00058 }; 00059 00060 virtual bool IntersectLine(const dVector &start, const dVector &end, vector<Point> &points)=0; 00061 virtual Point ClosestPoint(const dVector &position)=0; 00062 00063 private: 00064 00065 00066 }; 00067 00068 } 00069 00070 #endif
1.5.1