![]() |
Moka kernel
|
#include <attribute-vertex.hh>
Public Member Functions | |
| CAttributeVertex () | |
| CAttributeVertex (TCoordinate Ax, TCoordinate Ay, TCoordinate Az) | |
| CAttributeVertex (const CVertex &AVertex) | |
| CAttributeVertex (const CAttributeVertex &AAttributeVertex) | |
| ~CAttributeVertex () | |
| Destructeur. | |
Implémentation des méthodes virtuelles pures héritées de la classe | |
| TAttributeId | getType () const |
| CAttribute * | copy () const |
| void | destroy () |
| Détruit l'objet (appel au destructeur). | |
| void | save (std::ostream &AStream) const |
| void | load (std::istream &AStream) |
Public Member Functions inherited from CAttribute | |
| CAttribute () | |
| Constructeur par défaut. | |
| CAttribute (const CAttribute &CAttribute) | |
| Constructeur par copie. | |
| virtual | ~CAttribute () |
| Destructeur. | |
| CAttribute * | getNext () const |
| void | setNext (CAttribute *ANext) |
| CAttribute * | getPrev () const |
| void | setPrev (CAttribute *APrev) |
Public Member Functions inherited from CVertex | |
| CVertex () | |
| CVertex (TCoordinate Ax, TCoordinate Ay, TCoordinate Az) | |
| CVertex (TCoordinate ATab[3]) | |
| CVertex (const CVertex &AVertex) | |
| ~CVertex () | |
| TCoordinate | getX () const |
| TCoordinate | getY () const |
| TCoordinate | getZ () const |
| TCoordinate | getCoord (int ADim) const |
| void | setX (TCoordinate ANewX) |
| void | setY (TCoordinate ANewY) |
| void | setZ (TCoordinate ANewZ) |
| void | setCoord (int ADim, TCoordinate ANewCoord) |
| void | setXYZ (TCoordinate ANewX, TCoordinate ANewY, TCoordinate ANewZ) |
| CVertex & | operator= (const CVertex &AVertex) |
| bool | operator== (const CVertex &AVertex) const |
| bool | operator!= (const CVertex &AVertex) const |
| CVertex & | operator+= (const CVertex &) |
| CVertex & | operator-= (const CVertex &) |
| CVertex & | operator*= (TCoordinate) |
| CVertex & | operator/= (TCoordinate) |
| CVertex | operator* (TCoordinate) const |
| CVertex | operator/ (TCoordinate) const |
| CVertex | operator+ (const CVertex &) const |
| CVertex | operator- (const CVertex &) const |
| CVertex | operator+ () const |
| CVertex | operator- () const |
| CVertex | operator* (const CVertex &AVector) const |
| TCoordinate | dot (const CVertex &AVector) const |
| TCoordinate | norm () const |
| TCoordinate | normalize () |
| CVertex | normalized () const |
| TCoordinate | sqrNorm () const |
| bool | isNull () const |
| CVertex | multiply (const CVertex &AVector) const |
| CVertex | divide (const CVertex &AVector) const |
Définit la classe définissant un attribut sommet, pouvant être utilisé par une carte plongée sommets.
Definition at line 47 of file attribute-vertex.hh.
| INLINE CAttributeVertex::CAttributeVertex | ( | ) |
Constructeur par défaut
Construction d'une nouvelle instance de la classe, initialisée au sommet origine (0,0,0).
Definition at line 28 of file attribute-vertex.icc.
| INLINE CAttributeVertex::CAttributeVertex | ( | TCoordinate | Ax, |
| TCoordinate | Ay, | ||
| TCoordinate | Az | ||
| ) |
Constructeur avec initialisation
Construction d'une nouvelle instance de la classe, initialisée au sommet de coordonnées (Ax,Ay,Az).
| Ax | La première coordonnée du sommet |
| Ay | La deuxième coordonnée du sommet |
| Az | La troisième coordonnée du sommet |
Definition at line 34 of file attribute-vertex.icc.
Constructeur par copie (CVertex)
Construction d'une nouvelle instance de la classe, en copiant le sommet passé en paramètre.
| AVertex | le sommet à copier |
Definition at line 40 of file attribute-vertex.icc.
| INLINE CAttributeVertex::CAttributeVertex | ( | const CAttributeVertex & | AAttributeVertex | ) |
Constructeur par copie (CAttributeVertex)
Construction d'une nouvelle instance de la classe, en copiant le sommet passé en paramètre.
| AAttributeVertex | le sommet à copier |
Definition at line 46 of file attribute-vertex.icc.
| INLINE CAttributeVertex::~CAttributeVertex | ( | ) |
Destructeur.
Definition at line 52 of file attribute-vertex.icc.
|
virtual |
Crée une nouvelle instance de CAttributeVertex, clone de l'instance courante.
Implements CAttribute.
Definition at line 63 of file attribute-vertex.icc.
|
virtual |
Détruit l'objet (appel au destructeur).
Implements CAttribute.
Definition at line 69 of file attribute-vertex.icc.
|
virtual |
Retourne le type de l'attribut, c'est-à-dire la valeur de la variable de classe 'TYPE'.
Implements CAttribute.
Definition at line 57 of file attribute-vertex.icc.
|
virtual |
Lit l'attribut à partir du flot donné.
| AStream | Un flot dans lequel lire l'attribut |
Implements CAttribute.
Definition at line 80 of file attribute-vertex.icc.
|
virtual |
Écrit l'attribut dans le flot donné, en vue d'une sauvegarde.
| AStream | Un flot dans lequel écrire l'attribut |
Implements CAttribute.
Definition at line 75 of file attribute-vertex.icc.