ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkQuadraticEdgeCell.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 itkQuadraticEdgeCell_h
19 #define itkQuadraticEdgeCell_h
20 
21 #include "itkVertexCell.h"
22 
23 namespace itk
24 {
36 template< typename TCellInterface >
37 class QuadraticEdgeCell:public TCellInterface
38 {
39 public:
42  itkCellInheritedTypedefs(TCellInterface);
44 
47 
50  typedef typename VertexType::SelfAutoPointer VertexAutoPointer;
51 
53  itkStaticConstMacro(NumberOfPoints, unsigned int, 3);
54  itkStaticConstMacro(NumberOfVertices, unsigned int, 2);
55  itkStaticConstMacro(CellDimension, unsigned int, 1);
57 
59  virtual CellGeometry GetType(void) const ITK_OVERRIDE
60  { return Superclass::QUADRATIC_EDGE_CELL; }
61  virtual void MakeCopy(CellAutoPointer &) const ITK_OVERRIDE;
63 
64  virtual unsigned int GetDimension(void) const ITK_OVERRIDE;
65 
66  virtual unsigned int GetNumberOfPoints(void) const ITK_OVERRIDE;
67 
68  virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const ITK_OVERRIDE;
69 
70  virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &) ITK_OVERRIDE;
71  virtual void SetPointIds(PointIdConstIterator first) ITK_OVERRIDE;
72 
73  virtual void SetPointIds(PointIdConstIterator first,
74  PointIdConstIterator last) ITK_OVERRIDE;
75 
76  virtual void SetPointId(int localId, PointIdentifier) ITK_OVERRIDE;
77  virtual PointIdIterator PointIdsBegin(void) ITK_OVERRIDE;
78 
79  virtual PointIdConstIterator PointIdsBegin(void) const ITK_OVERRIDE;
80 
81  virtual PointIdIterator PointIdsEnd(void) ITK_OVERRIDE;
82 
83  virtual PointIdConstIterator PointIdsEnd(void) const ITK_OVERRIDE;
84 
86  virtual CellFeatureCount GetNumberOfVertices() const;
87 
88  virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
89 
91  itkCellVisitMacro(Superclass::QUADRATIC_EDGE_CELL);
92 
94  {
95  for ( PointIdentifier i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++ )
96  {
98  }
99  }
100 
102 
105  virtual void EvaluateShapeFunctions(
106  const ParametricCoordArrayType & parametricCoordinates,
107  ShapeFunctionsArrayType & weights) const ITK_OVERRIDE;
108 
109 protected:
111  PointIdentifier m_PointIds[NumberOfPoints];
112 
113 private:
114  QuadraticEdgeCell(const Self &) ITK_DELETE_FUNCTION;
115  void operator=(const Self &) ITK_DELETE_FUNCTION;
116 };
117 } // end namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 #include "itkQuadraticEdgeCell.hxx"
121 #endif
122 
123 #endif
virtual unsigned int GetDimension(void) const override
virtual void SetPointId(int localId, PointIdentifier) override
itkCellInheritedTypedefs(TCellInterface)
virtual void SetPointIds(PointIdConstIterator first) override
virtual PointIdIterator PointIdsEnd(void) override
virtual CellGeometry GetType(void) const override
itkCellVisitMacro(Superclass::QUADRATIC_EDGE_CELL)
An abstract interface for cells.
VertexCell< TCellInterface > VertexType
static const unsigned int NumberOfPoints
virtual unsigned int GetNumberOfPoints(void) const override
itkCellCommonTypedefs(QuadraticEdgeCell)
virtual CellFeatureCount GetNumberOfVertices() const
static T max(const T &)
virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &)
virtual PointIdIterator PointIdsBegin(void) override
Represents a second order line segment for a Mesh.
static const unsigned int CellDimension
VertexType::SelfAutoPointer VertexAutoPointer
virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &) override
virtual void MakeCopy(CellAutoPointer &) const override
PointIdentifier m_PointIds[NumberOfPoints]
Represents a single vertex for a Mesh.
Definition: itkVertexCell.h:39
static const unsigned int NumberOfVertices
virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const override
virtual void EvaluateShapeFunctions(const ParametricCoordArrayType &parametricCoordinates, ShapeFunctionsArrayType &weights) const override