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 __itkLevelSetDomainPartitionBase_h 00019 #define __itkLevelSetDomainPartitionBase_h 00020 00021 #include "itkObject.h" 00022 #include "itkIntTypes.h" 00023 00024 #include <list> 00025 00026 namespace itk 00027 { 00033 template< class TDomain > 00034 class LevelSetDomainPartitionBase : public Object 00035 { 00036 public: 00037 00038 typedef LevelSetDomainPartitionBase Self; 00039 typedef Object Superclass; 00040 typedef SmartPointer< Self > Pointer; 00041 typedef SmartPointer< const Self > ConstPointer; 00042 00043 itkTypeMacro(LevelSetDomainPartitionBase, LightObject); 00044 00046 itkSetMacro( NumberOfLevelSetFunctions, IdentifierType ); 00047 itkGetMacro( NumberOfLevelSetFunctions, IdentifierType ); 00049 00050 protected: 00051 00053 LevelSetDomainPartitionBase(); 00054 00056 virtual ~LevelSetDomainPartitionBase(); 00057 00058 virtual void AllocateListDomain() = 0; 00059 virtual void PopulateListDomain() = 0; 00060 00061 typedef std::list< IdentifierType > IdentifierListType; 00062 typedef typename IdentifierListType::iterator IdentifierListIterator; 00063 typedef typename IdentifierListType::const_iterator IdentifierListConstIterator; 00064 00065 IdentifierType m_NumberOfLevelSetFunctions; 00066 00067 private: 00068 LevelSetDomainPartitionBase(const Self &); // purposely not implemented 00069 void operator=(const Self &); // purposely not implemented 00070 }; 00071 } //end namespace itk 00072 00073 #ifndef ITK_MANUAL_INSTANTIATION 00074 #include "itkLevelSetDomainPartitionBase.hxx" 00075 #endif 00076 00077 #endif 00078