QElectroTech  0.8-dev
conductorprofile.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 CONDUCTOR_PROFILE_H
19 #define CONDUCTOR_PROFILE_H
20 #include <QList>
21 #include "qet.h"
22 class Conductor;
29  public:
30  // constructors, destructor
32  ConductorProfile(Conductor *conductor);
35  virtual ~ConductorProfile();
36 
37  // attributes
38  public:
40  QList<ConductorSegmentProfile *> segments;
45 
46  // methods
47  public:
48  bool isNull() const;
49  void setNull();
50  qreal width() const;
51  qreal height() const;
53  QList<ConductorSegmentProfile *> horizontalSegments();
54  QList<ConductorSegmentProfile *> verticalSegments();
55  void fromConductor(Conductor *);
56 };
57 QDebug &operator<<(QDebug d, ConductorProfile &);
58 #endif
ConductorProfile
Definition: conductorprofile.h:28
ConductorProfile::operator=
ConductorProfile & operator=(const ConductorProfile &)
Definition: conductorprofile.cpp:51
ConductorProfile::isNull
bool isNull() const
Definition: conductorprofile.cpp:72
conductor.h
ConductorProfile::fromConductor
void fromConductor(Conductor *)
Definition: conductorprofile.cpp:135
ConductorSegmentProfile
Definition: conductorsegmentprofile.h:26
ConductorProfile::segmentsCount
uint segmentsCount(QET::ConductorSegmentType) const
Definition: conductorprofile.cpp:104
ConductorProfile::height
qreal height() const
Definition: conductorprofile.cpp:92
ConductorProfile::ConductorProfile
ConductorProfile()
Constructeur.
Definition: conductorprofile.cpp:24
operator<<
QDebug & operator<<(QDebug d, ConductorProfile &t)
Definition: conductorprofile.cpp:151
ConductorProfile::beginOrientation
Qet::Orientation beginOrientation
Orientation of the start terminal.
Definition: conductorprofile.h:42
ConductorProfile::~ConductorProfile
virtual ~ConductorProfile()
destructeur
Definition: conductorprofile.cpp:67
qet.h
ConductorSegment
Definition: conductorsegment.h:25
operator<<
QDebug & operator<<(QDebug d, ConductorProfile &)
Definition: conductorprofile.cpp:151
Qet::Orientation
Orientation
Orientation (used for electrical elements and their terminals)
Definition: qet.h:206
conductorprofile.h
ConductorProfile::width
qreal width() const
Definition: conductorprofile.cpp:83
ConductorProfile::horizontalSegments
QList< ConductorSegmentProfile * > horizontalSegments()
Definition: conductorprofile.cpp:115
ConductorProfile::endOrientation
Qet::Orientation endOrientation
Orientation of the end terminal.
Definition: conductorprofile.h:44
QET::Vertical
@ Vertical
Vertical segment.
Definition: qet.h:90
QET::Both
@ Both
Invalid segment.
Definition: qet.h:91
QET::ConductorSegmentType
ConductorSegmentType
Known kinds of conductor segments.
Definition: qet.h:88
ConductorProfile::setNull
void setNull()
supprime les segments du profil de conducteur
Definition: conductorprofile.cpp:77
QET::Horizontal
@ Horizontal
Horizontal segment.
Definition: qet.h:89
Conductor
Definition: conductor.h:43
conductorsegmentprofile.h
terminal.h
ConductorProfile::verticalSegments
QList< ConductorSegmentProfile * > verticalSegments()
Definition: conductorprofile.cpp:124
ConductorProfile::segments
QList< ConductorSegmentProfile * > segments
Segments composing the conductor.
Definition: conductorprofile.h:40