52 if (&c ==
this)
return(*
this);
86 if (csp -> isHorizontal)
width += csp -> length;
95 if (!csp -> isHorizontal)
height += csp -> length;
109 else if (type ==
QET::Vertical && !csp -> isHorizontal) ++ nb_seg;
116 QList<ConductorSegmentProfile *> segments_list;
118 if (csp -> isHorizontal) segments_list << csp;
120 return(segments_list);
125 QList<ConductorSegmentProfile *> segments_list;
127 if (!csp -> isHorizontal) segments_list << csp;
129 return(segments_list);
152 d <<
"ConductorProfile {";
154 d <<
"CSP" << (csp -> isHorizontal ?
"horizontal" :
"vertical") <<
":" << csp -> length <<
",";
QList< ConductorSegmentProfile * > verticalSegments()
ConductorSegmentType
Known kinds of conductor segments.
QList< ConductorSegmentProfile * > segments
Segments composing the conductor.
ConductorProfile & operator=(const ConductorProfile &)
void setNull()
supprime les segments du profil de conducteur
Qet::Orientation endOrientation
Orientation of the end terminal.
void fromConductor(Conductor *)
QDebug & operator<<(QDebug d, ConductorProfile &t)
QList< ConductorSegmentProfile * > horizontalSegments()
uint segmentsCount(QET::ConductorSegmentType) const
virtual ~ConductorProfile()
destructeur
ConductorProfile()
Constructeur.
Qet::Orientation beginOrientation
Orientation of the start terminal.