ITK  5.2.0
Insight Toolkit
itkSmoothingQuadEdgeMeshFilter.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  * 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 : public QuadEdgeMeshToQuadEdgeMeshFilter<TInputMesh, TOutputMesh>
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_MOVE(SmoothingQuadEdgeMeshFilter);
62 
67 
70 
72  itkNewMacro(Self);
73 
74  using InputMeshType = TInputMesh;
75  using InputMeshPointer = typename InputMeshType::Pointer;
76 
77  using OutputMeshType = TOutputMesh;
78  using OutputMeshPointer = typename OutputMeshType::Pointer;
79  using OutputEdgeCellType = typename OutputMeshType::EdgeCellType;
80  using OutputPolygonCellType = typename OutputMeshType::PolygonCellType;
81  using OutputQEType = typename OutputMeshType::QEType;
82  using OutputPointIdentifier = typename OutputMeshType::PointIdentifier;
85  using OutputCoordType = typename OutputPointType::CoordRepType;
86  using OutputPointsContainer = typename OutputMeshType::PointsContainer;
87  using OutputPointsContainerPointer = typename OutputMeshType::PointsContainerPointer;
88  using OutputPointsContainerIterator = typename OutputMeshType::PointsContainerIterator;
89  using OutputCellsContainerPointer = typename OutputMeshType::CellsContainerPointer;
90  using OutputCellsContainerIterator = typename OutputMeshType::CellsContainerIterator;
91 
92  static constexpr unsigned int PointDimension = OutputMeshType::PointDimension;
93 
95 
96  void
97  SetCoefficientsMethod(CoefficientsComputation * iMethod);
98 
100  itkSetMacro(NumberOfIterations, unsigned int);
101  itkGetConstMacro(NumberOfIterations, unsigned int);
103 
105  itkBooleanMacro(DelaunayConforming);
106  itkSetMacro(DelaunayConforming, bool);
107  itkGetConstMacro(DelaunayConforming, bool);
109 
111  itkSetMacro(RelaxationFactor, OutputCoordType);
112  itkGetConstMacro(RelaxationFactor, OutputCoordType);
114 
115 protected:
117  ~SmoothingQuadEdgeMeshFilter() override;
118  void
119  PrintSelf(std::ostream & os, Indent indent) const override;
120 
122 
125 
127 
130 
132 
134 
135  unsigned int m_NumberOfIterations;
136 
138 
139  void
140  GenerateData() override;
141 };
142 } // namespace itk
143 
144 #include "itkSmoothingQuadEdgeMeshFilter.hxx"
145 #endif
itk::SmoothingQuadEdgeMeshFilter::m_CoefficientsMethod
CoefficientsComputation * m_CoefficientsMethod
Definition: itkSmoothingQuadEdgeMeshFilter.h:121
itk::SmoothingQuadEdgeMeshFilter::OutputEdgeCellType
typename OutputMeshType::EdgeCellType OutputEdgeCellType
Definition: itkSmoothingQuadEdgeMeshFilter.h:79
itk::SmoothingQuadEdgeMeshFilter::m_DelaunayConforming
bool m_DelaunayConforming
Definition: itkSmoothingQuadEdgeMeshFilter.h:133
itk::SmoothingQuadEdgeMeshFilter::OutputPolygonCellType
typename OutputMeshType::PolygonCellType OutputPolygonCellType
Definition: itkSmoothingQuadEdgeMeshFilter.h:80
itk::SmoothingQuadEdgeMeshFilter::OutputCellsContainerPointer
typename OutputMeshType::CellsContainerPointer OutputCellsContainerPointer
Definition: itkSmoothingQuadEdgeMeshFilter.h:89
itk::MeshSource::OutputMeshPointer
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
itk::QuadEdgeMeshToQuadEdgeMeshFilter::OutputPointsContainerPointer
typename OutputMeshType::PointsContainerPointer OutputPointsContainerPointer
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:86
itk::DelaunayConformingQuadEdgeMeshFilter
FIXME Add documentation.
Definition: itkDelaunayConformingQuadEdgeMeshFilter.h:37
itk::MeshToMeshFilter::InputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
Definition: itkMeshToMeshFilter.h:66
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::SmoothingQuadEdgeMeshFilter::InputOutputDelaunayConformingPointer
typename InputOutputDelaunayConformingType::Pointer InputOutputDelaunayConformingPointer
Definition: itkSmoothingQuadEdgeMeshFilter.h:124
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::MeshToMeshFilter::InputMeshType
TInputMesh InputMeshType
Definition: itkMeshToMeshFilter.h:65
itk::SmoothingQuadEdgeMeshFilter::m_InputDelaunayFilter
InputOutputDelaunayConformingPointer m_InputDelaunayFilter
Definition: itkSmoothingQuadEdgeMeshFilter.h:126
itk::SmoothingQuadEdgeMeshFilter::OutputPointsContainer
typename OutputMeshType::PointsContainer OutputPointsContainer
Definition: itkSmoothingQuadEdgeMeshFilter.h:86
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::SmoothingQuadEdgeMeshFilter::m_OutputDelaunayFilter
OutputDelaunayConformingPointer m_OutputDelaunayFilter
Definition: itkSmoothingQuadEdgeMeshFilter.h:131
itk::SmoothingQuadEdgeMeshFilter::m_RelaxationFactor
OutputCoordType m_RelaxationFactor
Definition: itkSmoothingQuadEdgeMeshFilter.h:137
itk::QuadEdgeMeshToQuadEdgeMeshFilter::OutputVectorType
typename OutputMeshType::VectorType OutputVectorType
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:83
itk::QuadEdgeMeshToQuadEdgeMeshFilter
Duplicates the content of a Mesh.
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:37
itkQuadEdgeMeshParamMatrixCoefficients.h
itk::SmoothingQuadEdgeMeshFilter::OutputDelaunayConformingPointer
typename OutputDelaunayConformingType::Pointer OutputDelaunayConformingPointer
Definition: itkSmoothingQuadEdgeMeshFilter.h:129
itkDelaunayConformingQuadEdgeMeshFilter.h
itk::SmoothingQuadEdgeMeshFilter
QuadEdgeMesh Smoothing Filter.
Definition: itkSmoothingQuadEdgeMeshFilter.h:58
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::MatrixCoefficients
Superclass for all the matrix coefficients computation classes.
Definition: itkQuadEdgeMeshParamMatrixCoefficients.h:33
itk::SmoothingQuadEdgeMeshFilter::OutputCellsContainerIterator
typename OutputMeshType::CellsContainerIterator OutputCellsContainerIterator
Definition: itkSmoothingQuadEdgeMeshFilter.h:90
itk::MeshSource::OutputMeshType
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
itk::SmoothingQuadEdgeMeshFilter::OutputCoordType
typename OutputPointType::CoordRepType OutputCoordType
Definition: itkSmoothingQuadEdgeMeshFilter.h:85
itk::SmoothingQuadEdgeMeshFilter::m_NumberOfIterations
unsigned int m_NumberOfIterations
Definition: itkSmoothingQuadEdgeMeshFilter.h:135
itk::SmoothingQuadEdgeMeshFilter::OutputQEType
typename OutputMeshType::QEType OutputQEType
Definition: itkSmoothingQuadEdgeMeshFilter.h:81
itk::QuadEdgeMeshToQuadEdgeMeshFilter::OutputPointIdentifier
typename OutputMeshType::PointIdentifier OutputPointIdentifier
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:81
itk::QuadEdgeMeshToQuadEdgeMeshFilter::OutputPointType
typename OutputMeshType::PointType OutputPointType
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:80
itk::QuadEdgeMeshToQuadEdgeMeshFilter::OutputPointsContainerIterator
typename OutputMeshType::PointsContainerIterator OutputPointsContainerIterator
Definition: itkQuadEdgeMeshToQuadEdgeMeshFilter.h:85