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

itkFEMLoadLandmark.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMLoadLandmark.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/07/10 20:27:00 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkFEMLoadLandmark_h
00019 #define __itkFEMLoadLandmark_h
00020 
00021 #include "itkFEMLoadElementBase.h"
00022 #include "vnl/vnl_vector.h"
00023 
00024 namespace itk {
00025 namespace fem {
00026 
00034 class LoadLandmark : public LoadElement {
00035 FEM_CLASS(LoadLandmark,LoadElement)
00036 public:
00037 
00041   float eta; 
00042 
00046   vnl_vector<Float> m_pt;
00047 
00051   vnl_vector<Float> m_target;
00052 
00056   vnl_vector<Float> F;
00057 
00062   Element::ConstPointer m_element;
00063 
00067   Solution::ConstPointer m_Solution;
00068 
00072   void SetSolution(Solution::ConstPointer ptr) { m_Solution = ptr; }
00073   Solution::ConstPointer GetSolution() { return m_Solution; }
00074   Float GetSolution(unsigned int i, unsigned int v=0) { return m_Solution->GetSolutionValue(i,v); }
00075 
00079   Element::VectorType GetPoint() { return m_pt; }
00080 
00084   Element::VectorType GetForce() { return F; }
00085 
00089   virtual void Read( std::istream& f, void* info );
00090 
00094   virtual void Write( std::ostream& f ) const;
00095 
00099   LoadLandmark() : m_element(0) {}
00100   LoadLandmark( Element::ConstPointer el_, vnl_vector<Float> pu_, vnl_vector<Float> F_ ) : m_pt(pu_), F(F_), m_element(el_) {}
00101 
00102 };
00103 
00104 FEM_CLASS_INIT(LoadLandmark)
00105 
00106 
00107 
00108 
00109 }} // end namespace itk::fem
00110 
00111 #endif // #ifndef __itkFEMLoadLandmark_h

Generated at Wed Mar 12 01:12:56 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000