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 __itkQuadEdgeMeshEulerOperatorSplitVertexFunction_h 00019 #define __itkQuadEdgeMeshEulerOperatorSplitVertexFunction_h 00020 00021 #include "itkQuadEdgeMeshFunctionBase.h" 00022 00023 namespace itk 00024 { 00038 template< class TMesh, class TQEType > 00039 class ITK_EXPORT QuadEdgeMeshEulerOperatorSplitVertexFunction: 00040 public QuadEdgeMeshFunctionBase< TMesh, TQEType * > 00041 { 00042 public: 00043 00045 typedef QuadEdgeMeshEulerOperatorSplitVertexFunction Self; 00046 typedef QuadEdgeMeshFunctionBase< TMesh, TQEType * > Superclass; 00047 typedef SmartPointer< Self > Pointer; 00048 typedef SmartPointer< const Self > ConstPointer; 00049 00050 itkNewMacro(Self); 00052 itkTypeMacro(QuadEdgeMeshEulerOperatorSplitVertexFunction, QuadEdgeMeshFunctionBase); 00053 00055 typedef TQEType QEType; 00056 00057 typedef typename Superclass::MeshType MeshType; 00058 typedef typename Superclass::OutputType OutputType; 00059 typedef typename MeshType::VertexRefType VertexRefType; 00060 typedef typename MeshType::EdgeCellType EdgeCellType; 00061 typedef typename MeshType::PointIdentifier PointIdentifier; 00062 00064 virtual OutputType Evaluate(QEType *e, QEType *f); 00065 00066 PointIdentifier GetNewPointID() 00067 { 00068 return ( this->m_NewPoint ); 00069 } 00070 00071 protected: 00072 QuadEdgeMeshEulerOperatorSplitVertexFunction() 00073 { 00074 m_NewPoint = (PointIdentifier)0; 00075 } 00076 00077 ~QuadEdgeMeshEulerOperatorSplitVertexFunction(){} 00078 private: 00079 QuadEdgeMeshEulerOperatorSplitVertexFunction(const Self &); //purposely not 00080 // implemented 00081 void operator=(const Self &); //purposely not 00082 // implemented 00083 00084 PointIdentifier m_NewPoint; // stock newly created point ID for user. 00085 }; 00086 } // namespace itk 00087 00088 #include "itkQuadEdgeMeshEulerOperatorSplitVertexFunction.hxx" 00089 00090 #endif 00091 00092 // eof - itkQuadEdgeMeshEulerOperatorSplitVertexFunction.h 00093