ITK  4.2.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 {
31 template< class TInputMesh, class TOutputMesh=TInputMesh >
32 class ITK_EXPORT SmoothingQuadEdgeMeshFilter:
33  public QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, TOutputMesh >
34 {
35 public:
40 
43 
45  itkNewMacro(Self);
46 
47  typedef TInputMesh InputMeshType;
48  typedef typename InputMeshType::Pointer InputMeshPointer;
49 
50  typedef TOutputMesh OutputMeshType;
51  typedef typename OutputMeshType::Pointer OutputMeshPointer;
52  typedef typename OutputMeshType::EdgeCellType OutputEdgeCellType;
53  typedef typename OutputMeshType::PolygonCellType OutputPolygonCellType;
54  typedef typename OutputMeshType::QEType OutputQEType;
55  typedef typename OutputMeshType::PointIdentifier OutputPointIdentifier;
56  typedef typename OutputMeshType::PointType OutputPointType;
57  typedef typename OutputPointType::VectorType OutputVectorType;
58  typedef typename OutputPointType::CoordRepType OutputCoordType;
59  typedef typename OutputMeshType::PointsContainer OutputPointsContainer;
60  typedef typename OutputMeshType::PointsContainerPointer OutputPointsContainerPointer;
61  typedef typename OutputMeshType::PointsContainerIterator OutputPointsContainerIterator;
62  typedef typename OutputMeshType::CellsContainerPointer OutputCellsContainerPointer;
63  typedef typename OutputMeshType::CellsContainerIterator OutputCellsContainerIterator;
64 
65  itkStaticConstMacro(PointDimension, unsigned int, OutputMeshType::PointDimension);
66 
69 
72 
74 
75  void SetCoefficientsMethod(CoefficientsComputation *iMethod)
76  { m_CoefficientsMethod = iMethod; }
77 
78  itkSetMacro(NumberOfIterations, unsigned int);
79  itkGetConstMacro(NumberOfIterations, unsigned int);
80 
81  itkSetMacro(DelaunayConforming, bool);
82  itkGetConstMacro(DelaunayConforming, bool);
83 
84  itkSetMacro(RelaxationFactor, OutputCoordType);
85  itkGetConstMacro(RelaxationFactor, OutputCoordType);
86 protected:
89  void PrintSelf(std::ostream & os, Indent indent) const;
90 
92 
94 
96 
98 
99  unsigned int m_NumberOfIterations;
100 
102 
103  void GenerateData();
104 
105 private:
107  void operator=(const Self &);
108 };
109 }
110 
111 #include "itkSmoothingQuadEdgeMeshFilter.hxx"
112 #endif
113