Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFEMLoadBCMFC.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMLoadBCMFC.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/05/28 21:05:22 $
00007   Version:   $Revision: 1.9 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkFEMLoadBCMFC_h
00018 #define __itkFEMLoadBCMFC_h
00019 
00020 #include "itkFEMLoadBase.h"
00021 
00022 namespace itk {
00023 namespace fem {
00024 
00025 
00026 
00027 
00051 // forward declaratons...
00052 class Solver;
00053 
00054 class LoadBCMFC : public Load
00055 {
00056 FEM_CLASS(LoadBCMFC,Load)
00057 public:
00058 
00064   class MFCTerm {
00065   public:
00069     Element::ConstPointer m_element;
00070 
00074     unsigned int dof;
00075 
00079     Element::Float value;
00080 
00084     MFCTerm(Element::ConstPointer element_, int dof_, Element::Float value_) : m_element(element_), dof(dof_), value(value_) {}
00085 
00086   };
00087   
00091   typedef std::vector<MFCTerm> LhsType;
00092   LhsType lhs;
00093 
00100   vnl_vector<Element::Float> rhs;
00101 
00103   LoadBCMFC() {}
00104 
00114   LoadBCMFC(Element::ConstPointer element, int dof, vnl_vector<Element::Float> val);
00115 
00117   virtual void Read( std::istream& f, void* info );
00118 
00120   virtual void Write( std::ostream& f ) const;
00121 
00122 //private:  // FIXME: CrankNicolsonSolver class, which is derived from Solver class also needs access to Index.
00124   int Index;    
00125   friend class Solver;
00126 
00127 };
00128 
00129 FEM_CLASS_INIT(LoadBCMFC)
00130 
00131 
00132 
00133 
00134 }} // end namespace itk::fem
00135 
00136 #endif // #ifndef __itkFEMLoadBCMFC_h

Generated at Wed Mar 12 01:12:56 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000