|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <TYInfrastructure.h>


Public Member Functions | |
| TYInfrastructure () | |
| TYInfrastructure (const TYInfrastructure &other) | |
| virtual | ~TYInfrastructure () |
| TYInfrastructure & | operator= (const TYInfrastructure &other) |
| Operateur =. More... | |
| bool | operator== (const TYInfrastructure &other) const |
| Operateur ==. More... | |
| bool | operator!= (const TYInfrastructure &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) |
| virtual void | getChilds (LPTYElementArray &childs, bool recursif=true) |
Public Member Functions inherited from TYElement | |
| 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 TYUUID & | getID () 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) |
| TYElement * | getParent () const |
| virtual void | setIsAcousticModified (bool isModified) |
| bool | getIsAcousticModified () |
| virtual void | setIsGeometryModified (bool isModified) |
| bool | getIsGeometryModified () |
| TYElement & | operator= (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 () |
| void * | getAllUses () |
| void | setAllUses (void *allUses) |
| void | cleanAllUses () |
| 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 OPrototype * | clone () const =0 |
| virtual const char * | getClassName () const |
| bool | isA (const char *className) const |
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 TYElement * | getInstance (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 OPrototype * | findAndClone (const char *className) |
| static int | findPrototype (const char *className) |
| static OPrototype * | safeDownCast (OPrototype *pObject) |
| static void | add_factory (const char *, IOProtoFactory::ptr_type factory) |
Protected Member Functions inherited from OPrototype | |
| OPrototype () | |
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... | |
Centralise les elements d'infrastructure.
Definition at line 33 of file TYInfrastructure.h.
| TYInfrastructure::TYInfrastructure | ( | ) |
Constructeur.
Definition at line 31 of file TYInfrastructure.cpp.

| TYInfrastructure::TYInfrastructure | ( | const TYInfrastructure & | other | ) |
Constructeur par copie.
Definition at line 36 of file TYInfrastructure.cpp.
|
virtual |
Destructeur.
Definition at line 41 of file TYInfrastructure.cpp.
| bool TYInfrastructure::addBatiment | ( | LPTYBatiment | pBatiment, |
| const TYRepere & | pos | ||
| ) |
Ajoute une entree a la liste des batiments et la position associee.
Definition at line 895 of file TYInfrastructure.cpp.

| bool TYInfrastructure::addBatiment | ( | LPTYBatimentGeoNode | pBatimentGeoNode | ) |
Ajoute une entree a la liste des batiments et la position associee.
Definition at line 874 of file TYInfrastructure.cpp.


| bool TYInfrastructure::addMachine | ( | LPTYMachine | pMachine, |
| const TYRepere & | pos | ||
| ) |
Ajoute une entree a la liste des machines et la position associee.
Definition at line 779 of file TYInfrastructure.cpp.

| bool TYInfrastructure::addMachine | ( | LPTYMachineGeoNode | pMachineGeoNode | ) |
Ajoute une entree a la liste des machines et la position associee.
Definition at line 758 of file TYInfrastructure.cpp.


| bool TYInfrastructure::addResTrans | ( | LPTYReseauTransport | pResTrans | ) |
Ajoute une entree a la liste des reseaux de transport.
Definition at line 663 of file TYInfrastructure.cpp.

| bool TYInfrastructure::addResTrans | ( | LPTYReseauTransportGeoNode | pResTransGeoNode | ) |
Ajoute une entree a la liste des reseaux de transport.
Definition at line 642 of file TYInfrastructure.cpp.


| bool TYInfrastructure::addSrc | ( | LPTYUserSourcePonctuelle | pSrc | ) |
Ajoute une entree a la liste des sources ponctuelles.
Definition at line 1011 of file TYInfrastructure.cpp.

| bool TYInfrastructure::addSrc | ( | LPTYUserSourcePonctuelleGeoNode | pSrcGeoNode | ) |
Ajoute une entree a la liste des sources ponctuelles.
Definition at line 990 of file TYInfrastructure.cpp.

| bool TYInfrastructure::addToCalcul | ( | ) |
Ajoute les elements de l'infrastructure au calcul
Definition at line 1105 of file TYInfrastructure.cpp.


| bool TYInfrastructure::addToCalcul | ( | TYGeometryNode * | pNode | ) |
Ajoute le nouvel element au calcul
Definition at line 1221 of file TYInfrastructure.cpp.


| void TYInfrastructure::clean | ( | ) |
Vide les tableaux sans mettre a jour les calculs
Definition at line 1446 of file TYInfrastructure.cpp.


| void TYInfrastructure::concatInfra | ( | const TYInfrastructure * | infra | ) |
Concatene 2 infrastructures
Definition at line 493 of file TYInfrastructure.cpp.

|
virtual |
Fonction de copie recursive (virtuelle)
| pOther | destination de la copy |
| copyId | vrai par defaut |
| pUseCopyTag | faux par defaut |
Reimplemented from TYElement.
Definition at line 101 of file TYInfrastructure.cpp.


| LPTYBatimentGeoNode TYInfrastructure::findBatiment | ( | const LPTYBatiment | pBatiment | ) |
Retrouve le GeoNode associe a un bâtiment.
| pBatiment | L'element a chercher. |
Definition at line 974 of file TYInfrastructure.cpp.


| LPTYMachineGeoNode TYInfrastructure::findMachine | ( | const LPTYMachine | pMachine | ) |
Retrouve le GeoNode associe a une machine.
| pMachine | L'element a chercher. |
Definition at line 858 of file TYInfrastructure.cpp.


| LPTYReseauTransportGeoNode TYInfrastructure::findResTrans | ( | const LPTYReseauTransport | pResTrans | ) |
Retrouve le GeoNode associe a un reseau de transport.
| pResTrans | L'element a chercher. |
Definition at line 742 of file TYInfrastructure.cpp.


| LPTYUserSourcePonctuelleGeoNode TYInfrastructure::findSrc | ( | const LPTYUserSourcePonctuelle | pSrc | ) |
Retrouve le GeoNode associe a une source ponctuelle.
| pSrc | L'element a chercher. |
Definition at line 1089 of file TYInfrastructure.cpp.


|
virtual |
Extrait les informations a partir du noeud DOM passe afin de recuperer les parametres de la classe.
| domElement | Le noeud DOM a partir duquel les parametres doivent etre recuperes. |
Reimplemented from TYElement.
Definition at line 234 of file TYInfrastructure.cpp.

| void TYInfrastructure::getAllSrcs | ( | const TYCalcul * | pCalcul, |
| TYMapElementTabSources & | mapElementSrcs | ||
| ) |
Retourne un tableau associatif des sources et de leur machine support
Definition at line 1336 of file TYInfrastructure.cpp.


|
inline |
Retourne un bâtiment a partir de son index.
Definition at line 322 of file TYInfrastructure.h.

|
virtual |
Collecte les enfants de cet element de facon recursive ou non.
Reimplemented from TYElement.
Definition at line 346 of file TYInfrastructure.cpp.


|
inline |
Set/Get de la liste des batiments.
Definition at line 267 of file TYInfrastructure.h.

|
inline |
Set/Get de la liste des batiments.
Definition at line 275 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des machines.
Definition at line 339 of file TYInfrastructure.h.

|
inline |
Set/Get de la liste des machines.
Definition at line 347 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 195 of file TYInfrastructure.h.

|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 203 of file TYInfrastructure.h.
|
inline |
Retourne une machine a partir de son index.
Definition at line 394 of file TYInfrastructure.h.

| TYProjet * TYInfrastructure::getProjet | ( | ) |
Retourne le projet utilisant cette infrastructure (utilise pour gerer la suppression de machines dans un calcul);
Definition at line 467 of file TYInfrastructure.cpp.


|
inline |
Retourne un reseau de transport a partir de son index.
Definition at line 250 of file TYInfrastructure.h.


|
inline |
Retourne une source a partir de son index.
Definition at line 466 of file TYInfrastructure.h.

|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 411 of file TYInfrastructure.h.

|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 419 of file TYInfrastructure.h.
|
inline |
Get du tableau des elements qui n'ont pu etre mis a jour
Definition at line 498 of file TYInfrastructure.h.
| bool TYInfrastructure::operator!= | ( | const TYInfrastructure & | other | ) | const |
Operateur !=.
Definition at line 96 of file TYInfrastructure.cpp.

| TYInfrastructure & TYInfrastructure::operator= | ( | const TYInfrastructure & | other | ) |
Operateur =.
Definition at line 46 of file TYInfrastructure.cpp.

| bool TYInfrastructure::operator== | ( | const TYInfrastructure & | other | ) | const |
Operateur ==.
Definition at line 62 of file TYInfrastructure.cpp.

| void TYInfrastructure::purge | ( | ) |
Vide toutes les listes d'elements composants cet objet.
Definition at line 480 of file TYInfrastructure.cpp.

| void TYInfrastructure::remAllBatiment | ( | ) |
Suppression de tous les elements.
Definition at line 962 of file TYInfrastructure.cpp.


| void TYInfrastructure::remAllMachine | ( | ) |
Suppression de tous les elements.
Definition at line 846 of file TYInfrastructure.cpp.


| void TYInfrastructure::remAllResTrans | ( | ) |
Suppression de tous les elements.
Definition at line 730 of file TYInfrastructure.cpp.


| void TYInfrastructure::remAllSrc | ( | ) |
Suppression de tous les elements.
Definition at line 1077 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remBatiment | ( | const LPTYBatiment | pBatiment | ) |
Supprime une entree a la liste des batiments.
Definition at line 928 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remBatiment | ( | const LPTYBatimentGeoNode | pBatimentGeoNode | ) |
Supprime une entree a la liste des batiments.
Definition at line 900 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remBatiment | ( | QString | idBatiment | ) |
Supprime une entree a la liste des batiments a partir de son identifiant.
Definition at line 945 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remFromCalcul | ( | ) |
Supprime les element de l'infrastructure du calcul
Definition at line 1161 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remMachine | ( | const LPTYMachine | pMachine | ) |
Supprime une entree a la liste des machines.
Definition at line 811 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remMachine | ( | const LPTYMachineGeoNode | pMachineGeoNode | ) |
Supprime une entree a la liste des machines.
Definition at line 784 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remMachine | ( | QString | idMachine | ) |
Supprime une entree a la liste des machines a partir de son identifiant.
Definition at line 829 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remResTrans | ( | const LPTYReseauTransport | pResTrans | ) |
Supprime une entree a la liste des reseaux de transport.
Definition at line 695 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remResTrans | ( | const LPTYReseauTransportGeoNode | pResTransGeoNode | ) |
Supprime une entree a la liste des reseaux de transport.
Definition at line 668 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remResTrans | ( | QString | idResTrans | ) |
Supprime une entree a la liste des reseaux de transport a partir de son identifiant.
Definition at line 713 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remSrc | ( | const LPTYUserSourcePonctuelle | pSrc | ) |
Supprime une entree a la liste des sources ponctuelles.
Definition at line 1042 of file TYInfrastructure.cpp.


| bool TYInfrastructure::remSrc | ( | const LPTYUserSourcePonctuelleGeoNode | pSrcGeoNode | ) |
Supprime une entree a la liste des sources ponctuelles.
Definition at line 1016 of file TYInfrastructure.cpp.

| bool TYInfrastructure::remSrc | ( | QString | idSrc | ) |
Supprime une entree a la liste des sources ponctuelles a partir de son identifiant.
Definition at line 1060 of file TYInfrastructure.cpp.

|
virtual |
Reattribut le bon parent aux composants de cette infrastructure.
Definition at line 431 of file TYInfrastructure.cpp.

|
inline |
Set/Get de la liste des batiments.
Definition at line 283 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des machines.
Definition at line 355 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 211 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 427 of file TYInfrastructure.h.
|
virtual |
Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).
Reimplemented from TYElement.
Definition at line 166 of file TYInfrastructure.cpp.
|
virtual |
Construit une arborescence DOM a partir du noeud passe afin de sauvegarder les parametres au format XML.
| domElement | Le noeud DOM parent a partir duquel l'arborescence doit etre creee. |
Reimplemented from TYElement.
Definition at line 171 of file TYInfrastructure.cpp.


| bool TYInfrastructure::updateAcoustic | ( | const TYCalcul * | pCalcul, |
| const bool & | force = false |
||
| ) |
Met a jour l'acoustique des elements d'infrastructure
Definition at line 1237 of file TYInfrastructure.cpp.


|
virtual |
Verifie si cet element est present dans la liste d'ID passee. S'il est present cela signifie qu'il est actif dans le Calcul courant, c'est cet etat qui est retourne.
| listID | La liste d'ID du Calcul courant. |
| recursif | Indique si la mise a jour du Calcul courant doit etre recursive. |
Reimplemented from TYElement.
Definition at line 413 of file TYInfrastructure.cpp.

|
protected |
Liste des batiments.
Definition at line 528 of file TYInfrastructure.h.
|
protected |
Liste des machines.
Definition at line 531 of file TYInfrastructure.h.
|
protected |
Liste des reseaux de transport.
Definition at line 525 of file TYInfrastructure.h.
|
protected |
Liste des sources ponctuelles.
Definition at line 534 of file TYInfrastructure.h.
|
protected |
Liste des elements dont l'update a echoue.
Definition at line 537 of file TYInfrastructure.h.