weightedpointfunctional.h

Go to the documentation of this file.
00001 #ifndef __WeightedPointFunctional_h
00002 #define __WeightedPointFunctional_h
00003 
00004 #include "pointfunctional.h"
00005 
00006 /**********************************************************/
00007 namespace Gascoigne
00008 {
00009 class WeightedPointFunctional : public PointFunctional
00010 {
00011   protected:
00012   std::vector<double> _weights;
00013 
00014   public:
00015     WeightedPointFunctional() : PointFunctional() {}
00016     ~WeightedPointFunctional() { }
00017 
00018     void BasicInit(const std::vector<Vertex2d>& v2d, const std::vector<int>& comps, const std::vector<double>& weights);
00019     void BasicInit(const std::vector<Vertex3d>& v3d, const std::vector<int>& comps, const std::vector<double>& weights);
00020 
00021     const std::vector<double>& GetWeights()    const { return _weights;}
00022 
00023     double J(const std::vector<double>& u) const;
00024   
00025     std::string GetName() const {return "WeightedPointFunctional";}
00026 };
00027 }
00028 /**********************************************************/
00029 
00030 #endif

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