26 unsigned aLineCount ) :
40 if( !aPoint || !parent )
43 for(
unsigned ii = 0; ii < aPoints.
PointsSize(); ++ii )
45 if( &aPoints.
Point( ii ) == aPoint )
51 for(
unsigned ii = 0; ii < aPoints.
LinesSize(); ++ii )
53 if( &aPoints.
Line( ii ) == aPoint )
A base class for most all the KiCad significant classes used in schematics and boards.
EDIT_POINTS is a VIEW_ITEM that manages EDIT_POINTs and EDIT_LINEs and draws them.
unsigned int PointsSize() const
Return number of stored EDIT_POINTs.
EDIT_LINE & Line(unsigned int aIndex)
EDA_ITEM * GetParent() const
Return parent of the EDIT_POINTS.
unsigned int LinesSize() const
Return number of stored EDIT_LINEs.
EDIT_POINT & Point(unsigned int aIndex)
Represent a single point that can be used for modifying items.
bool operator<(const PCB_HANDLE_KEY &aOther) const
bool operator==(const PCB_HANDLE_KEY &aOther) const
EDIT_POINT * Resolve(EDIT_POINTS &aPoints) const
Find this key's handle in a collection, usually after it was rebuilt.
static std::optional< PCB_HANDLE_KEY > Make(const EDIT_POINTS &aPoints, const EDIT_POINT *aPoint)
Build the key for a handle in a collection.
PCB_HANDLE_KEY(const KIID &aParent, bool aIsLine, int aIndex, unsigned aPointCount, unsigned aLineCount)