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

itkFEMElement2DC0QuadraticTriangular.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMElement2DC0QuadraticTriangular.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:40 $
00007   Version:   $Revision: 1.6 $
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 __itkFEMElement2DC0QuadraticTriangular_h
00019 #define __itkFEMElement2DC0QuadraticTriangular_h
00020 
00021 #include "itkFEMElementStd.h"
00022 
00023 namespace itk {
00024 namespace fem {
00025 
00026 
00027 
00028 
00033 class Element2DC0QuadraticTriangular : public ElementStd<6,2>
00034 {
00035 typedef ElementStd<3,2> TemplatedParentClass;
00036 FEM_ABSTRACT_CLASS( Element2DC0QuadraticTriangular, TemplatedParentClass )
00037 public:
00038 
00039 
00040 
00042   /*
00043    * Methods related to numeric integration
00044    */
00045 
00046   enum { DefaultIntegrationOrder = 2 };
00047 
00048   virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType& pt, Float& w, unsigned int order) const;
00049 
00050   virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const;
00051 
00052 
00053 
00055   /*
00056    * Methods related to the geometry of an element
00057    */
00058 
00059   virtual VectorType ShapeFunctions( const VectorType& pt ) const;
00060 
00061   virtual void ShapeFunctionDerivatives( const VectorType& pt, MatrixType& shapeD ) const;
00062 
00063   // FIXME: Write a proper implementation
00064   virtual bool GetLocalFromGlobalCoordinates( const VectorType&, VectorType& ) const
00065   { 
00066     throw;
00067     return false;
00068   }
00069 
00070   // Since the Jacobian is not quadratic, we need to provide our
00071   // own implementation of calculating the determinant and inverse.
00072   virtual Float JacobianDeterminant( const VectorType& pt, const MatrixType* pJ = 0 ) const;
00073   virtual void JacobianInverse( const VectorType& pt, MatrixType& invJ, const MatrixType* pJ = 0 ) const;
00074 
00078 #ifdef FEM_BUILD_VISUALIZATION
00079   void Draw(CDC* pDC, Solution::ConstPointer sol) const;
00080 #endif
00081 
00082 };
00083 
00084 
00085 
00086 
00087 }} // end namespace itk::fem
00088 
00089 #endif  // #ifndef __itkFEMElement2DC0QuadraticTriangular_h
00090 

Generated at Tue Jul 29 19:57:22 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000