QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
conductorcreator.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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
21class Diagram;
22class QPolygonF;
23class Terminal;
24class Conductor;
25
26#include "../autoNum/assignvariables.h"
27#include "../conductorproperties.h"
28
29#include <QList>
30
37{
38 public:
39 ConductorCreator(Diagram *d, QList<Terminal *> terminals_list);
40 static void create(Diagram *d, const QPolygonF &polygon);
41
42 private:
44 QList<Conductor *> existingPotential();
46
47
48 QList<Terminal *> m_terminals_list;
51
52};
53
54#endif // CONDUCTORCREATOR_H
The ConductorCreator class This class create one or several or several conductors in a given context.
Definition conductorcreator.h:37
QList< Conductor * > existingPotential()
ConductorCreator::existingPotential Return the list of existing potential of the terminal list.
Definition conductorcreator.cpp:140
ConductorProperties m_properties
Definition conductorcreator.h:49
void setUpPropertieToUse()
ConductorCreator::propertieToUse.
Definition conductorcreator.cpp:100
autonum::sequentialNumbers m_sequential_number
Definition conductorcreator.h:50
Terminal * hubTerminal()
ConductorCreator::hubTerminal.
Definition conductorcreator.cpp:182
static void create(Diagram *d, const QPolygonF &polygon)
ConductorCreator::create Create an electrical potential between the terminals of the diagram d,...
Definition conductorcreator.cpp:78
QList< Terminal * > m_terminals_list
Definition conductorcreator.h:48
Definition conductor.h:43
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
The Terminal class This class represents a terminal of an electrical element, i.e....
Definition terminal.h:36
Definition assignvariables.h:34