QElectroTech
0.70
|
The ConductorCreator class This class create one or several or several conductors in a given context. More...
#include <conductorcreator.h>
Public Member Functions | |
ConductorCreator (Diagram *d, QList< Terminal *> terminals_list) | |
ConductorCreator::ConductorCreator Create an electrical potential between all terminals of . the terminals of the list must be in the same diagram. More... | |
Static Public Member Functions | |
static void | create (Diagram *d, const QPolygonF &polygon) |
ConductorCreator::create Create an electrical potential between the terminals of the diagram d, contained in the polygon. More... | |
Private Member Functions | |
void | setUpPropertieToUse () |
ConductorCreator::propertieToUse. More... | |
QList< Conductor * > | existingPotential () |
ConductorCreator::existingPotential Return the list of existing potential of the terminal list. More... | |
Terminal * | hubTerminal () |
ConductorCreator::hubTerminal. More... | |
Private Attributes | |
QList< Terminal * > | m_terminals_list |
ConductorProperties | m_properties |
autonum::sequentialNumbers | m_sequential_number |
The ConductorCreator class This class create one or several or several conductors in a given context.
Definition at line 38 of file conductorcreator.h.
ConductorCreator::ConductorCreator Create an electrical potential between all terminals of . the terminals of the list must be in the same diagram.
terminals_list |
Definition at line 36 of file conductorcreator.cpp.
References QET::Icons::Conductor, hubTerminal(), m_properties, m_sequential_number, m_terminals_list, Conductor::setProperties(), Conductor::setSequenceNum(), setUpPropertieToUse(), QET::Icons::tr, and Diagram::undoStack().
|
static |
ConductorCreator::create Create an electrical potential between the terminals of the diagram d, contained in the polygon.
d | |
polygon | : polygon in diagram coordinate |
Definition at line 76 of file conductorcreator.cpp.
References Terminal::Type.
Referenced by DiagramView::mouseReleaseEvent().
|
private |
ConductorCreator::existingPotential Return the list of existing potential of the terminal list.
Definition at line 138 of file conductorcreator.cpp.
References Element::AllReport, Element::conductors(), Element::linkedElements(), m_terminals_list, and Conductor::relatedPotentialConductors().
Referenced by setUpPropertieToUse().
|
private |
ConductorCreator::hubTerminal.
Definition at line 180 of file conductorcreator.cpp.
References m_terminals_list.
Referenced by ConductorCreator().
|
private |
ConductorCreator::propertieToUse.
Definition at line 98 of file conductorcreator.cpp.
References PotentialSelectorDialog::chosenProperties(), existingPotential(), m_properties, m_sequential_number, m_terminals_list, and ConductorAutoNumerotation::newProperties().
Referenced by ConductorCreator().
|
private |
Definition at line 51 of file conductorcreator.h.
Referenced by ConductorCreator(), and setUpPropertieToUse().
|
private |
Definition at line 52 of file conductorcreator.h.
Referenced by ConductorCreator(), and setUpPropertieToUse().
|
private |
Definition at line 50 of file conductorcreator.h.
Referenced by ConductorCreator(), existingPotential(), hubTerminal(), and setUpPropertieToUse().