SILICON
Loading...
Searching...
No Matches
SILICON::ui::detail Namespace Reference

Classes

struct  AutoplacementQuality
struct  BoundaryIoLaneItem
struct  BoundaryIoLaneResult

Functions

BoundaryIoLaneResult placeBoundaryIoInLanes (const PortSide side, std::span< const BoundaryIoLaneItem > items, std::span< const QRectF > fixedObstacles, const qreal componentClearance, const qreal obstaclePadding, const qreal grid)
qreal portDirectionViolationDistance (const PortSide side, const QPointF &endpoint, const QPointF &peer)
bool hasBoundsClearance (const QRectF &candidate, const std::span< const QRectF > accepted, const qreal clearance)
bool boundsLieOutsideTarget (const PortSide side, const QRectF &item, const QRectF &target, const qreal clearance)

Function Documentation

◆ boundsLieOutsideTarget()

bool boundsLieOutsideTarget ( const PortSide side,
const QRectF & item,
const QRectF & target,
const qreal clearance )
inline

True when an item is wholly outside the target on the named target-port side.

Definition at line 74 of file circuitAutoplacerHeuristics.hpp.

◆ hasBoundsClearance()

bool hasBoundsClearance ( const QRectF & candidate,
const std::span< const QRectF > accepted,
const qreal clearance )
inline

True when a candidate bound retains the requested edge-to-edge clearance.

Definition at line 60 of file circuitAutoplacerHeuristics.hpp.

◆ placeBoundaryIoInLanes()

BoundaryIoLaneResult placeBoundaryIoInLanes ( const PortSide side,
std::span< const BoundaryIoLaneItem > items,
std::span< const QRectF > fixedObstacles,
const qreal componentClearance,
const qreal obstaclePadding,
const qreal grid )
nodiscard

Places same-side boundary symbols in one aligned collision-free boundary lane.

Symbols keep the normal coordinate selected from the circuit boundary. Tangential collisions are resolved with the smallest grid-aligned displacement around their preferred connected ports. If a corner is occupied, the complete row or column is moved outward together so its boundary edge remains aligned.

Definition at line 78 of file boundaryIoPlacement.cpp.

◆ portDirectionViolationDistance()

qreal portDirectionViolationDistance ( const PortSide side,
const QPointF & endpoint,
const QPointF & peer )
inline

Distance by which the peer terminal lies behind the outward-facing port.

Definition at line 46 of file circuitAutoplacerHeuristics.hpp.