SILICON
Loading...
Searching...
No Matches
wireRouting.cpp File Reference
#include "wireRouting.hpp"
#include <algorithm>
#include <array>
#include <bit>
#include <cmath>
#include <cstddef>
#include <deque>
#include <map>
#include <set>
#include <span>
#include <stdexcept>
#include <utility>
#include <vector>
#include <libavoid/libavoid.h>
#include <libavoid/qtgeomtypes.h>
Include dependency graph for wireRouting.cpp:

Go to the source code of this file.

Namespaces

namespace  SILICON
namespace  SILICON::core

Functions

void configureOrthogonalRouter (Avoid::Router &router, qreal gridSize)
 Applies SILICON's shared orthogonal-routing policy to a libavoid router.
std::vector< QPointF > extractOrthogonalRoute (Avoid::ConnRef &connector, qreal gridSize)
 Extracts, grid-snaps, and canonicalizes a libavoid display route.
bool isOrthogonalRoute (std::span< const QPointF > points)
 Returns whether every consecutive route segment is axis-aligned.
bool orthogonalRouteSelfIntersects (std::span< const QPointF > points)
 Detects crossings, touches, or retraced portions within one route.
bool orthogonalRouteCrossesObstacleInterior (const std::span< const QPointF > route, const std::span< const QRectF > obstacles)
bool pointOnOrthogonalRoute (QPointF point, std::span< const QPointF > route)
 Returns whether point lies on an orthogonal polyline.
bool orthogonalRoutesTouch (std::span< const QPointF > first, std::span< const QPointF > second)
 Returns whether an endpoint of either route lies on the other route.
bool orthogonalRoutesShareSegment (std::span< const QPointF > first, std::span< const QPointF > second)
 Returns true when two orthogonal polylines share a positive-length segment.
bool orthogonalRoutesIntersect (std::span< const QPointF > first, std::span< const QPointF > second)
 Returns true when two routes overlap or form an ambiguous endpoint junction.
std::size_t orthogonalRouteCrossingCount (std::span< const QPointF > first, std::span< const QPointF > second)
 Counts strict, perpendicular interior crossings between two routes.
std::size_t orthogonalRouteIncidentArmCount (QPointF point, const std::vector< std::vector< QPointF > > &routes)
 Counts the distinct orthogonal arms incident to point.
std::vector< QPointF > canonicalizeOrthogonalRoute (std::vector< QPointF > points)
 Removes consecutive duplicates and redundant collinear interior points.
std::vector< std::vector< QPointF > > mergeOrthogonalRoutes (const std::vector< std::vector< QPointF > > &routes, const std::function< bool()> &progress={})
 Unions several routes of one net into maximal terminal-to-junction paths.
std::vector< QPointF > routeOrthogonalWire (const QPointF start, const QPointF end, const std::vector< QRectF > &obstacleRects, const qreal gridSize)