22#ifndef __PNS_TRACKS_SPREADER_H
23#define __PNS_TRACKS_SPREADER_H
32#include <unordered_set>
78 const std::vector<NET_HANDLE>
CurrentNets()
const override;
Base class for PNS router board items.
Represents a track on a PCB, connecting two non-trivial joints (that is, vias, pads,...
Keep the router "world" - i.e.
Perform various optimizations of the lines being routed, attempting to make the lines shorter and les...
PLACEMENT_ALGO(ROUTER *aRouter)
The actual Push and Shove algorithm.
NODE * CurrentNode(bool aLoopsRemoved=false) const override
Return the most recent board state.
std::vector< SPREADABLE_LINE > m_lines
LINKED_ITEM * m_startItem
virtual bool Start(const VECTOR2I &aP, ITEM *aStartItem) override
Start placement/drag operation at point aP, taking item aStartItem as anchor (unless NULL).
const std::vector< NET_HANDLE > CurrentNets() const override
Returns the net(s) of currently routed track(s).
void SetSpreadableItems(const ITEM_SET &aAuxItems)
const VECTOR2I & CurrentStart() const override
Return the current start of the line(s) being placed/tuned.
TRACKS_SPREADER(ROUTER *aRouter)
const std::vector< SEG > findNoOptSegments(const LINE &aClippedHead, const TRACKS_SPREADER::SPREADABLE_LINE &aEntry) const
virtual bool Move(const VECTOR2I &aP, ITEM *aEndItem) override
Move the end of the currently routed primtive(s) to the point aP, taking aEndItem as the anchor (if n...
std::unordered_set< const LINKED_ITEM * > m_spreadableItems
const ITEM_SET Traces() override
Return all routed/tuned traces.
const ITEM_SET & GetSpreadableItems() const
bool prepareSpreadableLines()
bool AbortPlacement() override
int CurrentLayer() const override
Return the layer of currently routed track.
virtual bool FixRoute(const VECTOR2I &aP, ITEM *aEndItem, bool aForceFinish=false) override
Commit the currently routed items to the parent node, taking aP as the final end point and aEndItem a...
static std::optional< LINE > breakAndReassemble(NODE *aNode, LINE *aOrigLine, const VECTOR2I &aP1, const VECTOR2I &aP2)
const VECTOR2I & CurrentEnd() const override
Return the current end of the line(s) being placed/tuned.
bool CommitPlacement() override
bool HasPlacedAnything() const override
void determineWalkOrder()
virtual ~TRACKS_SPREADER()
Push and Shove diff pair dimensions (gap) settings dialog.
VECTOR2< int32_t > VECTOR2I