ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshEulerOperatorJoinVertexFunction.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 itkQuadEdgeMeshEulerOperatorJoinVertexFunction_h
19 #define itkQuadEdgeMeshEulerOperatorJoinVertexFunction_h
20 
22 
23 #include <stack>
24 
25 namespace itk
26 {
56 template< typename TMesh, typename TQEType >
58  public QuadEdgeMeshFunctionBase< TMesh, TQEType * >
59 {
60 public:
61 
67 
68  itkNewMacro(Self);
71 
73  typedef TQEType QEType;
74 
75  typedef typename Superclass::MeshType MeshType;
76  typedef typename Superclass::OutputType OutputType;
77 
78  typedef typename MeshType::PointIdentifier PointIdentifier;
79  typedef typename MeshType::CellIdentifier CellIdentifier;
80  typedef typename MeshType::FaceRefType FaceRefType;
81 
83  virtual OutputType Evaluate(QEType *h);
84 
86  STANDARD_CONFIG = 0,
87  EDGE_NULL, //1
88  MESH_NULL, //2
96  EDGE_JOINING_DIFFERENT_BORDERS //10
97  };
98 
99  itkGetConstMacro(OldPointID, PointIdentifier);
100  itkGetConstMacro(EdgeStatus, EdgeStatusType);
101 
102 protected:
105 
106  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
107 
109 
111 
118  PointIdentifier CommonVertexNeighboor(QEType *e);
119 
126  bool IsTetrahedron(QEType *e);
127 
136  bool IsFaceIsolated(QEType *e, const bool & iWasLeftFace,
137  std::stack< TQEType * > & oToBeDeleted);
138 
139  bool IsSamosa(QEType *e);
140 
141  bool IsEye(QEType *e);
142 
143  bool IsEdgeLinkingTwoDifferentBorders(QEType *e);
144 
145  EdgeStatusType CheckStatus(QEType *e, std::stack< TQEType * > & oToBeDeleted);
146 
147  QEType * Process(QEType *e);
148 
149  QEType * ProcessIsolatedQuadEdge(QEType *e);
150 
151  QEType * ProcessIsolatedFace(QEType *e, std::stack< QEType * > & EdgesToBeDeleted
152  );
153 
154 private:
155  ITK_DISALLOW_COPY_AND_ASSIGN(QuadEdgeMeshEulerOperatorJoinVertexFunction);
156 };
157 } // namespace itk
158 
159 #include "itkQuadEdgeMeshEulerOperatorJoinVertexFunction.hxx"
160 
161 #endif
162 
163 // eof - itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h
Light weight base class for most itk classes.
Collapse a given edge by joining its dest and its org.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
static ITK_CONSTEXPR_VAR double e
The base of the natural logarithm or Euler&#39;s number
Definition: itkMath.h:56