00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMLoadElementBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-01-30 21:10:18 $ 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 00018 #ifndef __itkFEMLoadElementBase_h 00019 #define __itkFEMLoadElementBase_h 00020 00021 #include "itkFEMLoadBase.h" 00022 00023 namespace itk { 00024 namespace fem { 00025 00041 class LoadElement : public Load 00042 { 00043 FEM_CLASS(LoadElement,Load) 00044 public: 00045 00049 typedef Element::Float Float; 00050 00054 typedef std::vector<Element::ConstPointer> ElementPointersVectorType; 00055 00058 virtual void Read( std::istream& f, void* info ); 00059 void Write( std::ostream& f ) const; 00060 00061 // FIXME: should clear vector, not zero it 00062 LoadElement() : el(0) {} 00063 00064 }; 00065 00066 FEM_CLASS_INIT(LoadElement) 00067 00068 }} // end namespace itk::fem 00069 00070 #endif // #ifndef __itkFEMLoadElementBase_h 00071