QElectroTech  0.70
Functions
terminal.cpp File Reference
#include "terminal.h"
#include <utility>
#include "diagram.h"
#include "qetgraphicsitem/element.h"
#include "qetgraphicsitem/conductor.h"
#include "diagramcommands.h"
#include "conductorautonumerotation.h"
#include "conductortextitem.h"

Go to the source code of this file.

Functions

QList< Terminal * > relatedPotentialTerminal (const Terminal *terminal, const bool all_diagram)
 Conductor::relatedPotentialTerminal Return terminal at the same potential from the same parent element of . For folio report, return the terminal of linked other report. For Terminal element, return the other terminal of terminal element. More...
 

Function Documentation

◆ relatedPotentialTerminal()

QList<Terminal *> relatedPotentialTerminal ( const Terminal terminal,
const bool  all_diagram 
)

Conductor::relatedPotentialTerminal Return terminal at the same potential from the same parent element of . For folio report, return the terminal of linked other report. For Terminal element, return the other terminal of terminal element.

Parameters
tterminal to start search
all_diagram:if true return all related terminal, false return only terminal in the same diagram of
Returns
the list of terminal at the same potential

Definition at line 774 of file terminal.cpp.

References Element::AllReport, Terminal::parentElement(), Element::Terminale, and Element::terminals().

Referenced by Conductor::relatedPotentialConductors().