QElectroTech  0.8-dev
Classes | Macros | Functions
conductor.cpp File Reference
#include <QtDebug>
#include <QMultiHash>
#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"
Include dependency graph for conductor.cpp:

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;

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ relatedConductors()

QList<Conductor *> relatedConductors ( const Conductor conductor)

relatedConductors

Parameters
conductor
Returns
return all conductors who share the same terminals of conductor given as parametre, except conductor himself.
Here is the call graph for this function:
Here is the caller graph for this function: