QElectroTech  0.70
Classes | Macros | Functions
conductor.cpp File Reference
#include <QtDebug>
#include "conductor.h"
#include "conductorsegment.h"
#include "conductorsegmentprofile.h"
#include "conductortextitem.h"
#include "element.h"
#include "diagram.h"
#include "diagramcommands.h"
#include "qetdiagrameditor.h"
#include "terminal.h"
#include "conductorautonumerotation.h"
#include "conductorpropertiesdialog.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "numerotationcontextcommands.h"

Go to the source code of this file.

Classes

class  ConductorXmlRetroCompatibility
 

Macros

#define PR(x)   qDebug() << #x " = " << x;
 

Functions

bool isContained (const QPointF &a, const QPointF &b, const QPointF &c)
 
ConductorlonguestConductorInPotential (Conductor *conductor, bool all_diagram)
 longuestConductorInPotential More...
 
QList< Conductor * > relatedConductors (const Conductor *conductor)
 relatedConductors More...
 

Macro Definition Documentation

◆ PR

#define PR (   x)    qDebug() << #x " = " << x;

Definition at line 33 of file conductor.cpp.

Function Documentation

◆ isContained()

bool isContained ( const QPointF &  a,
const QPointF &  b,
const QPointF &  c 
)
Parameters
apoint
bpoint
cpoint
Returns
true si le point a est contenu dans le rectangle delimite par les points b et c

Definition at line 1714 of file conductor.cpp.

References isBetween().

Referenced by Conductor::junctions().

◆ 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().