ITK  4.13.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  typedef TInputMesh InputMeshType;
74  typedef typename InputMeshType::Pointer InputMeshPointer;
75 
76  typedef TOutputMesh OutputMeshType;
77  typedef typename OutputMeshType::Pointer OutputMeshPointer;
78  typedef typename OutputMeshType::EdgeCellType OutputEdgeCellType;
79  typedef typename OutputMeshType::PolygonCellType OutputPolygonCellType;
80  typedef typename OutputMeshType::QEType OutputQEType;
81  typedef typename OutputMeshType::PointIdentifier OutputPointIdentifier;
84  typedef typename OutputPointType::CoordRepType OutputCoordType;
85  typedef typename OutputMeshType::PointsContainer OutputPointsContainer;
86  typedef typename OutputMeshType::PointsContainerPointer OutputPointsContainerPointer;
87  typedef typename OutputMeshType::PointsContainerIterator OutputPointsContainerIterator;
88  typedef typename OutputMeshType::CellsContainerPointer OutputCellsContainerPointer;
89  typedef typename OutputMeshType::CellsContainerIterator OutputCellsContainerIterator;
90 
91  itkStaticConstMacro(PointDimension, unsigned int, 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() ITK_OVERRIDE;
115  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
116 
117  CoefficientsComputation *m_CoefficientsMethod;
118 
120  typedef typename InputOutputDelaunayConformingType::Pointer InputOutputDelaunayConformingPointer;
121 
122  InputOutputDelaunayConformingPointer m_InputDelaunayFilter;
123 
125  typedef typename OutputDelaunayConformingType::Pointer OutputDelaunayConformingPointer;
126 
127  OutputDelaunayConformingPointer m_OutputDelaunayFilter;
128 
129  bool m_DelaunayConforming;
130 
131  unsigned int m_NumberOfIterations;
132 
133  OutputCoordType m_RelaxationFactor;
134 
135  void GenerateData() ITK_OVERRIDE;
136 
137 private:
139  void operator=(const Self &);
140 };
141 }
142 
143 #include "itkSmoothingQuadEdgeMeshFilter.hxx"
144 #endif
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:66
OutputMeshType::CellsContainerIterator OutputCellsContainerIterator
OutputMeshType::CellsContainerPointer OutputCellsContainerPointer
OutputMeshType::PointsContainerPointer OutputPointsContainerPointer
OutputMeshType::PointsContainer OutputPointsContainer
OutputMeshType::EdgeCellType OutputEdgeCellType
OutputMeshType::PointIdentifier OutputPointIdentifier
OutputPointType::CoordRepType OutputCoordType
QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, TOutputMesh > Superclass
OutputMeshType::PolygonCellType OutputPolygonCellType
MatrixCoefficients< OutputMeshType > CoefficientsComputation
Control indentation during Print() invocation.
Definition: itkIndent.h:49
OutputMeshType::PointsContainerIterator OutputPointsContainerIterator
Superclass for all the matrix coefficients computation classes.