QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
ConductorCreator Class Reference

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

#include <conductorcreator.h>

Collaboration diagram for ConductorCreator:
Collaboration graph

Public Member Functions

 ConductorCreator (Diagram *d, QList< Terminal * > terminals_list)
 ConductorCreator::ConductorCreator Create an electrical potential between all terminals of terminals_list. the terminals of the list must be in the same diagram.

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.

Private Member Functions

bool setUpPropertieToUse ()
 ConductorCreator::propertieToUse.
QList< Conductor * > existingPotential ()
 ConductorCreator::existingPotential Return the list of existing potential of the terminal list.
TerminalhubTerminal ()
 ConductorCreator::hubTerminal.

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.

Constructor & Destructor Documentation

◆ ConductorCreator()

ConductorCreator::ConductorCreator ( Diagram * d,
QList< Terminal * > terminals_list )

ConductorCreator::ConductorCreator Create an electrical potential between all terminals of terminals_list. the terminals of the list must be in the same diagram.

Parameters
dDiagram
terminals_listQList<Terminal *>
Here is the call graph for this function:
Here is the caller graph for this function:

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
dDiagram
polygon: polygon in diagram coordinate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ existingPotential()

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

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

Returns
c_list QList<Conductor *>
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hubTerminal()

Terminal * ConductorCreator::hubTerminal ( )
private

ConductorCreator::hubTerminal.

Returns
hub_terminal
Here is the caller graph for this function:

◆ setUpPropertieToUse()

bool ConductorCreator::setUpPropertieToUse ( )
private

ConductorCreator::propertieToUse.

Returns
true if the caller should proceed with conductor creation, false if the user cancelled the potential-selection dialog (in which case no properties were chosen and creation must be aborted rather than proceeding with blank/default properties).
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_properties

ConductorProperties ConductorCreator::m_properties
private

◆ m_sequential_number

autonum::sequentialNumbers ConductorCreator::m_sequential_number
private

◆ m_terminals_list

QList<Terminal *> ConductorCreator::m_terminals_list
private

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