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: 2009-01-30 21:10:13 $
00007   Version:   $Revision: 1.11 $
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 
00048 
00049 // forward declaratons...
00050 class Solver;
00051 
00052 class LoadBCMFC : public Load
00053 {
00054   FEM_CLASS(LoadBCMFC,Load)
00055 public:
00056 
00062   class MFCTerm 
00063     {
00064     public:
00065 
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 }} // end namespace itk::fem
00132 
00133 #endif // #ifndef __itkFEMLoadBCMFC_h
00134 

Generated at Thu May 28 09:56:07 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000