QElectroTech  0.8-dev
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
SingleLineProperties Class Reference

The SingleLineProperties class This class represents the properties of a singleline conductor. More...

#include <conductorproperties.h>

Collaboration diagram for SingleLineProperties:
Collaboration graph

Public Member Functions

 SingleLineProperties ()
 
virtual ~SingleLineProperties ()
 Destructeur. More...
 
void setPhasesCount (int)
 
unsigned short int phasesCount ()
 
bool isPen () const
 
void draw (QPainter *, QET::ConductorSegmentType, const QRectF &)
 
void toXml (QDomElement &) const
 
void fromXml (QDomElement &)
 
void toSettings (QSettings &, const QString &=QString()) const
 
void fromSettings (QSettings &, const QString &=QString())
 
int operator== (const SingleLineProperties &) const
 
int operator!= (const SingleLineProperties &) const
 

Public Attributes

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...
 

Private Member Functions

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...
 

Private Attributes

unsigned short int phases
 

Detailed Description

The SingleLineProperties class This class represents the properties of a singleline conductor.

Constructor & Destructor Documentation

◆ SingleLineProperties()

SingleLineProperties::SingleLineProperties ( )

Constructeur par defaut

◆ ~SingleLineProperties()

SingleLineProperties::~SingleLineProperties ( )
virtual

Destructeur.

Member Function Documentation

◆ draw()

void SingleLineProperties::draw ( QPainter *  painter,
QET::ConductorSegmentType  direction,
const QRectF &  rect 
)

Dessine les symboles propres a un conducteur unifilaire

Parameters
painterQPainter a utiliser pour dessiner les symboles
directiondirection du segment sur lequel les symboles apparaitront
rectrectangle englobant le dessin ; utilise pour specifier a la fois la position et la taille du dessin
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
painterQPainter a utiliser pour dessiner le segment
directiondirection du segment sur lequel le symbole apparaitra
centercentre du segment
sizetaille du segment
Here is the caller graph for this function:

◆ 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
painterQPainter a utiliser pour dessiner le segment
directiondirection du segment sur lequel le symbole apparaitra
centercentre du cercle
sizediametre du cercle
Here is the caller graph for this function:

◆ drawPen()

void SingleLineProperties::drawPen ( QPainter *  painter,
QET::ConductorSegmentType  direction,
QPointF  center,
qreal  size 
)
private

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

◆ fromSettings()

void SingleLineProperties::fromSettings ( QSettings &  settings,
const QString &  prefix = QString() 
)
Parameters
settingsParametres a lire
prefixprefix a ajouter devant les noms des parametres
Here is the caller graph for this function:

◆ fromXml()

void SingleLineProperties::fromXml ( QDomElement &  e)

Importe les parametres du conducteur unifilaire a partir des attributs XML de l'element e

Parameters
eElement XML dont les attributs seront lus
Here is the call graph for this function:
Here is the caller graph for this function:

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

◆ operator!=()

int SingleLineProperties::operator!= ( const SingleLineProperties other) const
Parameters
otherl'autre ensemble de proprietes avec lequel il faut effectuer la comparaison
Returns
true si les deux ensembles de proprietes sont differents, false sinon

◆ operator==()

int SingleLineProperties::operator== ( const SingleLineProperties other) const
Parameters
otherl'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)
Here is the caller graph for this function:

◆ setPhasesCount()

void SingleLineProperties::setPhasesCount ( int  n)

Definit le nombre de phases (0, 1, 2, ou 3)

Parameters
nNombre de phases
Here is the caller graph for this function:

◆ toSettings()

void SingleLineProperties::toSettings ( QSettings &  settings,
const QString &  prefix = QString() 
) const
Parameters
settingsParametres a ecrire
prefixprefix a ajouter devant les noms des parametres
Here is the caller graph for this function:

◆ toXml()

void SingleLineProperties::toXml ( QDomElement &  e) const

Exporte les parametres du conducteur unifilaire sous formes d'attributs XML ajoutes a l'element e.

Parameters
eElement XML auquel seront ajoutes des attributs
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ 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: