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: 00048 00052 typedef Element::Float Float; 00053 00057 typedef std::vector<Element::ConstPointer> ElementPointersVectorType; 00058 00061 virtual void Read( std::istream& f, void* info ); 00062 void Write( std::ostream& f ) const; 00063 00064 // FIXME: should clear vector, not zero it 00065 LoadElement() : el(0) {} 00066 00067 }; 00068 00069 FEM_CLASS_INIT(LoadElement) 00070 00071 00072 00073 00074 }} // end namespace itk::fem 00075 00076 #endif // #ifndef __itkFEMLoadElementBase_h 00077