Code_TYMPAN  4.4.0
Industrial site acoustic simulation
List of all members
TYColorInterface Class Reference

#include <TYColorInterface.h>

Inheritance diagram for TYColorInterface:
Inheritance graph
[legend]
Collaboration diagram for TYColorInterface:
Collaboration graph
[legend]

Public Member Functions

Construction et Destruction
 TYColorInterface ()
 
 TYColorInterface (const TYColorInterface &other)
 
virtual ~TYColorInterface ()
 
Operateurs
TYColorInterfaceoperator= (const TYColorInterface &other)
 
bool operator== (const TYColorInterface &other) const
 
bool operator!= (const TYColorInterface &other) const
 
void deepCopy (const TYColorInterface *pOther, bool copyId=true, bool pUseCopyTag=false)
 
Interface XML
DOM_Element toXML (DOM_Element &domElement)
 
int fromXML (DOM_Element domElement)
 

Accesseurs

OColor _color
 
virtual void setColor (const OColor &color)
 
OColor getColor () const
 
virtual void updateColor ()
 

Detailed Description

Classe abstraite permettant d'ajouter une couleur a un objet.

Definition at line 30 of file TYColorInterface.h.

Constructor & Destructor Documentation

◆ TYColorInterface() [1/2]

TYColorInterface::TYColorInterface ( )

Constructeur par default.

Definition at line 18 of file TYColorInterface.cpp.

◆ TYColorInterface() [2/2]

TYColorInterface::TYColorInterface ( const TYColorInterface other)

Constructeur par copie.

Definition at line 20 of file TYColorInterface.cpp.

◆ ~TYColorInterface()

TYColorInterface::~TYColorInterface ( )
virtual

Destructeur.

Definition at line 25 of file TYColorInterface.cpp.

Member Function Documentation

◆ deepCopy()

void TYColorInterface::deepCopy ( const TYColorInterface pOther,
bool  copyId = true,
bool  pUseCopyTag = false 
)

Operateur de copie.

Definition at line 53 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ fromXML()

int TYColorInterface::fromXML ( DOM_Element  domElement)

Extrait les informations a partir du noeud DOM passe afin de recuperer les parametres de la classe.

Parameters
domElementLe noeud DOM a partir duquel les parametres doivent etre recuperes.
Returns
1 si la recuperation des parametres a reussie.

Definition at line 73 of file TYColorInterface.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getColor()

OColor TYColorInterface::getColor ( ) const

Get de la couleur.

Definition at line 100 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ operator!=()

bool TYColorInterface::operator!= ( const TYColorInterface other) const

Operateur de comparaison.

Definition at line 48 of file TYColorInterface.cpp.

Here is the call graph for this function:

◆ operator=()

TYColorInterface & TYColorInterface::operator= ( const TYColorInterface other)

Operateur de copie.

Definition at line 27 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ operator==()

bool TYColorInterface::operator== ( const TYColorInterface other) const

Operateur de comparaison.

Definition at line 36 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ setColor()

void TYColorInterface::setColor ( const OColor color)
virtual

Set de la couleur.

Reimplemented in TYMurElement.

Definition at line 95 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ toXML()

DOM_Element TYColorInterface::toXML ( DOM_Element domElement)

Construit une arborescence DOM a partir du noeud passe afin de sauvegarder les parametres au format XML.

Parameters
domElementLe noeud DOM parent a partir duquel l'arborescence doit etre creee.
Returns
Le noeud DOM nouvellement cree.

Definition at line 59 of file TYColorInterface.cpp.

Here is the caller graph for this function:

◆ updateColor()

virtual void TYColorInterface::updateColor ( )
inlinevirtual

Mise a jour des couleurs a partir des preferences

Reimplemented in TYCourbeNiveau.

Definition at line 127 of file TYColorInterface.h.

Member Data Documentation

◆ _color

OColor TYColorInterface::_color
protected

Definition at line 130 of file TYColorInterface.h.


The documentation for this class was generated from the following files: