24 #ifndef KICAD_TRACKS_CLEANER_H 25 #define KICAD_TRACKS_CLEANER_H 50 void CleanupBoard(
bool aDryRun, std::vector<std::shared_ptr<CLEANUP_ITEM> >* aItemsList,
bool aCleanVias,
51 bool aRemoveMisConnected,
bool aMergeSegments,
bool aDeleteUnconnected,
52 bool aDeleteTracksinPad,
bool aDeleteDanglingVias );
73 void cleanup(
bool aDeleteDuplicateVias,
bool aDeleteNullSegments,
74 bool aDeleteDuplicateSegments,
bool aMergeSegments );
85 const std::vector<BOARD_CONNECTED_ITEM*>& aSeg1Items );
105 #endif //KICAD_TRACKS_CLEANER_H
TRACKS_CLEANER(BOARD *aPcb, BOARD_COMMIT &aCommit)
void removeShortingTrackSegments()
void cleanup(bool aDeleteDuplicateVias, bool aDeleteNullSegments, bool aDeleteDuplicateSegments, bool aMergeSegments)
Geometry-based cleanup: duplicate items, null items, colinear items.
bool deleteDanglingTracks(bool aTrack, bool aVia)
Removes tracks or vias only connected on one end.
void removeItems(std::set< BOARD_ITEM * > &aItems)
void CleanupBoard(bool aDryRun, std::vector< std::shared_ptr< CLEANUP_ITEM > > *aItemsList, bool aCleanVias, bool aRemoveMisConnected, bool aMergeSegments, bool aDeleteUnconnected, bool aDeleteTracksinPad, bool aDeleteDanglingVias)
the cleanup function.
bool mergeCollinearSegments(PCB_TRACK *aSeg1, PCB_TRACK *aSeg2, const std::vector< BOARD_CONNECTED_ITEM * > &aSeg1Items)
helper function merge aTrackRef and aCandidate, when possible, i.e.
std::vector< std::shared_ptr< CLEANUP_ITEM > > * m_itemsList
Information pertinent to a Pcbnew printed circuit board.
void deleteTracksInPads()
bool testTrackEndpointIsNode(PCB_TRACK *aTrack, bool aTstStart)