|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
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));
143 return ((m_StartEdge == r.m_StartEdge) && (m_Iterator == r.m_Iterator) && (m_OpType == r.m_OpType) &&
144 (m_Start == r.m_Start));
150 return (!(this->
operator==(r)));
156 return (!(this->
operator==(r)));
165 m_Start = !(m_Iterator == m_StartEdge);
177 m_Start = !(m_Iterator == m_StartEdge);
190 m_Iterator = m_Iterator->GetOnext();
193 m_Iterator = m_Iterator->GetSym();
196 m_Iterator = m_Iterator->GetLnext();
199 m_Iterator = m_Iterator->GetRnext();
202 m_Iterator = m_Iterator->GetDnext();
205 m_Iterator = m_Iterator->GetOprev();
208 m_Iterator = m_Iterator->GetLprev();
211 m_Iterator = m_Iterator->GetRprev();
214 m_Iterator = m_Iterator->GetDprev();
217 m_Iterator = m_Iterator->GetInvOnext();
220 m_Iterator = m_Iterator->GetInvLnext();
223 m_Iterator = m_Iterator->GetInvRnext();
226 m_Iterator = m_Iterator->GetInvDnext();
250 template <
typename TQuadEdge>
273 return (this->m_Iterator);
278 return (this->m_Iterator);
288 template <
typename TGeometricalQuadEdge>
318 template <
typename TQuadEdge>
354 return (this->m_Iterator);
364 template <
typename TGeometricalQuadEdge>
QuadEdgeMeshConstIterator Self
~QuadEdgeMeshIterator() override=default
bool operator==(const Self &r) const
Base iterator class for QuadEdgeMesh.
Self & operator=(const Self &r)
typename QuadEdgeType::OriginRefType OriginRefType
typename QuadEdgeType::OriginRefType OriginRefType
Const iterator for QuadEdgeMesh.
const QuadEdgeType * Value() const
OriginRefType operator*()
~QuadEdgeMeshConstIteratorGeom() override=default
~QuadEdgeMeshConstIterator() override=default
QuadEdgeMeshConstIteratorGeom(const QuadEdgeType *e=(QuadEdgeType *) 0, int op=Superclass::OperatorOnext, bool start=true)
virtual ~QuadEdgeMeshBaseIterator()=default
const QuadEdgeType * Value() const
TGeometricalQuadEdge QuadEdgeType
QuadEdgeMeshConstIteratorGeom Self
QuadEdgeMeshBaseIterator(QuadEdgeType *e, int op=OperatorOnext, bool start=true)
QuadEdgeMeshBaseIterator Self
QuadEdgeMeshConstIterator(const QuadEdgeType *e=(QuadEdgeType *) 0, int op=Superclass::OperatorOnext, bool start=true)
bool operator!=(const Self &r) const
Non const geometrical iterator.
QuadEdgeMeshIterator(QuadEdgeType *e=(QuadEdgeType *) 0, int op=Superclass::OperatorOnext, bool start=true)
TGeometricalQuadEdge QuadEdgeType
QuadEdgeType * GetStartEdge() const
QuadEdgeType * GetIterator() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Const geometrical iterator.
const OriginRefType operator*() const
Self & operator=(const NoConstType &r)
static constexpr double e
Non const iterator for QuadMesh.
Self & operator=(const NoConstType &r)
TGeometricalQuadEdge QuadEdgeType
QuadEdgeMeshIteratorGeom(QuadEdgeType *e=(QuadEdgeType *) nullptr, int op=Superclass::OperatorOnext, bool start=true)