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: 2003/09/10 14:29:42 $
00007   Version:   $Revision: 1.10 $
00008 
00009   Copyright (c) Insight Software 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 
00052 // forward declaratons...
00053 class Solver;
00054 
00055 class LoadBCMFC : public Load
00056 {
00057 FEM_CLASS(LoadBCMFC,Load)
00058 public:
00059 
00065   class MFCTerm {
00066   public:
00067 
00071     Element::ConstPointer m_element;
00072 
00076     unsigned int dof;
00077 
00081     Element::Float value;
00082 
00086     MFCTerm(Element::ConstPointer element_, int dof_, Element::Float value_) : m_element(element_), dof(dof_), value(value_) {}
00087 
00088   };
00089   
00093   typedef std::vector<MFCTerm> LhsType;
00094   LhsType lhs;
00095 
00102   vnl_vector<Element::Float> rhs;
00103 
00105   LoadBCMFC() {}
00106 
00116   LoadBCMFC(Element::ConstPointer element, int dof, vnl_vector<Element::Float> val);
00117 
00119   virtual void Read( std::istream& f, void* info );
00120 
00122   virtual void Write( std::ostream& f ) const;
00123 
00124 //private:  // FIXME: CrankNicolsonSolver class, which is derived from Solver class also needs access to Index.
00126   int Index;    
00127   friend class Solver;
00128 
00129 };
00130 
00131 FEM_CLASS_INIT(LoadBCMFC)
00132 
00133 
00134 
00135 
00136 }} // end namespace itk::fem
00137 
00138 #endif // #ifndef __itkFEMLoadBCMFC_h
00139 

Generated at Tue Jul 29 20:00:54 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000