00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMLoadElementBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:42 $ 00007 Version: $Revision: 1.9 $ 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 00026 00027 00028 00044 class LoadElement : public Load 00045 { 00046 FEM_CLASS(LoadElement,Load) 00047 public: 00051 typedef Element::Float Float; 00052 00056 typedef std::vector<Element::ConstPointer> ElementPointersVectorType; 00057 ElementPointersVectorType el; 00059 virtual void Read( std::istream& f, void* info ); 00060 void Write( std::ostream& f ) const; 00061 00062 // FIXME: should clear vector, not zero it 00063 LoadElement() : el(0) {} 00064 00065 }; 00066 00067 FEM_CLASS_INIT(LoadElement) 00068 00069 00070 00071 00072 }} // end namespace itk::fem 00073 00074 #endif // #ifndef __itkFEMLoadElementBase_h