00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkCorrespondenceDataStructureIterator_h
00018 #define __itkCorrespondenceDataStructureIterator_h
00019
00020 namespace itk
00021 {
00022
00028 template<class TStructureType>
00029 class CorrespondenceDataStructureIterator {
00030 public:
00032 typedef CorrespondenceDataStructureIterator Self;
00033
00035 static unsigned int GetIteratorDimension()
00036 {return TStructureType::dim;}
00037
00039 bool IsAtEnd();
00040
00042 void operator++(){GoToNext();}
00043
00045 void operator++(int){GoToNext();}
00046
00048 void GoToNext();
00049
00051 void GoToNextBaseGroup();
00052
00054 void Reset();
00055
00057 CorrespondenceDataStructureIterator(TStructureType *StructurePtr);
00058
00060 virtual ~CorrespondenceDataStructureIterator();
00061
00062 typedef typename TStructureType::CorrespondingListType CorrespondingListType;
00063 typedef typename TStructureType::ItemType ItemType;
00064 typedef typename TStructureType::SecondaryNodeListType SecondaryNodeListType;
00065 typedef typename TStructureType::NodeListType NodeListType;
00066
00067 typedef typename CorrespondingListType::iterator CorrespondingListIterator;
00068 typedef typename SecondaryNodeListType::iterator SecondaryNodeListIterator;
00069 typedef typename NodeListType::iterator NodeListIterator;
00070
00072 CorrespondingListType * GetCorrespondingListPointer(){return m_CorrespondingListPointer;}
00073
00074 CorrespondingListIterator m_CorrespondingListIterator;
00075 SecondaryNodeListIterator m_SecondaryListIterator;
00076 typename TStructureType::NodeListType::iterator m_NodeListIterator;
00077
00078 protected:
00079
00081 bool m_IsAtEnd;
00082 TStructureType * m_Structure;
00083 ItemType * m_CorrespondingNodePointer;
00084 CorrespondingListType * m_CorrespondingListPointer;
00085 SecondaryNodeListType * m_SecondaryListPointer;
00086 NodeListType * m_NodeListPointer;
00087 };
00088
00089 }
00090
00091 #ifndef ITK_MANUAL_INSTANTIATION
00092 #include "itkCorrespondenceDataStructureIterator.txx"
00093 #endif
00094
00095 #endif