KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TRIM_CARRIER Struct Reference

The one curve the pointer is trimming. More...

Public Member Functions

bool IsClosed () const
 
VECTOR2I Start () const
 
VECTOR2I End () const
 
double Parameter (const VECTOR2I &aPoint) const
 
double PointerParameter (const VECTOR2I &aPointer) const
 Where the pointer sits, brought onto the carrier.
 
GRAPHIC_EDIT_GEOMETRY Span (const VECTOR2I &aFrom, const VECTOR2I &aTo, double aFromParameter, double aToParameter) const
 The piece of the carrier running forward from aFrom to aTo.
 

Public Attributes

SHAPE_T m_Kind = SHAPE_T::SEGMENT
 
SEG m_Seg
 
SHAPE_ARC m_Arc
 
CIRCLE m_Circle
 
INTERSECTABLE_GEOM m_Geometry = SEG()
 
std::vector< SEGm_Untouched
 

Detailed Description

The one curve the pointer is trimming.

A circle has no ends, so its cuts wrap round; a rectangle offers only the side the pointer is nearest, and the other three come through.

Definition at line 63 of file graphic_trim.cpp.

Member Function Documentation

◆ End()

VECTOR2I TRIM_CARRIER::End ( ) const
inline

Definition at line 75 of file graphic_trim.cpp.

References ARC, m_Arc, m_Kind, and m_Seg.

Referenced by GRAPHIC_TRIM_PLANNER::Plan().

◆ IsClosed()

bool TRIM_CARRIER::IsClosed ( ) const
inline

Definition at line 72 of file graphic_trim.cpp.

References CIRCLE, and m_Kind.

Referenced by GRAPHIC_TRIM_PLANNER::Plan().

◆ Parameter()

double TRIM_CARRIER::Parameter ( const VECTOR2I & aPoint) const
inline

◆ PointerParameter()

double TRIM_CARRIER::PointerParameter ( const VECTOR2I & aPointer) const
inline

Where the pointer sits, brought onto the carrier.

Definition at line 96 of file graphic_trim.cpp.

References ARC, CIRCLE, m_Arc, m_Kind, and Parameter().

Referenced by GRAPHIC_TRIM_PLANNER::Plan().

◆ Span()

GRAPHIC_EDIT_GEOMETRY TRIM_CARRIER::Span ( const VECTOR2I & aFrom,
const VECTOR2I & aTo,
double aFromParameter,
double aToParameter ) const
inline

◆ Start()

VECTOR2I TRIM_CARRIER::Start ( ) const
inline

Definition at line 74 of file graphic_trim.cpp.

References ARC, m_Arc, m_Kind, and m_Seg.

Referenced by GRAPHIC_TRIM_PLANNER::Plan().

Member Data Documentation

◆ m_Arc

SHAPE_ARC TRIM_CARRIER::m_Arc

Definition at line 67 of file graphic_trim.cpp.

Referenced by buildCarrier(), End(), Parameter(), PointerParameter(), Span(), and Start().

◆ m_Circle

CIRCLE TRIM_CARRIER::m_Circle

Definition at line 68 of file graphic_trim.cpp.

Referenced by buildCarrier(), Parameter(), and Span().

◆ m_Geometry

INTERSECTABLE_GEOM TRIM_CARRIER::m_Geometry = SEG()

Definition at line 69 of file graphic_trim.cpp.

Referenced by buildCarrier(), and GRAPHIC_TRIM_PLANNER::Plan().

◆ m_Kind

SHAPE_T TRIM_CARRIER::m_Kind = SHAPE_T::SEGMENT

Definition at line 65 of file graphic_trim.cpp.

Referenced by buildCarrier(), End(), IsClosed(), Parameter(), PointerParameter(), Span(), and Start().

◆ m_Seg

SEG TRIM_CARRIER::m_Seg

Definition at line 66 of file graphic_trim.cpp.

Referenced by buildCarrier(), End(), Parameter(), and Start().

◆ m_Untouched

std::vector<SEG> TRIM_CARRIER::m_Untouched

Definition at line 70 of file graphic_trim.cpp.

Referenced by buildCarrier(), and GRAPHIC_TRIM_PLANNER::Plan().


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