ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
FEM
include
itkFEMElement2DC0QuadraticTriangular.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
19
#ifndef __itkFEMElement2DC0QuadraticTriangular_h
20
#define __itkFEMElement2DC0QuadraticTriangular_h
21
22
#include "
itkFEMElementStd.h
"
23
24
namespace
itk
25
{
26
namespace
fem
27
{
57
class
Element2DC0QuadraticTriangular
:
public
ElementStd
<6, 2>
58
{
59
public
:
60
62
typedef
Element2DC0QuadraticTriangular
Self
;
63
typedef
ElementStd<6, 2>
TemplatedParentClass
;
64
typedef
TemplatedParentClass
Superclass
;
65
typedef
SmartPointer<Self>
Pointer
;
66
typedef
SmartPointer<const Self>
ConstPointer
;
67
69
itkTypeMacro(
Element2DC0QuadraticTriangular
,
TemplatedParentClass
);
70
71
// ////////////////////////////////////////////////////////////////////////
76
enum
{
DefaultIntegrationOrder
= 2 };
77
79
virtual
void
GetIntegrationPointAndWeight
(
unsigned
int
i,
VectorType
& pt,
Float
& w,
unsigned
int
order)
const
;
80
82
virtual
unsigned
int
GetNumberOfIntegrationPoints
(
unsigned
int
order)
const
;
83
84
// ////////////////////////////////////////////////////////////////////////
90
virtual
VectorType
ShapeFunctions
(
const
VectorType
& pt)
const
;
91
93
virtual
void
ShapeFunctionDerivatives
(
const
VectorType
& pt,
MatrixType
& shapeD)
const
;
94
96
virtual
bool
GetLocalFromGlobalCoordinates
(
const
VectorType
& GlobalPt,
VectorType
& LocalPt)
const
;
97
98
// Since the Jacobian is not quadratic, we need to provide our
99
// own implementation of calculating the determinant and inverse.
100
virtual
Float
JacobianDeterminant
(
const
VectorType
& pt,
const
MatrixType
*pJ = 0)
const
;
101
103
virtual
void
JacobianInverse
(
const
VectorType
& pt,
MatrixType
& invJ,
const
MatrixType
*pJ = 0)
const
;
104
105
protected
:
106
virtual
void
PrintSelf
(std::ostream& os,
Indent
indent)
const
;
107
108
virtual
void
PopulateEdgeIds
(
void
);
109
110
};
111
}
112
}
// end namespace itk::fem
113
114
#endif // #ifndef __itkFEMElement2DC0QuadraticTriangular_h
115
Generated on Mon May 13 2013 00:49:33 for ITK by
1.8.3.1