v0.14.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
ClipperLib::PolyNode Class Reference

#include <users_modules/mortar_contact/src/clipper.hpp>

Inheritance diagram for ClipperLib::PolyNode:
[legend]
Collaboration diagram for ClipperLib::PolyNode:
[legend]

Public Member Functions

 PolyNode ()
 
virtual ~PolyNode ()
 
PolyNodeGetNext () const
 
bool IsHole () const
 
bool IsOpen () const
 
int ChildCount () const
 

Public Attributes

Path Contour
 
PolyNodes Childs
 
PolyNodeParent
 

Private Member Functions

PolyNodeGetNextSiblingUp () const
 
void AddChild (PolyNode &child)
 

Private Attributes

unsigned Index
 
bool m_IsOpen
 
JoinType m_jointype
 
EndType m_endtype
 

Friends

class Clipper
 
class ClipperOffset
 

Detailed Description

Definition at line 136 of file clipper.hpp.

Constructor & Destructor Documentation

◆ PolyNode()

ClipperLib::PolyNode::PolyNode ( )

Definition at line 218 of file clipper.cpp.

◆ ~PolyNode()

virtual ClipperLib::PolyNode::~PolyNode ( )
inlinevirtual

Definition at line 140 of file clipper.hpp.

140 {};

Member Function Documentation

◆ AddChild()

void ClipperLib::PolyNode::AddChild ( PolyNode child)
private

Definition at line 229 of file clipper.cpp.

236 {

◆ ChildCount()

int ClipperLib::PolyNode::ChildCount ( ) const

Definition at line 223 of file clipper.cpp.

223 {
224  bool result = true;
225  PolyNode* node = Parent;
226  while (node)

◆ GetNext()

PolyNode * ClipperLib::PolyNode::GetNext ( ) const

Definition at line 238 of file clipper.cpp.

252 {

◆ GetNextSiblingUp()

PolyNode * ClipperLib::PolyNode::GetNextSiblingUp ( ) const
private

Definition at line 247 of file clipper.cpp.

252 {
253  public:
254  ulong64 lo;
255  long64 hi;

◆ IsHole()

bool ClipperLib::PolyNode::IsHole ( ) const

Definition at line 258 of file clipper.cpp.

258  {
259  lo = (ulong64)_lo;
260  if (_lo < 0) hi = -1; else hi = 0;
261  }
262 
263 
264  Int128(const Int128 &val): lo(val.lo), hi(val.hi){}
265 
266  Int128(const long64& _hi, const ulong64& _lo): lo(_lo), hi(_hi){}
267 
268  Int128& operator = (const long64 &val)

◆ IsOpen()

bool ClipperLib::PolyNode::IsOpen ( ) const

Definition at line 271 of file clipper.cpp.

276  {return (hi == val.hi && lo == val.lo);}

Friends And Related Function Documentation

◆ Clipper

friend class Clipper
friend

Definition at line 155 of file clipper.hpp.

◆ ClipperOffset

friend class ClipperOffset
friend

Definition at line 156 of file clipper.hpp.

Member Data Documentation

◆ Childs

PolyNodes ClipperLib::PolyNode::Childs

Definition at line 142 of file clipper.hpp.

◆ Contour

Path ClipperLib::PolyNode::Contour

Definition at line 140 of file clipper.hpp.

◆ Index

unsigned ClipperLib::PolyNode::Index
private

Definition at line 149 of file clipper.hpp.

◆ m_endtype

EndType ClipperLib::PolyNode::m_endtype
private

Definition at line 152 of file clipper.hpp.

◆ m_IsOpen

bool ClipperLib::PolyNode::m_IsOpen
private

Definition at line 150 of file clipper.hpp.

◆ m_jointype

JoinType ClipperLib::PolyNode::m_jointype
private

Definition at line 151 of file clipper.hpp.

◆ Parent

PolyNode* ClipperLib::PolyNode::Parent

Definition at line 143 of file clipper.hpp.


The documentation for this class was generated from the following files:
ClipperLib::ulong64
unsigned long long ulong64
Definition: clipper.hpp:81
ClipperLib::PolyNode::Parent
PolyNode * Parent
Definition: clipper.hpp:143
ClipperLib::PolyNode::PolyNode
PolyNode()
Definition: clipper.cpp:218
ClipperLib::long64
signed long long long64
Definition: clipper.hpp:80