QElectroTech  0.70
conductorcreator.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef CONDUCTORCREATOR_H
19 #define CONDUCTORCREATOR_H
20 
21 class Diagram;
22 class QPolygonF;
23 class Terminal;
24 class Conductor;
25 
26 #include "conductorproperties.h"
27 #include "conductorproperties.h"
28 #include "assignvariables.h"
29 
30 #include <QList>
31 
32 
39 {
40  public:
41  ConductorCreator(Diagram *d, QList<Terminal *> terminals_list);
42  static void create(Diagram *d, const QPolygonF &polygon);
43 
44  private:
45  void setUpPropertieToUse();
46  QList<Conductor *> existingPotential();
48 
49 
50  QList<Terminal *> m_terminals_list;
53 
54 };
55 
56 #endif // CONDUCTORCREATOR_H
QList< Conductor * > existingPotential()
ConductorCreator::existingPotential Return the list of existing potential of the terminal list...
static void create(Diagram *d, const QPolygonF &polygon)
ConductorCreator::create Create an electrical potential between the terminals of the diagram d...
ConductorProperties m_properties
ConductorCreator(Diagram *d, QList< Terminal *> terminals_list)
ConductorCreator::ConductorCreator Create an electrical potential between all terminals of ...
QList< Terminal * > m_terminals_list
The ConductorCreator class This class create one or several or several conductors in a given context...
void setUpPropertieToUse()
ConductorCreator::propertieToUse.
Terminal * hubTerminal()
ConductorCreator::hubTerminal.
autonum::sequentialNumbers m_sequential_number