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

itkFEMElement2DC0LinearLine.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMElement2DC0LinearLine.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 21:19:16 $
00007   Version:   $Revision: 1.5 $
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 __itkFEMElement2DC0LinearLine_h
00019 #define __itkFEMElement2DC0LinearLine_h
00020 
00021 #include "itkFEMElementStd.h"
00022 
00023 namespace itk {
00024 namespace fem {
00025 
00030 class Element2DC0LinearLine : public ElementStd<2,2>
00031 {
00032   typedef ElementStd<2,2> TemplatedParentClass;
00033   FEM_ABSTRACT_CLASS( Element2DC0LinearLine, TemplatedParentClass )
00034 public:
00035 
00036   
00038 
00042   enum { DefaultIntegrationOrder = 1 };
00043   
00044   virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType& pt, Float& w, unsigned int order) const;
00045 
00046   virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const;
00047 
00049 
00053   virtual VectorType ShapeFunctions( const VectorType& pt ) const;
00054 
00055   virtual void ShapeFunctionDerivatives( const VectorType& pt, MatrixType& shapeD ) const;
00056 
00057   // FIXME: Write a proper implementation
00058   virtual bool GetLocalFromGlobalCoordinates( const VectorType& globalPt, VectorType& localPt ) const;
00059 
00069   virtual void Jacobian( const VectorType& pt, MatrixType& J, const MatrixType* pshapeD = 0 ) const;
00070 
00074 #ifdef FEM_BUILD_VISUALIZATION
00075   void Draw(CDC* pDC, Solution::ConstPointer sol) const;
00076 #endif
00077 
00078 };
00079 
00080 }} // end namespace itk::fem
00081 
00082 #endif  // #ifndef __itkFEMElement2DC0LinearLine_h
00083 

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