ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkFEMElement2DC0LinearQuadrilateral_h 00020 #define __itkFEMElement2DC0LinearQuadrilateral_h 00021 00022 #include "itkFEMElementStd.h" 00023 00024 namespace itk 00025 { 00026 namespace fem 00027 { 00056 class Element2DC0LinearQuadrilateral : public ElementStd<4, 2> 00057 { 00058 public: 00060 typedef Element2DC0LinearQuadrilateral Self; 00061 typedef ElementStd<4, 2> TemplatedParentClass; 00062 typedef TemplatedParentClass Superclass; 00063 typedef SmartPointer<Self> Pointer; 00064 typedef SmartPointer<const Self> ConstPointer; 00065 00067 itkTypeMacro(Element2DC0LinearQuadrilateral, TemplatedParentClass); 00068 00069 // //////////////////////////////////////////////////////////////////////// 00074 enum { DefaultIntegrationOrder = 2 }; 00075 00077 virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType & pt, Float & w, unsigned int order) const; 00078 00080 virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const; 00081 00082 // //////////////////////////////////////////////////////////////////////// 00088 virtual VectorType ShapeFunctions(const VectorType & pt) const; 00089 00091 virtual void ShapeFunctionDerivatives(const VectorType & pt, MatrixType & shapeD) const; 00092 00094 virtual bool GetLocalFromGlobalCoordinates(const VectorType & globalPt, VectorType & localPt) const; 00095 00097 void InterpolationFunctions( const VectorType & pcoords, VectorType & sf) const; 00098 00100 void InterpolationDerivs(const VectorType & pcoords, VectorType & derivs) const; 00101 00103 Float Determinant2x2(const VectorType & c1, const VectorType & c2) const; 00104 00105 protected: 00106 virtual void PopulateEdgeIds(void); 00107 00108 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00109 00110 private: 00111 00112 }; 00113 } 00114 } // end namespace itk::fem 00115 00116 #endif // #ifndef __itkFEMElement2DC0LinearQuadrilateral_h 00117