Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkQuadEdgeMeshSmoothing.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshSmoothing.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-25 21:17:07 $
00007   Version:   $Revision: 1.2 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkQuadEdgeMeshSmoothing_h
00019 #define __itkQuadEdgeMeshSmoothing_h
00020 
00021 #include <itkQuadEdgeMeshToQuadEdgeMeshFilter.h>
00022 #include "itkQuadEdgeMeshDelaunayConformingFilter.h"
00023 #include "itkQuadEdgeMeshParamMatrixCoefficients.h"
00024 
00025 namespace itk
00026 {
00031 template< class TInputMesh, class TOutputMesh >
00032 class QuadEdgeMeshSmoothing :
00033   public QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, TOutputMesh >
00034 {
00035 public:
00036   typedef QuadEdgeMeshSmoothing       Self;
00037   typedef SmartPointer< Self >        Pointer;
00038   typedef SmartPointer< const Self >  ConstPointer;
00039   typedef QuadEdgeMeshToQuadEdgeMeshFilter< TInputMesh, TOutputMesh >
00040                                       Superclass;
00041 
00043   itkTypeMacro( QuadEdgeMeshSmoothing, QuadEdgeMeshToQuadEdgeMeshFilter );
00044 
00046   itkNewMacro( Self );
00047 
00048   typedef TInputMesh                      InputMeshType;
00049   typedef typename InputMeshType::Pointer InputMeshPointer;
00050 
00051   typedef TOutputMesh                               OutputMeshType;
00052   typedef typename OutputMeshType::Pointer          OutputMeshPointer;
00053   typedef typename OutputMeshType::EdgeCellType     OutputEdgeCellType;
00054   typedef typename OutputMeshType::PolygonCellType  OutputPolygonCellType;
00055   typedef typename OutputMeshType::QEType           OutputQEType;
00056   typedef typename OutputMeshType::PointIdentifier  OutputPointIdentifier;
00057   typedef typename OutputMeshType::PointType        OutputPointType;
00058   typedef typename OutputPointType::VectorType      OutputVectorType;
00059   typedef typename OutputPointType::CoordRepType    OutputCoordType;
00060   typedef typename OutputMeshType::PointsContainer  OutputPointsContainer;
00061   typedef typename OutputMeshType::PointsContainerPointer
00062     OutputPointsContainerPointer;
00063   typedef typename OutputMeshType::PointsContainerIterator
00064     OutputPointsContainerIterator;
00065   typedef typename OutputMeshType::CellsContainerPointer
00066     OutputCellsContainerPointer;
00067   typedef typename OutputMeshType::CellsContainerIterator
00068     OutputCellsContainerIterator;
00069 
00070   itkStaticConstMacro( PointDimension, unsigned int,
00071                        OutputMeshType::PointDimension );
00072 
00073   typedef QuadEdgeMeshDelaunayConformingFilter< InputMeshType, OutputMeshType >
00074     InputOutputDelaunayConformingType;
00075   typedef typename InputOutputDelaunayConformingType::Pointer
00076     InputOutputDelaunayConformingPointer;
00077 
00078   typedef QuadEdgeMeshDelaunayConformingFilter< OutputMeshType, OutputMeshType >
00079     OutputDelaunayConformingType;
00080   typedef typename OutputDelaunayConformingType::Pointer
00081     OutputDelaunayConformingPointer;
00082 
00083   typedef MatrixCoefficients< OutputMeshType > CoefficientsComputation;
00084 
00085   void SetCoefficientsMethod( CoefficientsComputation* iMethod )
00086     { m_CoefficientsMethod = iMethod; }
00087 
00088   itkSetMacro( NumberOfIterations, unsigned int );
00089   itkSetMacro( DelaunayConforming, bool );
00090   itkSetMacro( RelaxationFactor, OutputCoordType );
00091 
00092 protected:
00093   QuadEdgeMeshSmoothing();
00094   ~QuadEdgeMeshSmoothing();
00095 
00096   CoefficientsComputation*              m_CoefficientsMethod;
00097   InputOutputDelaunayConformingPointer  m_InputDelaunayFilter;
00098   OutputDelaunayConformingPointer       m_OutputDelaunayFilter;
00099   bool                                  m_DelaunayConforming;
00100   unsigned int                          m_NumberOfIterations;
00101   OutputCoordType                       m_RelaxationFactor;
00102 
00103   void GenerateData();
00104 
00105 private:
00106   QuadEdgeMeshSmoothing( const Self& );
00107   void operator = ( const Self& );
00108 };
00109 }
00110 
00111 #include "itkQuadEdgeMeshSmoothing.txx"
00112 #endif
00113 

Generated at Sat Feb 28 13:21:38 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000