KiCad PCB EDA Suite
CLIPPER_Z_VALUE Struct Reference

Holds information on each point of a SHAPE_LINE_CHAIN that is retrievable after an operation with ClipperLib. More...

#include <shape_line_chain.h>

Public Member Functions

 CLIPPER_Z_VALUE ()
 
 CLIPPER_Z_VALUE (const std::pair< ssize_t, ssize_t > aShapeIndices, ssize_t aOffset=0)
 

Public Attributes

ssize_t m_FirstArcIdx
 
ssize_t m_SecondArcIdx
 

Detailed Description

Holds information on each point of a SHAPE_LINE_CHAIN that is retrievable after an operation with ClipperLib.

Definition at line 40 of file shape_line_chain.h.

Constructor & Destructor Documentation

◆ CLIPPER_Z_VALUE() [1/2]

CLIPPER_Z_VALUE::CLIPPER_Z_VALUE ( )
inline

Definition at line 42 of file shape_line_chain.h.

43  {
44  m_FirstArcIdx = -1;
45  m_SecondArcIdx = -1;
46  }

References m_FirstArcIdx, and m_SecondArcIdx.

◆ CLIPPER_Z_VALUE() [2/2]

CLIPPER_Z_VALUE::CLIPPER_Z_VALUE ( const std::pair< ssize_t, ssize_t >  aShapeIndices,
ssize_t  aOffset = 0 
)
inline

Definition at line 48 of file shape_line_chain.h.

49  {
50  m_FirstArcIdx = aShapeIndices.first;
51  m_SecondArcIdx = aShapeIndices.second;
52 
53  auto offsetVal = [&]( ssize_t& aVal )
54  {
55  if( aVal >= 0 )
56  aVal += aOffset;
57  };
58 
59  offsetVal( m_FirstArcIdx );
60  offsetVal( m_SecondArcIdx );
61  }

References m_FirstArcIdx, and m_SecondArcIdx.

Member Data Documentation

◆ m_FirstArcIdx

ssize_t CLIPPER_Z_VALUE::m_FirstArcIdx

Definition at line 63 of file shape_line_chain.h.

Referenced by SHAPE_POLY_SET::booleanOp(), and CLIPPER_Z_VALUE().

◆ m_SecondArcIdx

ssize_t CLIPPER_Z_VALUE::m_SecondArcIdx

Definition at line 64 of file shape_line_chain.h.

Referenced by SHAPE_POLY_SET::booleanOp(), and CLIPPER_Z_VALUE().


The documentation for this struct was generated from the following file: