ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkQuadEdgeMeshEulerOperatorCreateCenterVertexFunction_h 00019 #define __itkQuadEdgeMeshEulerOperatorCreateCenterVertexFunction_h 00020 00021 #include "itkQuadEdgeMeshFunctionBase.h" 00022 00023 namespace itk 00024 { 00032 template< class TMesh, class TQEType > 00033 class ITK_EXPORT QuadEdgeMeshEulerOperatorCreateCenterVertexFunction: 00034 public QuadEdgeMeshFunctionBase< TMesh, TQEType * > 00035 { 00036 public: 00037 00039 typedef QuadEdgeMeshEulerOperatorCreateCenterVertexFunction Self; 00040 typedef QuadEdgeMeshFunctionBase< TMesh, TQEType * > Superclass; 00041 typedef SmartPointer< Self > Pointer; 00042 typedef SmartPointer< const Self > ConstPointer; 00043 00044 itkNewMacro(Self); 00046 itkTypeMacro(QuadEdgeMeshEulerOperatorCreateCenterVertexFunction, QuadEdgeMeshFunctionBase); 00047 00049 typedef TQEType QEType; 00050 00051 typedef typename Superclass::MeshType MeshType; 00052 typedef typename Superclass::OutputType OutputType; 00053 00054 typedef typename MeshType::PointIdentifier PointIdentifier; 00055 typedef typename MeshType::PointType PointType; 00056 typedef typename MeshType::CoordRepType CoordRepType; 00057 typedef typename MeshType::VectorType VectorType; 00058 00060 virtual OutputType Evaluate(QEType *e); 00061 00062 PointIdentifier GetNewPointID() 00063 { 00064 return ( this->m_NewPointID ); 00065 } 00066 00067 protected: 00068 QuadEdgeMeshEulerOperatorCreateCenterVertexFunction() 00069 { 00070 this->m_NewPointID = (PointIdentifier)0; 00071 } 00072 00073 ~QuadEdgeMeshEulerOperatorCreateCenterVertexFunction() {} 00074 private: 00075 QuadEdgeMeshEulerOperatorCreateCenterVertexFunction(const Self &); 00076 //purposely not implemented 00077 void operator=(const Self &); 00078 00079 //purposely not implemented 00080 PointIdentifier m_NewPointID; 00081 }; 00082 } // namespace itk 00083 00084 #include "itkQuadEdgeMeshEulerOperatorCreateCenterVertexFunction.hxx" 00085 00086 #endif // __ITKQUADEDGEMESH__ITKQEEULEROPERATORCREATECENTERVERTEXFUNCTION__H__ 00087