ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshBoundaryEdgesMeshFunction.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 __itkQuadEdgeMeshBoundaryEdgesMeshFunction_h
00019 #define __itkQuadEdgeMeshBoundaryEdgesMeshFunction_h
00020 
00021 #include "itkFunctionBase.h"
00022 
00023 namespace itk
00024 {
00036 template< class TMesh >
00037 class ITK_EXPORT QuadEdgeMeshBoundaryEdgesMeshFunction:
00038   public FunctionBase< TMesh, typename TMesh::EdgeListPointerType >
00039 {
00040 public:
00041   // Standard types
00042   typedef QuadEdgeMeshBoundaryEdgesMeshFunction Self;
00043   typedef SmartPointer< Self >                  Pointer;
00044   typedef SmartPointer< const Self >            ConstPointer;
00045   typedef FunctionBase< TMesh,
00046                         typename  TMesh::EdgeListPointerType > Superclass;
00048 
00049   // Types in superclass:
00050   typedef typename Superclass::InputType  InputType;
00051   typedef typename Superclass::OutputType OutputType;
00052 
00053   // Local aliases
00054   typedef InputType                       MeshType;
00055   typedef typename MeshType::QEPrimal     QEPrimal;
00056   typedef typename MeshType::EdgeCellType EdgeCellType;
00057   typedef typename MeshType::EdgeListType EdgeListType;
00058 
00059   itkTypeMacro(QuadEdgeMeshBoundaryEdgesMeshFunction, FunctionBase);
00060   itkNewMacro(Self);
00061 
00062   virtual OutputType Evaluate(const InputType & mesh) const;
00063 
00064 protected:
00065   QuadEdgeMeshBoundaryEdgesMeshFunction() {}
00066 private:
00067   QuadEdgeMeshBoundaryEdgesMeshFunction(const Self &); //purposely not
00068                                                        // implemented
00069   void operator=(const Self &);                        //purposely not
00070                                                        // implemented
00071 };
00072 }
00073 
00074 #ifndef ITK_MANUAL_INSTANTIATION
00075 #include "itkQuadEdgeMeshBoundaryEdgesMeshFunction.hxx"
00076 #endif
00077 
00078 #endif
00079