QElectroTech
0.8-dev
|
#include <diagramposition.h>
Public Member Functions | |
DiagramPosition (const QString &="", unsigned int=0) | |
virtual | ~DiagramPosition () |
QPointF | position () const |
void | setPosition (const QPointF &) |
QString | toString () |
bool | isOutOfBounds () const |
unsigned int | number () const |
QString | letter () const |
Private Attributes | |
QString | letter_ |
unsigned int | number_ |
QPointF | position_ |
This class stores the position of an electrical element on its parent diagram. While exact coordinates can be stored for convenience, the concept of diagram position as implemented by this class simply designates the intersection between a column and a row, e.g. B2 or C4.
DiagramPosition::DiagramPosition | ( | const QString & | letter = "" , |
unsigned int | number = 0 |
||
) |
Constructeur
letter | Lettre(s) composant la position |
number | Numero composant la position Si une chaine entierement invalide ou vide, ou bien un 0 est passe en parametre, il en resulte un objet DiagramPosition invalide, dont la methode isOutOfBounds renverra true. |
|
virtual |
Destructeur
bool DiagramPosition::isOutOfBounds | ( | ) | const |
|
inline |
|
inline |
QPointF DiagramPosition::position | ( | ) | const |
void DiagramPosition::setPosition | ( | const QPointF & | position | ) |
position | Position a stocker dans cet objet |
QString DiagramPosition::toString | ( | ) |
|
private |
|
private |
|
private |