00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMLoadBC.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-01-30 21:10:12 $ 00007 Version: $Revision: 1.5 $ 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 __itkFEMLoadBC_h 00018 #define __itkFEMLoadBC_h 00019 00020 #include "itkFEMLoadBase.h" 00021 00022 namespace itk { 00023 namespace fem { 00024 00031 class LoadBC : public Load 00032 { 00033 FEM_CLASS(LoadBC,Load) 00034 public: 00035 00040 Element::ConstPointer m_element; 00041 00045 unsigned int m_dof; 00046 00055 vnl_vector<Element::Float> m_value; 00056 00058 LoadBC() : m_element(0), m_dof(0), m_value() {} 00059 00061 virtual void Read( std::istream& f, void* info ); 00062 00064 virtual void Write( std::ostream& f ) const; 00065 00066 }; 00067 00068 FEM_CLASS_INIT(LoadBC) 00069 00070 }} // end namespace itk::fem 00071 00072 #endif // #ifndef __itkFEMLoadBC_h 00073