ITK  4.9.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;
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 
87  EDGE_NULL, //1
88  MESH_NULL, //2
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 
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 
144 
145  EdgeStatusType CheckStatus(QEType *e, std::stack< TQEType * > & oToBeDeleted);
146 
147  QEType * Process(QEType *e);
148 
150 
151  QEType * ProcessIsolatedFace(QEType *e, std::stack< QEType * > & EdgesToBeDeleted
152  );
153 
154 private:
155  QuadEdgeMeshEulerOperatorJoinVertexFunction(const Self &) ITK_DELETE_FUNCTION;
156  void operator=(const Self &) ITK_DELETE_FUNCTION;
157 };
158 } // namespace itk
159 
160 #include "itkQuadEdgeMeshEulerOperatorJoinVertexFunction.hxx"
161 
162 #endif
163 
164 // eof - itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h
PointIdentifier CommonVertexNeighboor(QEType *e)
Light weight base class for most itk classes.
Collapse a given edge by joining its dest and its org.
bool IsFaceIsolated(QEType *e, const bool &iWasLeftFace, std::stack< TQEType * > &oToBeDeleted)
static const double e
The base of the natural logarithm or Euler&#39;s number
Definition: itkMath.h:47
EdgeStatusType CheckStatus(QEType *e, std::stack< TQEType * > &oToBeDeleted)
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
QEType * ProcessIsolatedFace(QEType *e, std::stack< QEType * > &EdgesToBeDeleted)