pointfunctional.h

Go to the documentation of this file.
00001 #ifndef __PointFunctional_h
00002 #define __PointFunctional_h
00003 
00004 #include "functional.h"
00005 #include  <vector>
00006 #include  "vertex.h"
00007 
00008 /**********************************************************/
00009 
00010 namespace Gascoigne
00011 {
00012   class PointFunctional : public virtual Functional
00013   {
00014     private:
00015       
00016     protected:
00017       std::vector<Vertex2d>  _v2d;
00018       std::vector<Vertex3d>  _v3d;
00019 
00020       std::vector<int>  _comps;
00021 
00022     public:
00023       PointFunctional() : Functional() {}
00024       virtual ~PointFunctional() {}
00025   
00026       virtual void BasicInit(const std::vector<Vertex2d>& v2d, const std::vector<int>& comps) {_v2d=v2d;_comps=comps;}
00027       virtual void BasicInit(const std::vector<Vertex3d>& v3d, const std::vector<int>& comps) {_v3d=v3d;_comps=comps;}
00028   
00029       virtual const std::vector<Vertex2d>& GetPoints2d() const { return _v2d;}
00030       virtual const std::vector<Vertex3d>& GetPoints3d() const { return _v3d;}
00031   
00032       virtual const std::vector<int>& GetComps() const { return _comps;}
00033 
00034       virtual double J(const std::vector<double>& u) const {
00035         std::cerr << "\"PointFunctional::J\" not written" << std::endl; 
00036         abort();
00037       }
00038   };
00039 }
00040 
00041 /**********************************************************/
00042 
00043 #endif

Generated on Thu Sep 14 10:34:36 2006 for Gascoigne by  doxygen 1.4.7