ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkFEMElement3DC0LinearHexahedron.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 
00019 #ifndef __itkFEMElement3DC0LinearHexahedron_h
00020 #define __itkFEMElement3DC0LinearHexahedron_h
00021 
00022 #include "itkFEMElementStd.h"
00023 
00024 namespace itk
00025 {
00026 namespace fem
00027 {
00063 class Element3DC0LinearHexahedron : public ElementStd<8, 3>
00064 {
00065 public:
00066 
00068   typedef Element3DC0LinearHexahedron Self;
00069   typedef ElementStd<8, 3>            TemplatedParentClass;
00070   typedef TemplatedParentClass        Superclass;
00071   typedef SmartPointer<Self>          Pointer;
00072   typedef SmartPointer<const Self>    ConstPointer;
00073 
00075   itkTypeMacro(Element3DC0LinearHexahedron, TemplatedParentClass);
00076 
00077   // ////////////////////////////////////////////////////////////////////////
00082   virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType & pt, Float & w, unsigned int order) const;
00083 
00084   virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const;
00085 
00086   // ////////////////////////////////////////////////////////////////////////
00092   virtual VectorType ShapeFunctions(const VectorType & pt) const;
00093 
00095   virtual void ShapeFunctionDerivatives(const VectorType & pt, MatrixType & shapeD) const;
00096 
00098   virtual bool GetLocalFromGlobalCoordinates(const VectorType & globalPt, VectorType & localPt) const;
00099 
00103   void InterpolationFunctions( const VectorType & pcoords, VectorType & sf) const;
00104 
00105   void InterpolationDerivs(const VectorType & pcoords, VectorType & derivs) const;
00106 
00107   Float Determinant3x3(const VectorType & c1, const VectorType & c2, const VectorType & c3) const;
00108 
00109 protected:
00110   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00111 
00112   virtual void PopulateEdgeIds(void);
00113 
00114 };
00115 }
00116 }  // end namespace itk::fem
00117 
00118 #endif  // #ifndef __itkFEMElement3DC0LinearHexahedron_h
00119