ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter.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 
19 #ifndef itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter_h
20 #define itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter_h
21 
23 #include "itkConceptChecking.h"
24 
25 namespace itk
26 {
33 template< typename TInputMesh, typename TCellSubdivisionFilter >
35  public QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, typename TCellSubdivisionFilter::OutputMeshType >
36 {
37 public:
38  ITK_DISALLOW_COPY_AND_ASSIGN(IterativeTriangleCellSubdivisionQuadEdgeMeshFilter);
39 
44 
45  using CellSubdivisionFilterType = TCellSubdivisionFilter;
46  using CellSubdivisionFilterPointer = typename CellSubdivisionFilterType::Pointer;
47 
48  using InputMeshType = TInputMesh;
49  using InputMeshPointer = typename InputMeshType::Pointer;
50 
51  using OutputMeshType = typename CellSubdivisionFilterType::OutputMeshType;
52  using OutputMeshPointer = typename OutputMeshType::Pointer;
53 
54  using OutputCellIdentifier = typename CellSubdivisionFilterType::OutputCellIdentifier;
55  using SubdivisionCellContainer = typename CellSubdivisionFilterType::SubdivisionCellContainer;
56  using SubdivisionCellContainerConstIterator = typename CellSubdivisionFilterType::SubdivisionCellContainerConstIterator;
57 
60  itkNewMacro(Self);
62 
63 #ifdef ITK_USE_CONCEPT_CHECKING
64  itkConceptMacro( SameTypeCheck,
66 #endif
67 
68  itkSetMacro( ResolutionLevels, unsigned int );
69  itkGetConstMacro( ResolutionLevels, unsigned int );
70  itkGetConstReferenceMacro( CellsToBeSubdivided, SubdivisionCellContainer );
71 
72  void SetCellsToBeSubdivided( const SubdivisionCellContainer & cellIdList );
74 
75 protected:
77 
79 
80  void GenerateData() override;
81 
82  void PrintSelf( std::ostream & os, Indent indent ) const override;
83 
86  unsigned int m_ResolutionLevels;
87 };
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 #include "itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter.hxx"
92 #endif
93 
94 #endif
Light weight base class for most itk classes.
void PrintSelf(std::ostream &os, Indent indent) const override
void SetCellsToBeSubdivided(const SubdivisionCellContainer &cellIdList)
typename CellSubdivisionFilterType::SubdivisionCellContainerConstIterator SubdivisionCellContainerConstIterator
void AddSubdividedCellId(OutputCellIdentifier cellId)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
typename CellSubdivisionFilterType::SubdivisionCellContainer SubdivisionCellContainer