ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshTopologyChecker.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 itkQuadEdgeMeshTopologyChecker_h
19 #define itkQuadEdgeMeshTopologyChecker_h
20 
22 
23 namespace itk
24 {
40 template< typename TMesh >
41 class ITK_TEMPLATE_EXPORT QuadEdgeMeshTopologyChecker:public Object
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(QuadEdgeMeshTopologyChecker);
45 
46  // Standard types
48  using Superclass = Object;
51 
52  using MeshType = TMesh;
53  using QEPrimal = typename MeshType::QEPrimal;
54  using EdgeCellType = typename MeshType::EdgeCellType;
55  using CellsContainerConstIterator = typename MeshType::CellsContainerConstIterator;
57 
58  using PointIdentifier = typename MeshType::PointIdentifier;
59  using CellIdentifier = typename MeshType::CellIdentifier;
60 
61 public:
62  itkNewMacro(Self);
63  itkTypeMacro(QuadEdgeMeshTopologyChecker, Object);
64 
65  itkSetConstObjectMacro(Mesh, MeshType);
66 
69 
70  itkSetMacro(ExpectedNumberOfPoints, PointIdentifier);
71  itkSetMacro(ExpectedNumberOfEdges, CellIdentifier);
72  itkSetMacro(ExpectedNumberOfFaces, CellIdentifier);
73  itkSetMacro(ExpectedNumberOfBoundaries, CellIdentifier);
74  itkSetMacro(ExpectedGenus, OffsetValueType);
75 
76  bool ValidateEulerCharacteristic() const;
77 
78 protected:
80  ~QuadEdgeMeshTopologyChecker() override = default;
81  void PrintSelf(std::ostream & os, Indent indent) const override;
82 
83 private:
84  using MeshPointer = typename MeshType::ConstPointer;
85 
87 
93 };
94 }
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #include "itkQuadEdgeMeshTopologyChecker.hxx"
98 #endif
99 
100 #endif
Light weight base class for most itk classes.
typename MeshType::PointIdentifier PointIdentifier
typename MeshType::EdgeCellType EdgeCellType
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:108
typename MeshType::ConstPointer MeshPointer
unsigned long IdentifierType
Build a list of references to edges (as GeometricalQuadEdge::RawPointer) each one representing a diff...
typename MeshType::CellIdentifier CellIdentifier
typename MeshType::CellsContainerConstIterator CellsContainerConstIterator
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Make some basic checks in order to verify that the considered mesh is not degenerated and correctly r...
Base class for most ITK classes.
Definition: itkObject.h:60
signed long OffsetValueType
Definition: itkIntTypes.h:94