|
SILICON
|
#include <wireManager.hpp>
Public Member Functions | |
| Edit (WireManager &manager, GraphicalWireSegment *segment) | |
| Captures a registered segment's original local route for a preview edit. | |
| ~Edit () noexcept | |
| Cancels an uncommitted edit and suppresses exceptions during cleanup. | |
| Edit (const Edit &)=delete | |
| Disables copying of an edit that owns route restoration. | |
| Edit & | operator= (const Edit &)=delete |
| Disables copy assignment of a route edit. | |
| void | commit () |
| Validates the preview route and queues its topology rebuild. | |
| void | cancel () |
| Restores the original local route if the segment is still registered. | |
Private Attributes | |
| WireManager * | manager |
| uint64_t | segmentId |
| std::vector< QPointF > | originalPoints |
A preview edit commits topology once, or restores its original route on cancel.
Definition at line 118 of file wireManager.hpp.
| Edit | ( | WireManager & | manager, |
| GraphicalWireSegment * | segment ) |
Captures a registered segment's original local route for a preview edit.
| manager | Manager owning the segment. |
| segment | Non-null registered segment whose route will be edited. |
Definition at line 41 of file wireManager.cpp.
|
noexcept |
Cancels an uncommitted edit and suppresses exceptions during cleanup.
Definition at line 45 of file wireManager.cpp.
|
delete |
Disables copying of an edit that owns route restoration.
| void cancel | ( | ) |
Restores the original local route if the segment is still registered.
Definition at line 50 of file wireManager.cpp.
| void commit | ( | ) |
Validates the preview route and queues its topology rebuild.
| std::invalid_argument | If the route is not orthogonal and simple or has fewer than two points. |
Definition at line 59 of file wireManager.cpp.
|
private |
Definition at line 142 of file wireManager.hpp.
|
private |
Definition at line 144 of file wireManager.hpp.
|
private |
Definition at line 143 of file wireManager.hpp.