QElectroTech  0.8-dev
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>

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

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:

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

void ConductorCreator::setUpPropertieToUse ( )
private

ConductorCreator::propertieToUse.

Returns
the conductor properties to use for the new conductors.
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: