|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
22 #include "ITKQuadEdgeMeshExport.h"
30 #define itkQEDebugMacro(x) \
32 std::ostringstream itkmsg; \
33 itkmsg << "Debug: In " __FILE__ ", line " << __LINE__ << "\n" \
34 << " (" << this << "): " x << "\n\n"; \
35 OutputWindowDisplayDebugText(itkmsg.str().c_str()); \
37 ITK_MACROEND_NOOP_STATEMENT
38 #define itkQEWarningMacro(x) \
40 std::ostringstream itkmsg; \
41 itkmsg << "WARNING: In " __FILE__ ", line " << __LINE__ << "\n" \
42 << " (" << this << "): " x << "\n\n"; \
43 OutputWindowDisplayWarningText(itkmsg.str().c_str()); \
45 ITK_MACROEND_NOOP_STATEMENT
57 #define itkQEAccessorsMacro(st, pt, dt) \
58 pt * GetOnext() { return (dynamic_cast<pt *>(this->st::GetOnext())); } \
60 dt * GetRot() { return (dynamic_cast<dt *>(this->st::GetRot())); } \
62 pt * GetSym() { return (dynamic_cast<pt *>(this->st::GetSym())); } \
64 pt * GetLnext() { return (dynamic_cast<pt *>(this->st::GetLnext())); } \
66 pt * GetRnext() { return (dynamic_cast<pt *>(this->st::GetRnext())); } \
68 pt * GetDnext() { return (dynamic_cast<pt *>(this->st::GetDnext())); } \
70 pt * GetOprev() { return (dynamic_cast<pt *>(this->st::GetOprev())); } \
72 pt * GetLprev() { return (dynamic_cast<pt *>(this->st::GetLprev())); } \
74 pt * GetRprev() { return (dynamic_cast<pt *>(this->st::GetRprev())); } \
76 pt * GetDprev() { return (dynamic_cast<pt *>(this->st::GetDprev())); } \
78 dt * GetInvRot() { return (dynamic_cast<dt *>(this->st::GetInvRot())); } \
80 pt * GetInvOnext() { return (dynamic_cast<pt *>(this->st::GetInvOnext())); } \
82 pt * GetInvLnext() { return (dynamic_cast<pt *>(this->st::GetInvLnext())); } \
84 pt * GetInvRnext() { return (dynamic_cast<pt *>(this->st::GetInvRnext())); } \
86 pt * GetInvDnext() { return (dynamic_cast<pt *>(this->st::GetInvDnext())); } \
87 const pt * GetOnext() const { return (dynamic_cast<const pt *>(this->st::GetOnext())); } \
89 const dt * GetRot() const { return (dynamic_cast<const dt *>(this->st::GetRot())); } \
91 const pt * GetSym() const { return (dynamic_cast<const pt *>(this->st::GetSym())); } \
93 const pt * GetLnext() const { return (dynamic_cast<const pt *>(this->st::GetLnext())); } \
95 const pt * GetRnext() const { return (dynamic_cast<const pt *>(this->st::GetRnext())); } \
97 const pt * GetDnext() const { return (dynamic_cast<const pt *>(this->st::GetDnext())); } \
99 const pt * GetOprev() const { return (dynamic_cast<const pt *>(this->st::GetOprev())); } \
101 const pt * GetLprev() const { return (dynamic_cast<const pt *>(this->st::GetLprev())); } \
103 const pt * GetRprev() const { return (dynamic_cast<const pt *>(this->st::GetRprev())); } \
105 const pt * GetDprev() const { return (dynamic_cast<const pt *>(this->st::GetDprev())); } \
107 const dt * GetInvRot() const { return (dynamic_cast<const dt *>(this->st::GetInvRot())); } \
109 const pt * GetInvOnext() const { return (dynamic_cast<const pt *>(this->st::GetInvOnext())); } \
111 const pt * GetInvLnext() const { return (dynamic_cast<const pt *>(this->st::GetInvLnext())); } \
113 const pt * GetInvRnext() const { return (dynamic_cast<const pt *>(this->st::GetInvRnext())); } \
115 const pt * GetInvDnext() const { return (dynamic_cast<const pt *>(this->st::GetInvDnext())); }
167 operator=(
const QuadEdge &) =
default;
177 this->m_Onext = onext;
192 return this->m_Onext;
202 return this->m_Onext;
232 Self * aNext = this->GetOnext();
240 this->SetOnext(bNext);
255 return (this->m_Rot->m_Rot);
257 return (this->m_Rot);
266 return (this->m_Rot->m_Rot);
268 return (this->m_Rot);
337 return (this->GetRot()->GetRot()->GetRot());
339 Self * p1 = this->GetRot();
362 return this->GetOprev();
367 return this->GetLprev();
372 return this->GetRprev();
377 return this->GetDprev();
383 return (this->GetRot()->GetRot()->GetRot());
385 const Self * p1 = this->GetRot();
407 return this->GetOprev();
412 return this->GetLprev();
417 return this->GetRprev();
422 return this->GetDprev();
429 return ((m_Onext ==
this) || (m_Rot ==
nullptr));
434 return (
this == this->GetOnext());
437 IsEdgeInOnextRing(Self * testEdge)
const;
441 IsLnextGivenSizeCyclic(
const int size)
const;
const Self * GetInvRnext() const
const Self * GetInvOnext() const
Const iterator for QuadEdgeMesh.
#define itkQEDefineIteratorMethodsMacro(Op)
const Self * GetInvDnext() const
const Self * GetInvLnext() const
void Splice(Self *b)
Basic quad-edge topological method.
const Self * GetOnext() const
void SetOnext(Self *onext)
Base class for the implementation of a quad-edge data structure as proposed in "Guibas and Stolfi 198...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
const Self * GetRot() const
const Self * GetSym() const
Non const iterator for QuadMesh.
const Self * GetInvRot() const