00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkCorrespondenceDataStructure.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/03/18 21:42:47 $ 00007 Version: $Revision: 1.5 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkCorrespondenceDataStructure_h 00018 #define __itkCorrespondenceDataStructure_h 00019 00020 #include "itkDataObject.h" 00021 #include "itkNodeList.h" 00022 #include "itkSecondaryNodeList.h" 00023 #include "itkCorrespondingList.h" 00024 00025 namespace itk 00026 { 00027 00039 template<typename TItemType, int VCliqueSize> 00040 class CorrespondenceDataStructure : public DataObject { 00041 public: 00042 00044 typedef CorrespondenceDataStructure Self; 00045 typedef DataObject Superclass; 00046 typedef SmartPointer<Self> Pointer; 00047 typedef SmartPointer<const Self> ConstPointer; 00048 00050 itkNewMacro(Self); 00051 00053 itkTypeMacro(CorrespondenceDataStructure, DataObject); 00054 00055 typedef TItemType ItemType; 00056 itkStaticConstMacro(CliqueSize, unsigned int, VCliqueSize); 00057 00059 typedef CorrespondingList<TItemType, VCliqueSize> CorrespondingListType; 00060 00062 typedef SecondaryNodeList<CorrespondingListType, VCliqueSize> SecondaryNodeListType; 00063 00065 typedef NodeList<SecondaryNodeListType> NodeListType; 00066 00068 NodeListType * m_NodeList; 00069 00070 protected: 00072 CorrespondenceDataStructure(); 00073 00075 ~CorrespondenceDataStructure(); 00076 }; 00077 00078 } // end namespace itk 00079 00080 #ifndef ITK_MANUAL_INSTANTIATION 00081 #include "itkCorrespondenceDataStructure.txx" 00082 #endif 00083 00084 #endif