52 for(
int jj = 0; jj < aOutline.
HoleCount( ii ); ++jj )
87 const bool outlineMatters = !
m_board->IsFootprintHolder();
96 ZONE* zone =
static_cast<ZONE*
>( item );
97 m_zones.emplace_back( zone, zoneOutlineIsSound( *zone->
Outline() ) );
100 if( outlineMatters && item->IsOnLayer(
Edge_Cuts ) )
111 for(
const auto& [zone, wasValid] :
m_zones )
113 if( wasValid && !zoneOutlineIsSound( *zone->Outline() ) )
128 return m_board->GetBoardPolygonOutlines( outlines,
false );
BLOCK_DRAG_VALIDATION_RESULT
@ INVALID_OUTLINE
The board outline was closed before the drag and the moved Edge.Cuts broke it.
@ INVALID_ZONE
A zone that came along lost its valid outline.
void CaptureBaseline(const std::vector< BOARD_ITEM * > &aCarriedItems)
Note whether the zones coming along, and the board outline, were valid to start with.
BLOCK_DRAG_VALIDATION_RESULT Validate() const
bool outlineIsValid() const
BLOCK_DRAG_VALIDATION(BOARD &aBoard)
std::vector< std::pair< ZONE *, bool > > m_zones
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
int PointCount() const
Return the number of points (vertices) in this line chain.
const VECTOR2I & CPoint(int aIndex) const
Return a reference to a given point in the line chain.
bool PointInside(const VECTOR2I &aPt, int aAccuracy=0, bool aUseBBoxCache=false) const override
Check if point aP lies inside a closed shape.
Represent a set of closed polygons.
bool IsPolygonSelfIntersecting(int aPolygonIndex) const
Check whether the aPolygonIndex-th polygon in the set is self intersecting.
int HoleCount(int aOutline) const
Returns the number of holes in a given outline.
const SHAPE_LINE_CHAIN & CHole(int aOutline, int aHole) const
int OutlineCount() const
Return the number of outlines in the set.
bool HasTouchingHoles() const
Return true if the polygon set has any holes that share a vertex.
const SHAPE_LINE_CHAIN & COutline(int aIndex) const
Handle a list of polygons defining a copper zone.
SHAPE_POLY_SET * Outline()
@ PCB_ZONE_T
class ZONE, a copper pour area