QElectroTech  0.70
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ConductorCreator Class Reference

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...
 
TerminalhubTerminal ()
 ConductorCreator::hubTerminal. More...
 

Private Attributes

QList< Terminal * > m_terminals_list
 
ConductorProperties m_properties
 
autonum::sequentialNumbers m_sequential_number
 

Detailed Description

The ConductorCreator class This class create one or several or several conductors in a given context.

Definition at line 38 of file conductorcreator.h.

Constructor & Destructor Documentation

◆ ConductorCreator()

ConductorCreator::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.

Parameters
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().

Member Function Documentation

◆ create()

void ConductorCreator::create ( Diagram d,
const QPolygonF &  polygon 
)
static

ConductorCreator::create Create an electrical potential between the terminals of the diagram d, contained in the polygon.

Parameters
d
polygon: polygon in diagram coordinate

Definition at line 76 of file conductorcreator.cpp.

References Terminal::Type.

Referenced by DiagramView::mouseReleaseEvent().

◆ existingPotential()

QList< Conductor * > ConductorCreator::existingPotential ( )
private

ConductorCreator::existingPotential Return the list of existing potential of the terminal list.

Returns

Definition at line 138 of file conductorcreator.cpp.

References Element::AllReport, Element::conductors(), Element::linkedElements(), m_terminals_list, and Conductor::relatedPotentialConductors().

Referenced by setUpPropertieToUse().

◆ hubTerminal()

Terminal * ConductorCreator::hubTerminal ( )
private

ConductorCreator::hubTerminal.

Returns

Definition at line 180 of file conductorcreator.cpp.

References m_terminals_list.

Referenced by ConductorCreator().

◆ setUpPropertieToUse()

void ConductorCreator::setUpPropertieToUse ( )
private

ConductorCreator::propertieToUse.

Returns
the conductor properties to use for the new conductors.

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().

Member Data Documentation

◆ m_properties

ConductorProperties ConductorCreator::m_properties
private

Definition at line 51 of file conductorcreator.h.

Referenced by ConductorCreator(), and setUpPropertieToUse().

◆ m_sequential_number

autonum::sequentialNumbers ConductorCreator::m_sequential_number
private

Definition at line 52 of file conductorcreator.h.

Referenced by ConductorCreator(), and setUpPropertieToUse().

◆ m_terminals_list

QList<Terminal *> ConductorCreator::m_terminals_list
private

The documentation for this class was generated from the following files: