Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
TYParoi Class Reference

#include <TYParoi.h>

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

Public Member Functions

 TYParoi ()
 
 TYParoi (const TYParoi &other)
 
virtual ~TYParoi ()
 
TYParoioperator= (const TYParoi &other)
 Operateur =. More...
 
bool operator== (const TYParoi &other) const
 Operateur ==. More...
 
bool operator!= (const TYParoi &other) const
 Operateur !=. More...
 
virtual bool deepCopy (const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
 
virtual std::string toString () const
 
virtual DOM_Element toXML (DOM_Element &domElement)
 
virtual int fromXML (DOM_Element domElement)
 
double getEpaisseur () const
 
void setEpaisseur (double epaisseur)
 
TYMateriauConstructiongetMatStruct ()
 
const TYMateriauConstructiongetMatStruct () const
 
void setMatStruct (const LPTYMateriauConstruction mat)
 
TYMateriauConstructiongetMatFace1 ()
 
const TYMateriauConstructiongetMatFace1 () const
 
void setMatFace1 (const LPTYMateriauConstruction &mat)
 
TYMateriauConstructiongetMatFace2 ()
 
const TYMateriauConstructiongetMatFace2 () const
 
void setMatFace2 (const LPTYMateriauConstruction &mat)
 
- Public Member Functions inherited from TYElement
void * getAllUses ()
 
void setAllUses (void *allUses)
 
void cleanAllUses ()
 
 TYElement ()
 
 TYElement (TYElement *pParent, bool PutInInstanceList=true)
 
 TYElement (const TYElement &other, bool PutInInstanceList=true)
 
virtual ~TYElement ()
 
void setID (TYUUID id)
 
void setID (const QString &str_id)
 
const TYUUIDgetID () const
 
QString getStringID () const
 
bool hasNullID () const
 
void regenerateID ()
 
void setName (QString name)
 
void setName (std::string name)
 
virtual QString getName () const
 
void setParent (TYElement *pParent)
 
TYElementgetParent () const
 
virtual void setIsAcousticModified (bool isModified)
 
bool getIsAcousticModified ()
 
virtual void setIsGeometryModified (bool isModified)
 
bool getIsGeometryModified ()
 
TYElementoperator= (const TYElement &other)
 
bool operator== (const TYElement &other) const
 
bool operator!= (const TYElement &other) const
 
bool callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL)
 
std::string getMetierName ()
 
virtual void updateCurrentCalcul (TYListID &listID, bool recursif=true)
 
virtual void getChilds (LPTYElementArray &childs, bool recursif=true)
 
virtual void setInCurrentCalcul (bool state, bool recurschild=true, bool recursparent=true)
 
virtual bool isInCurrentCalcul ()
 
void addCopy ()
 Increment le compteur de nombre de copies. More...
 
void setCopyCount (const unsigned int copyCount)
 Modifie la vaeur du compteur. More...
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 
- Public Member Functions inherited from OPrototype
virtual ~OPrototype ()
 
virtual OPrototypeclone () const =0
 
virtual const char * getClassName () const
 
bool isA (const char *className) const
 

Protected Attributes

double _epaisseur
 Epaisseur. More...
 
LPTYMateriauConstruction _matStruct
 Materiau interne. More...
 
LPTYMateriauConstruction _matFace1
 Materiau face 1 (interieure) More...
 
LPTYMateriauConstruction _matFace2
 Materiau face 2 (exterieure) More...
 
- Protected Attributes inherited from TYElement
QString _name
 Nom courant de l'element. More...
 
TYElement_pParent
 Reference sur l'element parent. More...
 
bool _bPutInInstanceList
 
unsigned int _copyCount
 
bool _inCurrentCalcul
 Indique si cet element est actif dans le Calcul courant. More...
 
bool _isAcousticModified
 Indicateur de modification acoustique. More...
 
bool _isGeometryModified
 Indicateur de modification de la geometrie. More...
 
LPTYElementGraphic _pGraphicObject
 L'object graphique metier associe a cet element. More...
 
void * _allUses
 Multi purpose void pointer (use for compatibility actually) More...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from TYElement
static LPTYElementArray findTypeCollectionAndCallFromXML (DOM_Element parentElem, const char *type)
 
static void setLogInstances (bool log)
 
static bool getLogInstances ()
 
static TYElementgetInstance (TYUUID uuid)
 
static void purgeInstances ()
 
static bool testId (const TYUUID &id, const TYElement *pElem)
 
static TYUUID newID ()
 
static TYUUID fromString (QString id)
 
static QString toString (TYUUID &uuid)
 
static uint64 getConstructorCount ()
 
static uint64 getDestructorCount ()
 
static uint64 getIdGenerationCount ()
 
static bool getIsSavedOk ()
 
static void setIsSavedOk (const bool &toSave)
 
static void setRegenerateID (const bool &bRegenerate)
 
static bool getRegenerateID ()
 
- Static Public Member Functions inherited from OPrototype
static OPrototypefindAndClone (const char *className)
 
static int findPrototype (const char *className)
 
static OPrototypesafeDownCast (OPrototype *pObject)
 
static void add_factory (const char *, IOProtoFactory::ptr_type factory)
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Detailed Description

Comprend les proprietes acoustiques et geometriques d'une paroi.

Definition at line 33 of file TYParoi.h.

Constructor & Destructor Documentation

◆ TYParoi() [1/2]

TYParoi::TYParoi ( )

Constructeur.

Definition at line 31 of file TYParoi.cpp.

Here is the call graph for this function:

◆ TYParoi() [2/2]

TYParoi::TYParoi ( const TYParoi other)

Constructeur par copie.

Definition at line 45 of file TYParoi.cpp.

◆ ~TYParoi()

TYParoi::~TYParoi ( )
virtual

Destructeur.

Definition at line 50 of file TYParoi.cpp.

Member Function Documentation

◆ deepCopy()

bool TYParoi::deepCopy ( const TYElement pOther,
bool  copyId = true,
bool  pUseCopyTag = false 
)
virtual

Effectue une copie en allouant de la memoire (deep copy) et non pas en copiant seulement les pointeurs (shallow copy). Cette methode s'utilise comme l'operateur egal. L'ID peut ne pas etre copie, le parent n'est jamais copie.

Parameters
pOtherL'element a copier.
copyIdCopie l'identifiant unique ou pas.
Returns
true si la copie est possible; false sinon.

Reimplemented from TYElement.

Definition at line 85 of file TYParoi.cpp.

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

◆ fromXML()

int TYParoi::fromXML ( DOM_Element  domElement)
virtual

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.

Reimplemented from TYElement.

Definition at line 118 of file TYParoi.cpp.

Here is the call graph for this function:

◆ getEpaisseur()

double TYParoi::getEpaisseur ( ) const
inline

Set/Get de l'epaisseur.

Definition at line 70 of file TYParoi.h.

◆ getMatFace1() [1/2]

TYMateriauConstruction* TYParoi::getMatFace1 ( )
inline

Set/Get du materiau face 1.

Definition at line 95 of file TYParoi.h.

Here is the caller graph for this function:

◆ getMatFace1() [2/2]

const TYMateriauConstruction* TYParoi::getMatFace1 ( ) const
inline

Set/Get du materiau face 1.

Definition at line 100 of file TYParoi.h.

◆ getMatFace2() [1/2]

TYMateriauConstruction* TYParoi::getMatFace2 ( )
inline

Set/Get du materiau face 2.

Definition at line 110 of file TYParoi.h.

Here is the caller graph for this function:

◆ getMatFace2() [2/2]

const TYMateriauConstruction* TYParoi::getMatFace2 ( ) const
inline

Set/Get du materiau face 2.

Definition at line 115 of file TYParoi.h.

◆ getMatStruct() [1/2]

TYMateriauConstruction* TYParoi::getMatStruct ( )
inline

Set/Get du materiau interne.

Definition at line 80 of file TYParoi.h.

Here is the caller graph for this function:

◆ getMatStruct() [2/2]

const TYMateriauConstruction* TYParoi::getMatStruct ( ) const
inline

Set/Get du materiau interne.

Definition at line 85 of file TYParoi.h.

◆ operator!=()

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

Operateur !=.

Definition at line 80 of file TYParoi.cpp.

Here is the call graph for this function:

◆ operator=()

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

Operateur =.

Definition at line 54 of file TYParoi.cpp.

Here is the call graph for this function:

◆ operator==()

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

Operateur ==.

Definition at line 67 of file TYParoi.cpp.

Here is the caller graph for this function:

◆ setEpaisseur()

void TYParoi::setEpaisseur ( double  epaisseur)
inline

Set/Get de l'epaisseur.

Definition at line 75 of file TYParoi.h.

Here is the caller graph for this function:

◆ setMatFace1()

void TYParoi::setMatFace1 ( const LPTYMateriauConstruction mat)
inline

Set/Get du materiau face 1.

Definition at line 105 of file TYParoi.h.

Here is the call graph for this function:

◆ setMatFace2()

void TYParoi::setMatFace2 ( const LPTYMateriauConstruction mat)
inline

Set/Get du materiau face 2.

Definition at line 120 of file TYParoi.h.

Here is the call graph for this function:

◆ setMatStruct()

void TYParoi::setMatStruct ( const LPTYMateriauConstruction  mat)
inline

Set/Get du materiau interne.

Definition at line 90 of file TYParoi.h.

Here is the call graph for this function:

◆ toString()

std::string TYParoi::toString ( ) const
virtual

Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).

Returns
Une chaine de caractere informative sur cet objet.

Reimplemented from TYElement.

Definition at line 100 of file TYParoi.cpp.

◆ toXML()

DOM_Element TYParoi::toXML ( DOM_Element domElement)
virtual

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.

Reimplemented from TYElement.

Definition at line 105 of file TYParoi.cpp.

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

Member Data Documentation

◆ _epaisseur

double TYParoi::_epaisseur
protected

Epaisseur.

Definition at line 125 of file TYParoi.h.

◆ _matFace1

LPTYMateriauConstruction TYParoi::_matFace1
protected

Materiau face 1 (interieure)

Definition at line 130 of file TYParoi.h.

◆ _matFace2

LPTYMateriauConstruction TYParoi::_matFace2
protected

Materiau face 2 (exterieure)

Definition at line 132 of file TYParoi.h.

◆ _matStruct

LPTYMateriauConstruction TYParoi::_matStruct
protected

Materiau interne.

Definition at line 128 of file TYParoi.h.


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