ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction_h
00019 #define __itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction_h
00020 
00021 #include "itkQuadEdgeMeshFunctionBase.h"
00022 
00023 namespace itk
00024 {
00033 template< class TMesh, class TQEType >
00034 class ITK_EXPORT QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction:
00035   public QuadEdgeMeshFunctionBase< TMesh, TQEType * >
00036 {
00037 public:
00038 
00040   typedef QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction Self;
00041   typedef QuadEdgeMeshFunctionBase< TMesh, TQEType * >        Superclass;
00042   typedef SmartPointer< Self >                                Pointer;
00043   typedef SmartPointer< const Self >                          ConstPointer;
00044 
00045   itkNewMacro(Self);
00047   itkTypeMacro(QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction, QuadEdgeMeshFunctionBase);
00048 
00050   typedef TQEType QEType;
00051 
00052   typedef typename Superclass::MeshType   MeshType;
00053   typedef typename Superclass::OutputType OutputType;
00054 
00055   typedef typename MeshType::PointIdentifier PointIdentifier;
00056   typedef typename MeshType::FaceRefType     FaceRefType;
00057 
00059   virtual OutputType Evaluate(QEType *e);
00060 
00061   PointIdentifier GetOldPointID()
00062   {
00063     return ( this->m_OldPointID );
00064   }
00065 
00066 protected:
00067   QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction(){}
00068   ~QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction(){}
00069 private:
00070   QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction(const Self &);
00071   //purposely not implemented
00072   void operator=(const Self &);
00073 
00074   //purposely not implemented
00075   PointIdentifier m_OldPointID;
00076 };
00077 } // namespace itk
00078 
00079 #include "itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.hxx"
00080 
00081 #endif
00082 
00083 // eof - itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.h
00084