ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkFEMElement3DC0LinearTetrahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkFEMElement3DC0LinearTetrahedron_h
19 #define itkFEMElement3DC0LinearTetrahedron_h
20 
21 #include "itkFEMElementStd.h"
22 #include "ITKFEMExport.h"
23 // to make some checks in GetLocalFromGlobalCoordinates
24 #include <vnl/vnl_matrix.h>
25 #include <vnl/algo/vnl_matrix_inverse.h>
26 
27 namespace itk
28 {
29 namespace fem
30 {
62 class ITKFEM_EXPORT Element3DC0LinearTetrahedron : public ElementStd<4, 3>
63 {
64 public:
65 
72 
75 
76  // ////////////////////////////////////////////////////////////////////////
81  enum { DefaultIntegrationOrder = 1 };
82 
84  virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType & pt, Float & w, unsigned int order) const ITK_OVERRIDE;
85 
87  virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const ITK_OVERRIDE;
88 
89  // ////////////////////////////////////////////////////////////////////////
95  virtual VectorType ShapeFunctions(const VectorType & pt) const ITK_OVERRIDE;
96 
98  virtual void ShapeFunctionDerivatives(const VectorType & pt, MatrixType & shapeD) const ITK_OVERRIDE;
99 
101  virtual bool GetLocalFromGlobalCoordinates(const VectorType & globalPt, VectorType & localPt) const ITK_OVERRIDE;
102 
103 protected:
104  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
105 
106  virtual void PopulateEdgeIds(void) ITK_OVERRIDE;
107 
108 };
109 }
110 } // end namespace itk::fem
111 
112 #endif // #ifndef itkFEMElement3DC0LinearTetrahedron_h
Implements standard node management in the element classes.
4-noded, linear, C0 continuous finite element in 3D space.
Control indentation during Print() invocation.
Definition: itkIndent.h:49