QElectroTech  0.70
Classes | Typedefs | Functions
conductor.h File Reference
#include "conductorproperties.h"
#include <QGraphicsPathItem>
#include "assignvariables.h"

Go to the source code of this file.

Classes

class  Conductor
 

Typedefs

typedef QPair< QPointF, Qt::Corner > ConductorBend
 
typedef QHash< Qt::Corner, ConductorProfileConductorProfilesGroup
 

Functions

ConductorlonguestConductorInPotential (Conductor *conductor, bool all_diagram=false)
 longuestConductorInPotential More...
 
QList< Conductor * > relatedConductors (const Conductor *conductor)
 relatedConductors More...
 
template<typename T >
bool isBetween (const T a, const T b, const T c)
 

Typedef Documentation

◆ ConductorBend

typedef QPair<QPointF, Qt::Corner> ConductorBend

Definition at line 34 of file conductor.h.

◆ ConductorProfilesGroup

typedef QHash<Qt::Corner, ConductorProfile> ConductorProfilesGroup

Definition at line 37 of file conductor.h.

Function Documentation

◆ isBetween()

template<typename T >
bool isBetween ( const T  a,
const T  b,
const T  c 
)

Definition at line 214 of file conductor.h.

Referenced by isContained().

◆ longuestConductorInPotential()

Conductor* longuestConductorInPotential ( Conductor conductor,
bool  all_diagram 
)

longuestConductorInPotential

Parameters
conductor: a conductor in the potential to search
all_diagram: true -> search in the whole project, false -> search only in the diagram of conductor
Returns
the longuest conductor in the same potential of conductor

Definition at line 1956 of file conductor.cpp.

References Conductor::length(), and Conductor::relatedPotentialConductors().

Referenced by Conductor::calculateTextItemPosition().

◆ relatedConductors()

QList<Conductor *> relatedConductors ( const Conductor conductor)

relatedConductors

Parameters
conductor
Returns
return all conductors who share the same terminals of given as parametre, except himself.

Definition at line 1972 of file conductor.cpp.

References Terminal::conductors(), Conductor::terminal1, and Conductor::terminal2.

Referenced by Conductor::junctions().