ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshEulerOperatorFlipEdgeFunction.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 __itkQuadEdgeMeshEulerOperatorFlipEdgeFunction_h
00019 #define __itkQuadEdgeMeshEulerOperatorFlipEdgeFunction_h
00020 
00021 #include "itkQuadEdgeMeshFunctionBase.h"
00022 
00023 namespace itk
00024 {
00038 template< class TMesh, class TQEType >
00039 class ITK_EXPORT QuadEdgeMeshEulerOperatorFlipEdgeFunction:
00040   public QuadEdgeMeshFunctionBase< TMesh, TQEType * >
00041 {
00042 public:
00043 
00045   typedef QuadEdgeMeshEulerOperatorFlipEdgeFunction    Self;
00046   typedef QuadEdgeMeshFunctionBase< TMesh, TQEType * > Superclass;
00047   typedef SmartPointer< Self >                         Pointer;
00048   typedef SmartPointer< const Self >                   ConstPointer;
00049 
00050   itkNewMacro(Self);
00052   itkTypeMacro(QuadEdgeMeshEulerOperatorFlipEdgeFunction,
00053                QuadEdgeMeshFunctionBase);
00054 
00056   typedef TQEType QEType;
00057 
00058   typedef typename Superclass::MeshType   MeshType;
00059   typedef typename Superclass::OutputType OutputType;
00060 
00061   enum EdgeStatusType {
00062     STANDARD_CONFIG = 0,
00063     EDGE_NULL,
00064     MESH_NULL,
00065     NON_INTERNAL_EDGE,
00066     NON_TRIANGULAR_RIGHT_FACE,
00067     NON_TRIANGULAR_LEFT_FACE,
00068     EXISTING_OPPOSITE_EDGE
00069     };
00070 
00072   virtual OutputType Evaluate(QEType *h);
00073 
00074   // itkGetConstMacro( EdgeStatus, EdgeStatusType );
00075 protected:
00076   QuadEdgeMeshEulerOperatorFlipEdgeFunction();
00077   ~QuadEdgeMeshEulerOperatorFlipEdgeFunction(){}
00078 
00079   void PrintSelf(std::ostream & os, Indent indent) const;
00080 
00081   EdgeStatusType m_EdgeStatus;
00082 
00083   void CheckStatus(QEType *h);
00084 
00085   OutputType Process(QEType *h);
00086 
00087 private:
00088   //purposely not implemented
00089   QuadEdgeMeshEulerOperatorFlipEdgeFunction(const Self &);
00090   //purposely not implemented
00091   void operator=(const Self &);
00092 };
00093 } // namespace itkQE
00094 
00095 #include "itkQuadEdgeMeshEulerOperatorFlipEdgeFunction.hxx"
00096 
00097 #endif
00098 
00099 // eof - itkQuadEdgeMeshEulerOperatorFlipEdgeFunction.h
00100