QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
conductorprofile.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 CONDUCTOR_PROFILE_H
19#define CONDUCTOR_PROFILE_H
20#include <QList>
21#include "qet.h"
22class 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();
56};
57QDebug &operator<<(QDebug d, ConductorProfile &);
58#endif
Definition conductor.h:43
Definition conductorprofile.h:28
void fromConductor(Conductor *)
Definition conductorprofile.cpp:144
QList< ConductorSegmentProfile * > horizontalSegments()
Definition conductorprofile.cpp:122
ConductorProfile & operator=(const ConductorProfile &)
Definition conductorprofile.cpp:53
QList< ConductorSegmentProfile * > verticalSegments()
Definition conductorprofile.cpp:132
Qet::Orientation endOrientation
Orientation of the end terminal.
Definition conductorprofile.h:44
void setNull()
supprime les segments du profil de conducteur
Definition conductorprofile.cpp:81
ConductorProfile()
Constructeur.
Definition conductorprofile.cpp:25
bool isNull() const
Definition conductorprofile.cpp:75
virtual ~ConductorProfile()
destructeur
Definition conductorprofile.cpp:69
qreal height() const
Definition conductorprofile.cpp:98
QList< ConductorSegmentProfile * > segments
Segments composing the conductor.
Definition conductorprofile.h:40
Qet::Orientation beginOrientation
Orientation of the start terminal.
Definition conductorprofile.h:42
uint segmentsCount(QET::ConductorSegmentType) const
Definition conductorprofile.cpp:110
qreal width() const
Definition conductorprofile.cpp:88
Definition conductorsegmentprofile.h:26
Orientation
Orientation (used for electrical elements and their terminals)
Definition qet.h:210
QDebug & operator<<(QDebug d, ConductorProfile &)
Definition conductorprofile.cpp:160
ConductorSegmentType
Known kinds of conductor segments.
Definition qet.h:84