QElectroTech  0.8-dev
conductorsegmentprofile.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_SEGMENT_PROFILE_H
19 #define CONDUCTOR_SEGMENT_PROFILE_H
20 #include <QtCore>
21 #include "conductorsegment.h"
27  // constructors, destructor
28  public:
34  ConductorSegmentProfile(qreal l, bool ori = true) :
35  length(l),
36  isHorizontal(ori)
37  {
38  }
39 
45  length(segment -> length()),
46  isHorizontal(segment -> isHorizontal())
47  {
48  }
49 
52  }
53 
54  // attributes
55  public:
57  qreal length;
60 };
61 #endif
ConductorSegmentProfile::length
qreal length
segment length
Definition: conductorsegmentprofile.h:57
ConductorSegmentProfile
Definition: conductorsegmentprofile.h:26
ConductorSegment
Definition: conductorsegment.h:25
ConductorSegmentProfile::~ConductorSegmentProfile
virtual ~ConductorSegmentProfile()
Destructor.
Definition: conductorsegmentprofile.h:51
ConductorSegmentProfile::ConductorSegmentProfile
ConductorSegmentProfile(ConductorSegment *segment)
Definition: conductorsegmentprofile.h:44
ConductorSegmentProfile::ConductorSegmentProfile
ConductorSegmentProfile(qreal l, bool ori=true)
Definition: conductorsegmentprofile.h:34
ConductorSegmentProfile::isHorizontal
bool isHorizontal
segment orientation
Definition: conductorsegmentprofile.h:59
conductorsegment.h