00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMElement3DC0LinearHexahedron.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-01-29 20:09:11 $ 00007 Version: $Revision: 1.12 $ 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 __itkFEMElement3DC0LinearHexahedron_h 00019 #define __itkFEMElement3DC0LinearHexahedron_h 00020 00021 #include "itkFEMElementStd.h" 00022 00023 namespace itk { 00024 namespace fem { 00025 00030 class Element3DC0LinearHexahedron : public ElementStd<8,3> 00031 { 00032 typedef ElementStd<8,3> TemplatedParentClass; 00033 FEM_ABSTRACT_CLASS( Element3DC0LinearHexahedron, TemplatedParentClass ) 00034 public: 00035 00036 00038 00042 virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType& pt, Float& w, unsigned int order) const; 00043 00044 virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const; 00045 00047 00051 virtual VectorType ShapeFunctions( const VectorType& pt ) const; 00052 00053 virtual void ShapeFunctionDerivatives( const VectorType& pt, MatrixType& shapeD ) const; 00054 00055 virtual bool GetLocalFromGlobalCoordinates( const VectorType& globalPt , VectorType& localPt) const; 00056 00060 #ifdef FEM_BUILD_VISUALIZATION 00061 void Draw(CDC* pDC, Solution::ConstPointer sol) const; 00062 #endif 00063 00064 }; 00065 00066 }} // end namespace itk::fem 00067 00068 #endif // #ifndef __itkFEMElement3DC0LinearHexahedron_h 00069