Code_TYMPAN
4.2.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 | |
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 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 () |
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 32 of file TYInfrastructure.cpp.
TYInfrastructure::TYInfrastructure | ( | const TYInfrastructure & | other | ) |
Constructeur par copie.
Definition at line 37 of file TYInfrastructure.cpp.
|
virtual |
Destructeur.
Definition at line 42 of file TYInfrastructure.cpp.
bool TYInfrastructure::addBatiment | ( | LPTYBatimentGeoNode | pBatimentGeoNode | ) |
Ajoute une entree a la liste des batiments et la position associee.
Definition at line 828 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 849 of file TYInfrastructure.cpp.
bool TYInfrastructure::addMachine | ( | LPTYMachineGeoNode | pMachineGeoNode | ) |
Ajoute une entree a la liste des machines et la position associee.
Definition at line 718 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 739 of file TYInfrastructure.cpp.
bool TYInfrastructure::addResTrans | ( | LPTYReseauTransportGeoNode | pResTransGeoNode | ) |
Ajoute une entree a la liste des reseaux de transport.
Definition at line 607 of file TYInfrastructure.cpp.
bool TYInfrastructure::addResTrans | ( | LPTYReseauTransport | pResTrans | ) |
Ajoute une entree a la liste des reseaux de transport.
Definition at line 628 of file TYInfrastructure.cpp.
bool TYInfrastructure::addSrc | ( | LPTYUserSourcePonctuelle | pSrc | ) |
Ajoute une entree a la liste des sources ponctuelles.
Definition at line 959 of file TYInfrastructure.cpp.
bool TYInfrastructure::addSrc | ( | LPTYUserSourcePonctuelleGeoNode | pSrcGeoNode | ) |
Ajoute une entree a la liste des sources ponctuelles.
Definition at line 938 of file TYInfrastructure.cpp.
bool TYInfrastructure::addToCalcul | ( | TYGeometryNode * | pNode | ) |
Ajoute le nouvel element au calcul
Definition at line 1161 of file TYInfrastructure.cpp.
bool TYInfrastructure::addToCalcul | ( | ) |
Ajoute les elements de l'infrastructure au calcul
Definition at line 1048 of file TYInfrastructure.cpp.
void TYInfrastructure::clean | ( | ) |
Vide les tableaux sans mettre a jour les calculs
Definition at line 1376 of file TYInfrastructure.cpp.
void TYInfrastructure::concatInfra | ( | const TYInfrastructure * | infra | ) |
Concatene 2 infrastructures
Definition at line 463 of file TYInfrastructure.cpp.
|
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.
pOther | L'element a copier. |
copyId | Copie l'identifiant unique ou pas. |
true
si la copie est possible; false
sinon. Reimplemented from TYElement.
Definition at line 84 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 922 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 812 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 702 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 1032 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 208 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 1267 of file TYInfrastructure.cpp.
|
inline |
Retourne un bâtiment a partir de son index.
Definition at line 284 of file TYInfrastructure.h.
|
virtual |
Collecte les enfants de cet element de facon recursive ou non.
Reimplemented from TYElement.
Definition at line 319 of file TYInfrastructure.cpp.
|
inline |
Set/Get de la liste des batiments.
Definition at line 238 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des batiments.
Definition at line 243 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des machines.
Definition at line 298 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des machines.
Definition at line 303 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 178 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 183 of file TYInfrastructure.h.
|
inline |
Retourne une machine a partir de son index.
Definition at line 344 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 440 of file TYInfrastructure.cpp.
|
inline |
Retourne un reseau de transport a partir de son index.
Definition at line 224 of file TYInfrastructure.h.
|
inline |
Retourne une source a partir de son index.
Definition at line 404 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 358 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 363 of file TYInfrastructure.h.
|
inline |
Get du tableau des elements qui n'ont pu etre mis a jour
Definition at line 433 of file TYInfrastructure.h.
bool TYInfrastructure::operator!= | ( | const TYInfrastructure & | other | ) | const |
Operateur !=.
Definition at line 79 of file TYInfrastructure.cpp.
TYInfrastructure & TYInfrastructure::operator= | ( | const TYInfrastructure & | other | ) |
Operateur =.
Definition at line 47 of file TYInfrastructure.cpp.
bool TYInfrastructure::operator== | ( | const TYInfrastructure & | other | ) | const |
Operateur ==.
Definition at line 63 of file TYInfrastructure.cpp.
void TYInfrastructure::purge | ( | ) |
Vide toutes les listes d'elements composants cet objet.
Definition at line 450 of file TYInfrastructure.cpp.
void TYInfrastructure::remAllBatiment | ( | ) |
Suppression de tous les elements.
Definition at line 913 of file TYInfrastructure.cpp.
void TYInfrastructure::remAllMachine | ( | ) |
Suppression de tous les elements.
Definition at line 803 of file TYInfrastructure.cpp.
void TYInfrastructure::remAllResTrans | ( | ) |
Suppression de tous les elements.
Definition at line 692 of file TYInfrastructure.cpp.
void TYInfrastructure::remAllSrc | ( | ) |
Suppression de tous les elements.
Definition at line 1023 of file TYInfrastructure.cpp.
bool TYInfrastructure::remBatiment | ( | const LPTYBatimentGeoNode | pBatimentGeoNode | ) |
Supprime une entree a la liste des batiments.
Definition at line 854 of file TYInfrastructure.cpp.
bool TYInfrastructure::remBatiment | ( | const LPTYBatiment | pBatiment | ) |
Supprime une entree a la liste des batiments.
Definition at line 879 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 896 of file TYInfrastructure.cpp.
bool TYInfrastructure::remFromCalcul | ( | ) |
Supprime les element de l'infrastructure du calcul
Definition at line 1104 of file TYInfrastructure.cpp.
bool TYInfrastructure::remMachine | ( | const LPTYMachine | pMachine | ) |
Supprime une entree a la liste des machines.
Definition at line 768 of file TYInfrastructure.cpp.
bool TYInfrastructure::remMachine | ( | const LPTYMachineGeoNode | pMachineGeoNode | ) |
Supprime une entree a la liste des machines.
Definition at line 744 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 786 of file TYInfrastructure.cpp.
bool TYInfrastructure::remResTrans | ( | const LPTYReseauTransportGeoNode | pResTransGeoNode | ) |
Supprime une entree a la liste des reseaux de transport.
Definition at line 633 of file TYInfrastructure.cpp.
bool TYInfrastructure::remResTrans | ( | const LPTYReseauTransport | pResTrans | ) |
Supprime une entree a la liste des reseaux de transport.
Definition at line 657 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 675 of file TYInfrastructure.cpp.
bool TYInfrastructure::remSrc | ( | const LPTYUserSourcePonctuelle | pSrc | ) |
Supprime une entree a la liste des sources ponctuelles.
Definition at line 988 of file TYInfrastructure.cpp.
bool TYInfrastructure::remSrc | ( | const LPTYUserSourcePonctuelleGeoNode | pSrcGeoNode | ) |
Supprime une entree a la liste des sources ponctuelles.
Definition at line 965 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 1006 of file TYInfrastructure.cpp.
|
virtual |
Reattribut le bon parent aux composants de cette infrastructure.
Definition at line 404 of file TYInfrastructure.cpp.
|
inline |
Set/Get de la liste des batiments.
Definition at line 248 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des machines.
Definition at line 308 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des reseaux de transport.
Definition at line 188 of file TYInfrastructure.h.
|
inline |
Set/Get de la liste des sources ponctuelles.
Definition at line 368 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 146 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 151 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 1174 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. |
true
si cet objet est actif dans le Calcul concerne; false
sinon. Reimplemented from TYElement.
Definition at line 386 of file TYInfrastructure.cpp.
|
protected |
Liste des batiments.
Definition at line 461 of file TYInfrastructure.h.
|
protected |
Liste des machines.
Definition at line 464 of file TYInfrastructure.h.
|
protected |
Liste des reseaux de transport.
Definition at line 458 of file TYInfrastructure.h.
|
protected |
Liste des sources ponctuelles.
Definition at line 467 of file TYInfrastructure.h.
|
protected |
Liste des elements dont l'update a echoue.
Definition at line 470 of file TYInfrastructure.h.