00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkCorrespondenceDataStructure.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-03-19 23:23:19 $ 00007 Version: $Revision: 1.6 $ 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 00036 template<typename TItemType, int VCliqueSize> 00037 class CorrespondenceDataStructure : public DataObject { 00038 public: 00039 00041 typedef CorrespondenceDataStructure Self; 00042 typedef DataObject Superclass; 00043 typedef SmartPointer<Self> Pointer; 00044 typedef SmartPointer<const Self> ConstPointer; 00045 00047 itkNewMacro(Self); 00048 00050 itkTypeMacro(CorrespondenceDataStructure, DataObject); 00051 00052 typedef TItemType ItemType; 00053 itkStaticConstMacro(CliqueSize, unsigned int, VCliqueSize); 00054 00056 typedef CorrespondingList<TItemType, VCliqueSize> CorrespondingListType; 00057 00059 typedef SecondaryNodeList<CorrespondingListType, VCliqueSize> 00060 SecondaryNodeListType; 00061 00063 typedef NodeList<SecondaryNodeListType> NodeListType; 00064 00066 NodeListType * m_NodeList; 00067 00068 protected: 00070 CorrespondenceDataStructure(); 00071 00073 ~CorrespondenceDataStructure(); 00074 }; 00075 00076 } // end namespace itk 00077 00078 #ifndef ITK_MANUAL_INSTANTIATION 00079 #include "itkCorrespondenceDataStructure.txx" 00080 #endif 00081 00082 #endif 00083