ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSmoothingQuadEdgeMeshFilter.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 itkSmoothingQuadEdgeMeshFilter_h
19 #define itkSmoothingQuadEdgeMeshFilter_h
20 
23 
24 namespace itk
25 {
57 template< typename TInputMesh, typename TOutputMesh=TInputMesh >
58 class ITK_TEMPLATE_EXPORT SmoothingQuadEdgeMeshFilter:
59  public QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, TOutputMesh >
60 {
61 public:
66 
69 
71  itkNewMacro(Self);
72 
73  using InputMeshType = TInputMesh;
74  using InputMeshPointer = typename InputMeshType::Pointer;
75 
76  using OutputMeshType = TOutputMesh;
77  using OutputMeshPointer = typename OutputMeshType::Pointer;
78  using OutputEdgeCellType = typename OutputMeshType::EdgeCellType;
79  using OutputPolygonCellType = typename OutputMeshType::PolygonCellType;
80  using OutputQEType = typename OutputMeshType::QEType;
81  using OutputPointIdentifier = typename OutputMeshType::PointIdentifier;
84  using OutputCoordType = typename OutputPointType::CoordRepType;
85  using OutputPointsContainer = typename OutputMeshType::PointsContainer;
86  using OutputPointsContainerPointer = typename OutputMeshType::PointsContainerPointer;
87  using OutputPointsContainerIterator = typename OutputMeshType::PointsContainerIterator;
88  using OutputCellsContainerPointer = typename OutputMeshType::CellsContainerPointer;
89  using OutputCellsContainerIterator = typename OutputMeshType::CellsContainerIterator;
90 
91  static constexpr unsigned int PointDimension = OutputMeshType::PointDimension;
92 
94 
95  void SetCoefficientsMethod(CoefficientsComputation *iMethod);
96 
98  itkSetMacro(NumberOfIterations, unsigned int);
99  itkGetConstMacro(NumberOfIterations, unsigned int);
101 
103  itkSetMacro(DelaunayConforming, bool);
104  itkGetConstMacro(DelaunayConforming, bool);
106 
108  itkSetMacro(RelaxationFactor, OutputCoordType);
109  itkGetConstMacro(RelaxationFactor, OutputCoordType);
111 
112 protected:
114  ~SmoothingQuadEdgeMeshFilter() override;
115  void PrintSelf(std::ostream & os, Indent indent) const override;
116 
118 
121 
123 
126 
128 
130 
131  unsigned int m_NumberOfIterations;
132 
134 
135  void GenerateData() override;
136 
137 private:
138  SmoothingQuadEdgeMeshFilter(const Self &) = delete;
139  void operator=(const Self &) = delete;
140 };
141 }
142 
143 #include "itkSmoothingQuadEdgeMeshFilter.hxx"
144 #endif
typename OutputMeshType::PointsContainerIterator OutputPointsContainerIterator
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
typename OutputMeshType::CellsContainerIterator OutputCellsContainerIterator
typename OutputDelaunayConformingType::Pointer OutputDelaunayConformingPointer
typename OutputMeshType::PolygonCellType OutputPolygonCellType
typename OutputPointType::CoordRepType OutputCoordType
typename OutputMeshType::QEType OutputQEType
typename OutputMeshType::PointIdentifier OutputPointIdentifier
typename InputMeshType::Pointer InputMeshPointer
typename InputOutputDelaunayConformingType::Pointer InputOutputDelaunayConformingPointer
typename OutputMeshType::EdgeCellType OutputEdgeCellType
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
typename OutputMeshType::CellsContainerPointer OutputCellsContainerPointer
InputOutputDelaunayConformingPointer m_InputDelaunayFilter
typename OutputMeshType::PointsContainer OutputPointsContainer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename OutputMeshType::VectorType OutputVectorType
typename OutputMeshType::PointsContainerPointer OutputPointsContainerPointer
OutputDelaunayConformingPointer m_OutputDelaunayFilter
Superclass for all the matrix coefficients computation classes.