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 41 of file shape_line_chain.h.

Constructor & Destructor Documentation

◆ CLIPPER_Z_VALUE() [1/2]

CLIPPER_Z_VALUE::CLIPPER_Z_VALUE ( )
inline

Definition at line 43 of file shape_line_chain.h.

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

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 49 of file shape_line_chain.h.

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

References m_FirstArcIdx, and m_SecondArcIdx.

Member Data Documentation

◆ m_FirstArcIdx

ssize_t CLIPPER_Z_VALUE::m_FirstArcIdx

Definition at line 64 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 65 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: