The SingleLineProperties class This class represents the properties of a singleline conductor.
More...
#include <conductorproperties.h>
|
bool | hasGround |
| Whether the singleline conductor should display the ground symbol. More...
|
|
bool | hasNeutral |
| Whether the singleline conductor should display the neutral symbol. More...
|
|
bool | is_pen |
| Protective Earth Neutral: visually merge neutral and ground. More...
|
|
|
void | drawGround (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
|
void | drawNeutral (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
|
void | drawPen (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
| SingleLineProperties::drawPen Draw the PEN (Protective Earth Neutral) symbol using painter at position center, using a size hint of size. More...
|
|
The SingleLineProperties class This class represents the properties of a singleline conductor.
◆ SingleLineProperties()
SingleLineProperties::SingleLineProperties |
( |
| ) |
|
◆ ~SingleLineProperties()
SingleLineProperties::~SingleLineProperties |
( |
| ) |
|
|
virtual |
◆ draw()
Dessine les symboles propres a un conducteur unifilaire
- Parameters
-
painter | QPainter a utiliser pour dessiner les symboles |
direction | direction du segment sur lequel les symboles apparaitront |
rect | rectangle englobant le dessin ; utilise pour specifier a la fois la position et la taille du dessin |
◆ drawGround()
void SingleLineProperties::drawGround |
( |
QPainter * |
painter, |
|
|
QET::ConductorSegmentType |
direction, |
|
|
QPointF |
center, |
|
|
qreal |
size |
|
) |
| |
|
private |
Dessine le segment correspondant au symbole de la terre sur un conducteur unifilaire
- Parameters
-
painter | QPainter a utiliser pour dessiner le segment |
direction | direction du segment sur lequel le symbole apparaitra |
center | centre du segment |
size | taille du segment |
◆ drawNeutral()
void SingleLineProperties::drawNeutral |
( |
QPainter * |
painter, |
|
|
QET::ConductorSegmentType |
direction, |
|
|
QPointF |
center, |
|
|
qreal |
size |
|
) |
| |
|
private |
Dessine le cercle correspondant au symbole du neutre sur un conducteur unifilaire
- Parameters
-
painter | QPainter a utiliser pour dessiner le segment |
direction | direction du segment sur lequel le symbole apparaitra |
center | centre du cercle |
size | diametre du cercle |
◆ drawPen()
SingleLineProperties::drawPen Draw the PEN (Protective Earth Neutral) symbol using painter at position center, using a size hint of size.
- Parameters
-
painter | |
direction | : Indicate the direction of the underlying conductor segment |
center | |
size | |
◆ fromSettings()
void SingleLineProperties::fromSettings |
( |
QSettings & |
settings, |
|
|
const QString & |
prefix = QString() |
|
) |
| |
- Parameters
-
settings | Parametres a lire |
prefix | prefix a ajouter devant les noms des parametres |
◆ fromXml()
void SingleLineProperties::fromXml |
( |
QDomElement & |
e | ) |
|
Importe les parametres du conducteur unifilaire a partir des attributs XML de l'element e
- Parameters
-
e | Element XML dont les attributs seront lus |
◆ isPen()
bool SingleLineProperties::isPen |
( |
| ) |
const |
- Returns
- true if the singleline conductor should be drawn using the PEN (Protective Earth Neutral) representation and if it features the ground and the neutral.
◆ operator!=()
- Parameters
-
other | l'autre ensemble de proprietes avec lequel il faut effectuer la comparaison |
- Returns
- true si les deux ensembles de proprietes sont differents, false sinon
◆ operator==()
- Parameters
-
other | l'autre ensemble de proprietes avec lequel il faut effectuer la comparaison |
- Returns
- true si les deux ensembles de proprietes sont identiques, false sinon
◆ phasesCount()
unsigned short int SingleLineProperties::phasesCount |
( |
| ) |
|
- Returns
- le nombre de phases (0, 1, 2, ou 3)
◆ setPhasesCount()
void SingleLineProperties::setPhasesCount |
( |
int |
n | ) |
|
Definit le nombre de phases (0, 1, 2, ou 3)
- Parameters
-
◆ toSettings()
void SingleLineProperties::toSettings |
( |
QSettings & |
settings, |
|
|
const QString & |
prefix = QString() |
|
) |
| const |
- Parameters
-
settings | Parametres a ecrire |
prefix | prefix a ajouter devant les noms des parametres |
◆ toXml()
void SingleLineProperties::toXml |
( |
QDomElement & |
e | ) |
const |
Exporte les parametres du conducteur unifilaire sous formes d'attributs XML ajoutes a l'element e.
- Parameters
-
e | Element XML auquel seront ajoutes des attributs |
◆ hasGround
bool SingleLineProperties::hasGround |
Whether the singleline conductor should display the ground symbol.
◆ hasNeutral
bool SingleLineProperties::hasNeutral |
Whether the singleline conductor should display the neutral symbol.
◆ is_pen
bool SingleLineProperties::is_pen |
Protective Earth Neutral: visually merge neutral and ground.
◆ phases
unsigned short int SingleLineProperties::phases |
|
private |
The documentation for this class was generated from the following files: