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


Public Member Functions | |
| TYMachine () | |
| TYMachine (const TYMachine &other) | |
| virtual | ~TYMachine () |
| TYMachine & | operator= (const TYMachine &other) |
| Operateur =. More... | |
| bool | operator== (const TYMachine &other) const |
| Operateur ==. More... | |
| bool | operator!= (const TYMachine &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 TYTabSourcePonctuelleGeoNode | getSrcs () const |
| virtual TYSourcePonctuelle | srcPonctEquiv () const |
| virtual bool | updateAcoustic (const bool &force=false) |
| virtual void | distriSrcs () |
| virtual bool | setSrcsLw () |
| virtual double | volume () const |
| virtual double | surface () const |
| virtual TYTabVector | normals () const |
| virtual TYTabPoint | sommets () const |
| virtual TYTabLPPolygon | faces () const |
| virtual TYBox | volEnglob () const |
| virtual TYPoint | centreGravite () const |
| virtual int | intersects (const OSegment3D &seg, TYTabPoint &ptList) const |
| virtual int | isInside (const TYPoint &pt) const |
| int | getCategorie () const |
| void | setCategorie (int cate) |
| QString | getConstructeur () const |
| void | setConstructeur (QString name) |
| QString | getModele () const |
| void | setModele (QString name) |
| QString | getCommentaire () const |
| void | setCommentaire (QString name) |
Public Member Functions inherited from TYAcousticVolumeNode | |
| TYAcousticVolumeNode () | |
| TYAcousticVolumeNode (const TYAcousticVolumeNode &other) | |
| virtual | ~TYAcousticVolumeNode () |
| TYAcousticVolumeNode & | operator= (const TYAcousticVolumeNode &other) |
| Operateur =. More... | |
| bool | operator== (const TYAcousticVolumeNode &other) const |
| Operateur ==. More... | |
| bool | operator!= (const TYAcousticVolumeNode &other) const |
| Operateur !=. More... | |
| virtual void | getChilds (LPTYElementArray &childs, bool recursif=true) |
| virtual void | setDensiteSrcsH (double densite, bool recursif=true) |
| virtual void | setDensiteSrcsV (double densite, bool recursif=true) |
| virtual void | propagateAtt (LPTYAttenuateur pAtt) |
| virtual int | addRegime () |
| virtual void | setRegime (TYSpectre &Spectre, int regime=-1, bool recursif=false) |
| virtual bool | remRegime (int regime) |
| virtual void | loadRegime (int regimeNb=-1) |
| virtual void | setCurRegime (int regime) |
| virtual void | setRegimeName (const QString &name) |
| virtual void | correctNbRegimes () |
| virtual void | remAllSrcs () |
| virtual void | setIsRayonnant (bool rayonnant=true, bool recursif=true) |
| virtual double | activeSurface () const |
| virtual double | activeSurface () |
| virtual LPTYSpectre | getRealPowerSpectrum () |
| virtual TYTabAcousticSurfaceGeoNode | acousticFaces () |
| void | purge () |
| size_t | getNbChild () const |
| TYTabAcousticVolumeGeoNode & | getTabAcousticVol () |
| const TYTabAcousticVolumeGeoNode & | getTabAcousticVol () const |
| void | setTabAcousticVol (const TYTabAcousticVolumeGeoNode &tab) |
| bool | addAcousticVol (LPTYAcousticVolumeGeoNode pAccVolGeoNode, bool recursif=true) |
| bool | addAcousticVol (LPTYAcousticVolume pAccVol, const TYRepere &repere, bool recursif=true) |
| bool | addAcousticVol (LPTYAcousticVolume pAccVol, bool recursif=true) |
| bool | remAcousticVol (const LPTYAcousticVolumeGeoNode pAccVolGeoNode) |
| bool | remAcousticVol (const LPTYAcousticVolume pAccVol) |
| bool | remAcousticVol (QString idAccVol) |
| LPTYAcousticVolume | getAcousticVol (int index) |
| LPTYAcousticVolumeGeoNode | findAcousticVol (const LPTYAcousticVolume pAccVol) |
| virtual void | exportCSV (std::ofstream &ofs) |
| Export au format csv sur un flux transmis. More... | |
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 | updateCurrentCalcul (TYListID &listID, 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 OPrototype * | clone () const =0 |
| virtual const char * | getClassName () const |
| bool | isA (const char *className) const |
Public Member Functions inherited from TYColorInterface | |
| TYColorInterface () | |
| TYColorInterface (const TYColorInterface &other) | |
| virtual | ~TYColorInterface () |
| TYColorInterface & | operator= (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) |
| DOM_Element | toXML (DOM_Element &domElement) |
| int | fromXML (DOM_Element domElement) |
| virtual void | setColor (const OColor &color) |
| OColor | getColor () const |
| virtual void | updateColor () |
Public Member Functions inherited from TYAcousticInterface | |
| TYAcousticInterface () | |
| TYAcousticInterface (const TYAcousticInterface &other) | |
| virtual | ~TYAcousticInterface () |
| TYAcousticInterface & | operator= (const TYAcousticInterface &other) |
| bool | operator== (const TYAcousticInterface &other) const |
| bool | operator!= (const TYAcousticInterface &other) const |
| void | deepCopy (const TYAcousticInterface *pOther, bool copyId=true, bool pUseCopyTag=false) |
| DOM_Element | toXML (DOM_Element &domElement) |
| int | fromXML (DOM_Element domElement) |
| double | getDensiteSrcsH () const |
| double | getDensiteSrcsV () const |
| double | getDensiteSrcs () const |
| virtual void | setDensiteSrcs (double densite, bool recursif=true) |
| bool | getIsRayonnant () |
| int | getTypeDistribution () const |
| void | setTypeDistribution (int typeDistri) |
| bool | getUseAtt () const |
| virtual void | setUseAtt (bool state) |
| LPTYAttenuateur | getAtt () |
| const LPTYAttenuateur | getAtt () const |
| void | setAtt (LPTYAttenuateur pAtt) |
| TYSpectre & | getCurrentSpectre () |
| virtual int | addRegime (const TYRegime ®ime) |
| size_t | getNbRegimes () const |
| void | setNbRegimes (unsigned int nb) |
| TYRegime & | getRegimeNb (const int &nb, bool &status) |
| const TYRegime & | getRegimeNb (const int &nb, bool &status) const |
| int | getCurRegime () const |
| virtual void | propagateRegime () |
| virtual TYSpectre | setGlobalLW (const TYSpectre &spectre, const double &surfGlobale, const int ®ime=-1) |
| virtual TYRegime | buildRegime () |
| virtual void | updateCurrentRegime () |
| bool | getIsRegimeChangeAble () |
| virtual int | getNextRegimeNb () |
| virtual const int | getNextRegimeNb () const |
| virtual void | setNextRegimeNb (const int &next) |
| virtual QString | getRegimeName () |
| virtual const QString | getRegimeName () const |
Public Member Functions inherited from TYVolumeInterface | |
| TYVolumeInterface () | |
| virtual | ~TYVolumeInterface () |
| virtual void | updateVolEnglob () |
| const TYBox & | getVolEnglob () const |
| const double & | getRayonSphere () const |
| void | calculRayonSphere (const TYBox &volEnglob) |
| virtual void | calculCentreGravite () |
| const TYPoint & | getCentreGravite () const |
| virtual void | inverseNormales () |
Protected Attributes | |
| int | _categorie |
| Categorie. More... | |
| QString | _constructeur |
| Nom du constructeur. More... | |
| QString | _modele |
| Nom du modele. More... | |
| QString | _commentaire |
| Commentaires. More... | |
Protected Attributes inherited from TYAcousticVolumeNode | |
| TYTabAcousticVolumeGeoNode | _tabAcousticVol |
| Tableau des AcousticVolumes. 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... | |
Protected Attributes inherited from TYColorInterface | |
| OColor | _color |
Protected Attributes inherited from TYAcousticInterface | |
| double | _densiteSrcsH |
| Densite horizontale de sources. More... | |
| double | _densiteSrcsV |
| Densite verticale de sources. More... | |
| double | _offsetSources |
| Offset de decalage des sources ponctuelles sur les surfaces. More... | |
| bool | _isRayonnant |
| Etat courant de l'element (rayonnant ou non rayonnant) More... | |
| bool | _regimeChangeAble |
| Indique si un element peux changer de regime de lui meme. More... | |
| int | _typeDistribution |
| Indique le type de distribution a utiliser. pour l'etat courant. More... | |
| int | _curRegime |
| Numero du regime de fonctionnement courant. More... | |
| int | _nextRegime |
| Numero d'ordre du regime suivant. More... | |
| TYSpectre | _pCurrentSpectre |
| bool | _useAtt |
| Indique l'utilisation d'un attenuateur pour l'etat courant. More... | |
| LPTYAttenuateur | _pAtt |
| Attenuateur de l'etat courant. More... | |
| TYTabRegimes | _tabRegimes |
| Tableau des regimes de fonctionnement. More... | |
Protected Attributes inherited from TYVolumeInterface | |
| TYBox | _volEnglob |
| double | _rayonSphere |
| TYPoint | _centreGravite |
Additional Inherited Members | |
Public Types inherited from TYAcousticInterface | |
| enum | TypeDistribution { TY_PUISSANCE_CALCULEE , TY_PUISSANCE_IMPOSEE } |
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 () | |
Comprend les proprietes acoustiques et geometriques d'une machine.
Definition at line 32 of file TYMachine.h.
| TYMachine::TYMachine | ( | ) |
Constructeur.
Definition at line 31 of file TYMachine.cpp.

| TYMachine::TYMachine | ( | const TYMachine & | other | ) |
Constructeur par copie.
Definition at line 41 of file TYMachine.cpp.
|
virtual |
Destructeur.
Definition at line 46 of file TYMachine.cpp.
|
virtual |
Calcule le centre de gravite de ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 200 of file TYMachine.cpp.

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

|
virtual |
Calcul la repartition des sources ponctuelles pour cet element en fonction des densites etablies.
Reimplemented from TYAcousticVolumeNode.
Definition at line 155 of file TYMachine.cpp.


|
virtual |
Retourne l'ensemble des faces (polygones) composant ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 190 of file TYMachine.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 TYAcousticVolumeNode.
Definition at line 128 of file TYMachine.cpp.

|
inline |
Set/Get de la categorie.
Definition at line 94 of file TYMachine.h.

|
inline |
Set/Get des remarques.
Definition at line 139 of file TYMachine.h.

|
inline |
Set/Get du nom du constructeur.
Definition at line 109 of file TYMachine.h.

|
inline |
Set/Get du nom du modele.
Definition at line 124 of file TYMachine.h.

|
virtual |
Retourne l'ensemble des sources ponctuelles dont est compose cet objet. Chaque source se trouve dans un GeoNode, ainsi la matrice de celui-ci permet d'effectuer le changement de repere de la position de la source dans le repere local a cet objet.
Reimplemented from TYAcousticVolumeNode.
Definition at line 145 of file TYMachine.cpp.


|
virtual |
Calcule la liste des points d'intersection de ce volume avec le segment passe.
| seg | Segment dont on veut l'intersection. |
| ptList | Les point resultant de l'intersection. |
Reimplemented from TYAcousticVolumeNode.
Definition at line 205 of file TYMachine.cpp.

|
virtual |
Test si le point passe se trouve a l'interieur de ce volume.
| pt | Point dont on teste l'appartenance au volume. |
Reimplemented from TYAcousticVolumeNode.
Definition at line 210 of file TYMachine.cpp.

|
virtual |
Calcule les normales des surfaces composant ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 180 of file TYMachine.cpp.

| bool TYMachine::operator!= | ( | const TYMachine & | other | ) | const |
Operateur !=.
Definition at line 89 of file TYMachine.cpp.

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

|
inline |
Set/Get de la categorie.
Definition at line 101 of file TYMachine.h.
|
inline |
Set/Get des remarques.
Definition at line 146 of file TYMachine.h.
|
inline |
Set/Get du nom du constructeur.
Definition at line 116 of file TYMachine.h.
|
inline |
Set/Get du nom du modele.
Definition at line 131 of file TYMachine.h.
|
virtual |
Assigne une puissance a chaque source ponctuelle en fonction de la puissance acoutique globale de cet objet.
true si le calcul a ete possible; false sinon. Reimplemented from TYAcousticVolumeNode.
Definition at line 160 of file TYMachine.cpp.

|
virtual |
Retourne l'ensemble des sommets composant ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 185 of file TYMachine.cpp.

|
virtual |
Retourne une source ponctuelle equivalente a l'ensemble des sources. Cette methode est experimentale.
Reimplemented from TYAcousticVolumeNode.
Definition at line 150 of file TYMachine.cpp.

|
virtual |
Calcule la surface totale de ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 175 of file TYMachine.cpp.

|
virtual |
Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).
Reimplemented from TYAcousticVolumeNode.
Definition at line 111 of file TYMachine.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 TYAcousticVolumeNode.
Definition at line 116 of file TYMachine.cpp.

|
virtual |
Execute les calculs acoustiques afin que l'element metier soit a jour.
Reimplemented from TYAcousticVolumeNode.
Definition at line 165 of file TYMachine.cpp.

|
virtual |
Calcule la boite englobant ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 195 of file TYMachine.cpp.

|
virtual |
Calcule le volume total de ce volume.
Reimplemented from TYAcousticVolumeNode.
Definition at line 170 of file TYMachine.cpp.

|
protected |
Categorie.
Definition at line 154 of file TYMachine.h.
|
protected |
Commentaires.
Definition at line 160 of file TYMachine.h.
|
protected |
Nom du constructeur.
Definition at line 156 of file TYMachine.h.
|
protected |
Nom du modele.
Definition at line 158 of file TYMachine.h.