ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkFEMElement2DC0LinearLine.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 itkFEMElement2DC0LinearLine_h
20 #define itkFEMElement2DC0LinearLine_h
21 
22 #include "itkFEMElementStd.h"
23 #include "ITKFEMExport.h"
24 
25 namespace itk
26 {
27 namespace fem
28 {
35 class ITKFEM_EXPORT Element2DC0LinearLine : public ElementStd<2, 2>
36 {
37 public:
38 
45 
48 
49  // ////////////////////////////////////////////////////////////////////////
54  enum { DefaultIntegrationOrder = 1 };
55 
57  virtual void GetIntegrationPointAndWeight(unsigned int i,
58  VectorType & pt,
59  Float & w,
60  unsigned int order) const ITK_OVERRIDE;
61 
63  virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const ITK_OVERRIDE;
64 
65  // ////////////////////////////////////////////////////////////////////////
71  virtual VectorType ShapeFunctions(const VectorType & pt) const ITK_OVERRIDE;
72 
74  virtual void ShapeFunctionDerivatives(const VectorType & pt, MatrixType & shapeD) const ITK_OVERRIDE;
75 
81  virtual bool GetLocalFromGlobalCoordinates(const VectorType & globalPt,
82  VectorType & localPt) const ITK_OVERRIDE;
83 
93  virtual void Jacobian(const VectorType & pt, MatrixType & J, const MatrixType *pshapeD = ITK_NULLPTR) const ITK_OVERRIDE;
94 
98  Float DistanceToLine(const VectorType & x, const VectorType & p1, const VectorType & p2, Float & t,
99  VectorType & closestPoint) const;
100 
101 protected:
102  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
103 
104  virtual void PopulateEdgeIds(void) ITK_OVERRIDE; // HACK: Should PopulateEdgeIds
105  // be const or not in this
106  // hierarchy. Sometimes it is,
107  // sometimes it is not.
108 
109 };
110 }
111 } // end namespace itk::fem
112 
113 #endif // #ifndef itkFEMElement2DC0LinearLine_h
Implements standard node management in the element classes.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
2-noded, linear, C0 continuous line element in 2D space. takes loads only along the length of the axi...