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

itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-03-10 22:48:45 $
00007   Version:   $Revision: 1.4 $
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 #ifndef __itkQuadEdgeMeshEulerOperatorJoinVertexFunction_h
00018 #define __itkQuadEdgeMeshEulerOperatorJoinVertexFunction_h
00019 
00020 #include "itkQuadEdgeMeshFunctionBase.h"
00021 
00022 namespace itk
00023 {
00024 
00025 //FIXME http://www.cgal.org/Manual/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3.html
00052 template < class TMesh, class TQEType >
00053 class ITK_EXPORT QuadEdgeMeshEulerOperatorJoinVertexFunction :
00054    public QuadEdgeMeshFunctionBase< TMesh, TQEType* >
00055 {
00056 public:
00057 
00059   typedef QuadEdgeMeshEulerOperatorJoinVertexFunction     Self;
00060   typedef SmartPointer< Self >                            Pointer;
00061   typedef SmartPointer< const Self      >                 ConstPointer;
00062   typedef QuadEdgeMeshFunctionBase< TMesh, TQEType* >     Superclass;
00063 
00064   itkNewMacro( Self );
00066   itkTypeMacro( QuadEdgeMeshEulerOperatorJoinVertexFunction, QuadEdgeMeshFunctionBase );
00067 
00069   typedef TQEType QEType;
00070 
00071   typedef typename Superclass::MeshType   MeshType;
00072   typedef typename Superclass::OutputType OutputType;
00073 
00074   typedef typename MeshType::PointIdentifier PointIdentifier;
00075   typedef typename MeshType::FaceRefType     FaceRefType;
00076 
00078   virtual OutputType Evaluate( QEType* h );
00079 
00080   PointIdentifier GetOldPointID( )
00081     {
00082     return( this->m_OldPointID );
00083     }
00084   
00085 protected:
00086   QuadEdgeMeshEulerOperatorJoinVertexFunction()
00087     {
00088     m_OldPointID = (PointIdentifier)0;
00089     }
00090   ~QuadEdgeMeshEulerOperatorJoinVertexFunction(){};
00091 
00092 private:
00093   QuadEdgeMeshEulerOperatorJoinVertexFunction(const Self& ); //purposely not implemented
00094   void operator=(const Self& );        //purposely not implemented
00095 
00096   PointIdentifier m_OldPointID;
00097 
00098   bool CommonVertexNeighboor( QEType* e );
00099 
00100 };
00101 
00102 } // namespace itk
00103 
00104 #include "itkQuadEdgeMeshEulerOperatorJoinVertexFunction.txx"
00105 
00106 #endif
00107 
00108 // eof - $RCSfile: itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h,v $
00109 

Generated at Mon Apr 14 14:04:36 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000