|
SILICON
|
#include <interactiveWireRouter.hpp>
Classes | |
| struct | Request |
Public Member Functions | |
| InteractiveWireRouter (std::vector< RoutingComponent > components, std::vector< RoutingSegment > segments, qreal gridSize) | |
| Owns a snapshot used as the starting geometry for every routing preview. | |
| RoutePreview | routeComponents (std::span< const ComponentRouteMove > moves) const |
| Routes wires around moved components while preserving their connections. | |
| RoutePreview | routeWireBend (uint64_t segmentId, std::size_t bendIndex, QPointF position) const |
| Moves an interior bend and routes electrically attached branches. | |
| RoutePreview | routeWireEndpoint (uint64_t segmentId, std::size_t endpointIndex, QPointF position) const |
| Routes a wire with one endpoint moved to a new position. | |
| RoutePreview | routeWireEdge (uint64_t segmentId, std::size_t edgeIndex, QPointF displacement) const |
| Moves an edge perpendicular to its original direction. | |
Private Types | |
| enum class | Handle { None , Bend , Edge , Endpoint } |
Private Member Functions | |
| RoutePreview | routeWithLibavoid (Request request) const |
| Routes a validated request with libavoid and checks the resulting geometry. | |
Private Attributes | |
| std::vector< RoutingComponent > | components |
| std::vector< RoutingSegment > | segments |
| qreal | gridSize |
A gesture-local snapshot. Each preview is routed from the same original geometry.
Definition at line 44 of file interactiveWireRouter.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| None | |
| Bend | |
| Edge | |
| Endpoint | |
Definition at line 95 of file interactiveWireRouter.hpp.
| InteractiveWireRouter | ( | std::vector< RoutingComponent > | components, |
| std::vector< RoutingSegment > | segments, | ||
| qreal | gridSize ) |
Owns a snapshot used as the starting geometry for every routing preview.
| components | Component obstacles and ports in scene coordinates. |
| segments | Original wire routes and electrical contacts in scene coordinates. |
| gridSize | Grid spacing used to align routed geometry. |
Definition at line 187 of file interactiveWireRouter.cpp.
|
nodiscard |
Routes wires around moved components while preserving their connections.
| moves | Component identifiers and destination bounds in scene coordinates. |
Definition at line 194 of file interactiveWireRouter.cpp.
|
nodiscard |
Moves an interior bend and routes electrically attached branches.
| segmentId | Identifier of the segment to edit. |
| bendIndex | Interior point index in the original route. |
| position | Destination in scene coordinates. |
Definition at line 204 of file interactiveWireRouter.cpp.
|
nodiscard |
Moves an edge perpendicular to its original direction.
| segmentId | Identifier of the segment to edit. |
| edgeIndex | Index of the edge's first point in the original route. |
| displacement | Offset in scene coordinates; the parallel component is ignored. |
Definition at line 232 of file interactiveWireRouter.cpp.
|
nodiscard |
Routes a wire with one endpoint moved to a new position.
| segmentId | Identifier of the segment to edit. |
| endpointIndex | Zero for the first point, or the last point index. |
| position | Destination in scene coordinates. |
Definition at line 219 of file interactiveWireRouter.cpp.
|
nodiscardprivate |
Routes a validated request with libavoid and checks the resulting geometry.
| request | Component moves or a wire handle edit relative to the snapshot. |
Definition at line 248 of file interactiveWireRouter.cpp.
|
private |
Definition at line 112 of file interactiveWireRouter.hpp.
|
private |
Definition at line 114 of file interactiveWireRouter.hpp.
|
private |
Definition at line 113 of file interactiveWireRouter.hpp.