ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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#include <vector>
25
26namespace itk
27{
34template <typename TInputMesh, typename TCellSubdivisionFilter>
36 : public QuadEdgeMeshToQuadEdgeMeshFilter<TInputMesh, typename TCellSubdivisionFilter::OutputMeshType>
37{
38public:
40
45
46 using CellSubdivisionFilterType = TCellSubdivisionFilter;
47 using CellSubdivisionFilterPointer = typename CellSubdivisionFilterType::Pointer;
48 using CellSubdivisionFilterPointerVector = typename std::vector<CellSubdivisionFilterPointer>;
49
50 using InputMeshType = TInputMesh;
51 using InputMeshPointer = typename InputMeshType::Pointer;
52
53 using OutputMeshType = typename CellSubdivisionFilterType::OutputMeshType;
54 using OutputMeshPointer = typename OutputMeshType::Pointer;
55
56 using OutputCellIdentifier = typename CellSubdivisionFilterType::OutputCellIdentifier;
57 using SubdivisionCellContainer = typename CellSubdivisionFilterType::SubdivisionCellContainer;
59 typename CellSubdivisionFilterType::SubdivisionCellContainerConstIterator;
60
63 itkNewMacro(Self);
64
65 static_assert(std::is_same_v<typename CellSubdivisionFilterType::InputMeshType,
66 typename CellSubdivisionFilterType::OutputMeshType>);
67
68 itkSetMacro(ResolutionLevels, unsigned int);
69 itkGetConstMacro(ResolutionLevels, unsigned int);
70 void
72 itkGetConstReferenceMacro(CellsToBeSubdivided, SubdivisionCellContainer);
73
74 void
76
77protected:
79
81
82 void
83 GenerateData() override;
84
85 void
86 PrintSelf(std::ostream & os, Indent indent) const override;
87
90 unsigned int m_ResolutionLevels;
91};
92} // end namespace itk
93
94#ifndef ITK_MANUAL_INSTANTIATION
95# include "itkIterativeTriangleCellSubdivisionQuadEdgeMeshFilter.hxx"
96#endif
97
98#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
typename CellSubdivisionFilterType::SubdivisionCellContainer SubdivisionCellContainer
QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, typename TCellSubdivisionFilter::OutputMeshType > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
typename CellSubdivisionFilterType::SubdivisionCellContainerConstIterator SubdivisionCellContainerConstIterator
void SetCellsToBeSubdivided(const SubdivisionCellContainer &)
void AddSubdividedCellId(OutputCellIdentifier cellId)
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)