18 #ifndef itkQuadEdgeMeshBaseIterator_h
19 #define itkQuadEdgeMeshBaseIterator_h
24 #define itkQEDefineIteratorMethodsMacro(Op) \
25 virtual Iterator Begin##Op() { return Iterator(this, Self::Iterator::Operator##Op, true); } \
27 virtual ConstIterator Begin##Op() const { return ConstIterator(this, Self::ConstIterator::Operator##Op, true); } \
29 virtual Iterator End##Op() { return Iterator(this, Self::Iterator::Operator##Op, false); } \
31 virtual ConstIterator End##Op() const { return ConstIterator(this, Self::ConstIterator::Operator##Op, false); } \
32 ITK_MACROEND_NOOP_STATEMENT
35 #define itkQEDefineIteratorGeomMethodsMacro(Op) \
36 virtual IteratorGeom BeginGeom##Op() { return IteratorGeom(this, Self::IteratorGeom::Operator##Op, true); } \
38 virtual ConstIteratorGeom BeginGeom##Op() const \
40 return ConstIteratorGeom(this, Self::ConstIteratorGeom::Operator##Op, true); \
43 virtual IteratorGeom EndGeom##Op() { return IteratorGeom(this, Self::IteratorGeom::Operator##Op, false); } \
45 virtual ConstIteratorGeom EndGeom##Op() const \
47 return ConstIteratorGeom(this, Self::ConstIteratorGeom::Operator##Op, false); \
49 ITK_MACROEND_NOOP_STATEMENT
59 template <
typename TQuadEdge>
103 m_StartEdge = r.m_StartEdge;
104 m_Iterator = r.m_Iterator;
105 m_OpType = r.m_OpType;
114 return (m_StartEdge);
136 return ((m_StartEdge == r.m_StartEdge) && (m_Iterator == r.m_Iterator) && (m_OpType == r.m_OpType) &&
137 (m_Start == r.m_Start));
148 m_Start = !(m_Iterator == m_StartEdge);
160 m_Start = !(m_Iterator == m_StartEdge);
173 m_Iterator = m_Iterator->GetOnext();
176 m_Iterator = m_Iterator->GetSym();
179 m_Iterator = m_Iterator->GetLnext();
182 m_Iterator = m_Iterator->GetRnext();
185 m_Iterator = m_Iterator->GetDnext();
188 m_Iterator = m_Iterator->GetOprev();
191 m_Iterator = m_Iterator->GetLprev();
194 m_Iterator = m_Iterator->GetRprev();
197 m_Iterator = m_Iterator->GetDprev();
200 m_Iterator = m_Iterator->GetInvOnext();
203 m_Iterator = m_Iterator->GetInvLnext();
206 m_Iterator = m_Iterator->GetInvRnext();
209 m_Iterator = m_Iterator->GetInvDnext();
233 template <
typename TQuadEdge>
256 return (this->m_Iterator);
261 return (this->m_Iterator);
271 template <
typename TGeometricalQuadEdge>
299 template <
typename TQuadEdge>
313 int op = Superclass::OperatorOnext,
335 return (this->m_Iterator);
345 template <
typename TGeometricalQuadEdge>
361 int op = Superclass::OperatorOnext,