.TH "sources/autobreakconductor.cpp" 3 "Version 0.200.1-dev" "QElectroTech" \" -*- nroff -*-
.ad l
.nh
.SH NAME
sources/autobreakconductor.cpp
.SH SYNOPSIS
.br
.PP
\fR#include 'autobreakconductor\&.h'\fP
.br
\fR#include 'diagram\&.h'\fP
.br
\fR#include 'qetproject\&.h'\fP
.br
\fR#include 'conductorautonumerotation\&.h'\fP
.br
\fR#include 'qetgraphicsitem/element\&.h'\fP
.br
\fR#include 'qetgraphicsitem/terminal\&.h'\fP
.br
\fR#include 'qetgraphicsitem/conductor\&.h'\fP
.br
\fR#include 'undocommand/addgraphicsobjectcommand\&.h'\fP
.br
\fR#include 'undocommand/deleteqgraphicsitemcommand\&.h'\fP
.br
\fR#include <QPainterPath>\fP
.br
\fR#include <QMap>\fP
.br
\fR#include <limits>\fP
.br

.SS "Namespaces"

.in +1c
.ti -1c
.RI "namespace \fBanonymous_namespace{autobreakconductor\&.cpp}\fP"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "qreal \fBanonymous_namespace{autobreakconductor\&.cpp}::distanceToSegment\fP (const QPointF &point, const QLineF &segment)"
.br
.RI "distanceToSegment "
.ti -1c
.RI "QSet< \fBTerminal\fP * > \fBautoBreakConductors\fP (\fBDiagram\fP *diagram, \fBElement\fP *element, QUndoCommand *parent, QList< \fBConductor\fP * > &conductors_handled, QSet< \fBTerminal\fP * > &used_terminals)"
.br
.RI "autoBreakConductors For each terminal of \fIelement\fP, check if its dock point lies on an existing conductor\&. If so, break the conductor and reconnect through the element's terminal\&. Broken conductors from the same circuit (sharing the same far-end endpoint) are broken together; independent crossing conductors are left untouched\&. "
.in -1c
.SH "Function Documentation"
.PP 
.SS "QSet< \fBTerminal\fP * > autoBreakConductors (\fBDiagram\fP * diagram, \fBElement\fP * element, QUndoCommand * parent, QList< \fBConductor\fP * > & conductors_handled, QSet< \fBTerminal\fP * > & used_terminals)"

.PP
autoBreakConductors For each terminal of \fIelement\fP, check if its dock point lies on an existing conductor\&. If so, break the conductor and reconnect through the element's terminal\&. Broken conductors from the same circuit (sharing the same far-end endpoint) are broken together; independent crossing conductors are left untouched\&. 
.PP
\fBParameters\fP
.RS 4
\fIdiagram\fP the diagram containing the conductors 
.br
\fIelement\fP the element whose terminals trigger breaks 
.br
\fIparent\fP undo command under which break/reconnect sub-commands are created 
.br
\fIconductors_handled\fP shared list of conductors already claimed by a previous call in the same batch (prevents double-processing when multiple elements are broken in one pass) 
.br
\fIused_terminals\fP shared set of terminals already used as connect_to or other_terminal in the same batch 
.RE
.PP
\fBReturns\fP
.RS 4
set of terminals that were connected to a broken conductor's far-end (useful for preventing duplicate auto-connect) 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for QElectroTech from the source code\&.
