Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFEMLoadGrav.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMLoadGrav.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 __itkFEMLoadGrav_h
00019 #define __itkFEMLoadGrav_h
00020 
00021 #include "itkFEMLoadElementBase.h"
00022 #include "vnl/vnl_vector.h"
00023 
00024 namespace itk {
00025 namespace fem {
00026 
00036 class LoadGrav : public LoadElement
00037 {
00038   FEM_ABSTRACT_CLASS(LoadGrav,LoadElement)
00039 public:
00040 
00041   virtual vnl_vector<Float> Fg(vnl_vector<Float>) = 0;
00042 
00043 };
00044 
00052 class LoadGravConst : public LoadGrav
00053 {
00054   FEM_CLASS(LoadGravConst,LoadGrav)
00055 public:
00056   vnl_vector<Float> Fg_value;
00057   virtual vnl_vector<Float> Fg(vnl_vector<Float>)
00058     {
00059     return Fg_value;
00060     }
00062 
00066   virtual void Read( std::istream& f, void* info );
00067 
00071   virtual void Write( std::ostream& f ) const;
00072 
00073 };
00074 
00075 FEM_CLASS_INIT(LoadGravConst)
00076 
00077 }} // end namespace itk::fem
00078 
00079 #endif // #ifndef __itkFEMLoadGrav_h
00080 

Generated at Mon Jul 12 2010 18:19:18 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000