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

#include <TYMur.h>

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

Public Member Functions

 TYMur ()
 
 TYMur (const TYMur &other)
 
virtual ~TYMur ()
 
TYMuroperator= (const TYMur &other)
 Operateur =. More...
 
bool operator== (const TYMur &other) const
 Operateur ==. More...
 
bool operator!= (const TYMur &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 void distriSrcs ()
 
virtual bool setSrcsLw ()
 
virtual void remAllSrcs ()
 
virtual double surface () const
 
virtual int intersects (const TYSurfaceInterface *pSurf, OSegment3D &seg) const
 
virtual int intersects (const OSegment3D &seg, OPoint3D &pt) const
 
virtual bool makeGrid (int nbCol, int nbRow)
 
virtual void updateGrid ()
 
bool abso (const TYPoint &pt, TYSpectre &spectre) const
 
bool transm (const TYPoint &pt, TYSpectre &spectre) const
 
TYParoigetParoi () const
 
void setParoi (const LPTYParoi pParoi)
 
void setParoiLocked (const bool &bVal)
 
bool isParoiLocked ()
 
const bool isParoiLocked () const
 
TYMateriauConstructiongetMateriau ()
 Surcharge de la methode getMateriau pour la dalle. More...
 
- Public Member Functions inherited from TYAcousticRectangleNode
 TYAcousticRectangleNode ()
 
 TYAcousticRectangleNode (const TYAcousticRectangleNode &other)
 
virtual ~TYAcousticRectangleNode ()
 
TYAcousticRectangleNodeoperator= (const TYAcousticRectangleNode &other)
 Operateur =. More...
 
bool operator== (const TYAcousticRectangleNode &other) const
 Operateur ==. More...
 
bool operator!= (const TYAcousticRectangleNode &other) const
 Operateur !=. More...
 
virtual double activeSurface ()
 
virtual bool remAcousticSurf (const LPTYAcousticSurfaceGeoNode pAccSurfGeoNode)
 
virtual bool remAcousticSurf (const LPTYAcousticSurface pAccSurf)
 
virtual bool remAcousticSurf (QString idAccSurf)
 
virtual void setSizeX (float sizeX)
 
virtual void setSizeY (float sizeY)
 
virtual void setSize (float sizeX, float sizeY)
 
void getSize (float &sizeX, float &sizeY)
 
virtual float getSizeX ()
 
virtual float getSizeY ()
 
void scale (float factorX, float factorY)
 
void scale (float factor)
 
bool addSubRect (LPTYAcousticRectangleGeoNode pAccRectGeoNode)
 
bool addSubRect (LPTYAcousticRectangle pAccRect, TYRepere repRect)
 
- Public Member Functions inherited from TYAcousticSurfaceNode
 TYAcousticSurfaceNode ()
 
 TYAcousticSurfaceNode (const TYAcousticSurfaceNode &other)
 
virtual ~TYAcousticSurfaceNode ()
 
TYAcousticSurfaceNodeoperator= (const TYAcousticSurfaceNode &other)
 Operateur =. More...
 
bool operator== (const TYAcousticSurfaceNode &other) const
 Operateur ==. More...
 
bool operator!= (const TYAcousticSurfaceNode &other) const
 Operateur !=. More...
 
virtual void setIsAcousticModified (bool isModified)
 
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 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 correctNbRegimes ()
 
virtual void propagateAtt (LPTYAttenuateur pAtt)
 
virtual bool updateAcoustic (const bool &force=false)
 
virtual void setIsRayonnant (bool rayonnant=true, bool recursif=true)
 
virtual double activeSurface () const
 
virtual OVector3D normal () const
 
virtual OPlan plan () const
 
virtual TYTabPoint getContour (int n=-1) const
 
virtual TYTabPoint3D getOContour (int n=-1) const
 
virtual int intersects (const OPoint3D &pt) const
 
virtual void setUseAtt (bool state)
 
virtual const OPlangetPlan () const
 
void purge ()
 
size_t getNbChild () const
 
TYTabAcousticSurfaceGeoNodegetTabAcousticSurf ()
 
const TYTabAcousticSurfaceGeoNodegetTabAcousticSurf () const
 
void setTabAcousticSurf (const TYTabAcousticSurfaceGeoNode &tab)
 
LPTYRectangle getBoundingRect ()
 
const LPTYRectangle getBoundingRect () const
 
bool addAcousticSurf (LPTYAcousticSurfaceGeoNode pAccSurfGeoNode)
 
bool addAcousticSurf (LPTYAcousticSurface pAccSurf, const TYRepere &repere)
 
bool addAcousticSurf (LPTYAcousticSurface pAccSurf)
 
LPTYAcousticSurface getAcousticSurf (int index)
 
LPTYAcousticSurfaceGeoNode findAcousticSurf (const LPTYAcousticSurface pAccSurf)
 
TYSpectre setGlobalLW (const TYSpectre &spectre, const double &surfGlobale, const int &regime=-1)
 
virtual void setNextRegimeNb (const int &next)
 
virtual void setRegimeName (const QString &name)
 
virtual void exportCSV (std::ofstream &ofs)
 Export au format csv sur un flux transmis. More...
 
- 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
 
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 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
 
- Public Member Functions inherited from TYColorInterface
virtual void updateColor ()
 
 TYColorInterface ()
 
 TYColorInterface (const TYColorInterface &other)
 
virtual ~TYColorInterface ()
 
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)
 
DOM_Element toXML (DOM_Element &domElement)
 
int fromXML (DOM_Element domElement)
 
virtual void setColor (const OColor &color)
 
OColor getColor () const
 
- Public Member Functions inherited from TYAcousticInterface
virtual int getNextRegimeNb ()
 
virtual const int getNextRegimeNb () const
 
virtual QString getRegimeName ()
 
virtual const QString getRegimeName () const
 
 TYAcousticInterface ()
 
 TYAcousticInterface (const TYAcousticInterface &other)
 
virtual ~TYAcousticInterface ()
 
TYAcousticInterfaceoperator= (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
 
LPTYAttenuateur getAtt ()
 
const LPTYAttenuateur getAtt () const
 
void setAtt (LPTYAttenuateur pAtt)
 
TYSpectregetCurrentSpectre ()
 
virtual int addRegime (const TYRegime &regime)
 
size_t getNbRegimes () const
 
void setNbRegimes (unsigned int nb)
 
TYRegimegetRegimeNb (const int &nb, bool &status)
 
const TYRegimegetRegimeNb (const int &nb, bool &status) const
 
int getCurRegime () const
 
virtual void propagateRegime ()
 
virtual TYRegime buildRegime ()
 
virtual void updateCurrentRegime ()
 
bool getIsRegimeChangeAble ()
 
- Public Member Functions inherited from TYSurfaceInterface
virtual void exportMesh (std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
 Exports the surface as a triangular mesh inglobal reference frame. More...
 
 TYSurfaceInterface ()
 
virtual ~TYSurfaceInterface ()
 
virtual int intersectsPlan (const OPlan &plan, OSegment3D &seg) const
 
virtual void inverseNormale ()
 

Protected Attributes

LPTYParoi _pParoi
 
bool _bParoiLocked
 
- Protected Attributes inherited from TYAcousticSurfaceNode
TYTabAcousticSurfaceGeoNode _tabAcousticSurf
 Tableau des AcousticSurfaces. More...
 
LPTYRectangle _pBoundingRect
 Rectangle englobant. 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...
 

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 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 TYAcousticRectangleNode
bool makeGrid (int nbCol, int nbRow, const char *childType)
 
void updateGrid (const char *childType)
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Detailed Description

Comprend les proprietes acoustiques et geometriques d'un mur.

Definition at line 37 of file TYMur.h.

Constructor & Destructor Documentation

◆ TYMur() [1/2]

TYMur::TYMur ( )

Constructeur.

Definition at line 31 of file TYMur.cpp.

Here is the call graph for this function:

◆ TYMur() [2/2]

TYMur::TYMur ( const TYMur other)

Constructeur par copie.

Definition at line 71 of file TYMur.cpp.

◆ ~TYMur()

TYMur::~TYMur ( )
virtual

Destructeur.

Definition at line 76 of file TYMur.cpp.

Member Function Documentation

◆ abso()

bool TYMur::abso ( const TYPoint pt,
TYSpectre spectre 
) const

Calule le spectre d'absorption du mur au point donne.

Parameters
ptPoint pour lequel on calcule le spectre d'absorption du mur.
spectreLe spectre resultant.
Returns
false si le point passe n'appartient pas au mur; true sinon.

Definition at line 198 of file TYMur.cpp.

◆ deepCopy()

bool TYMur::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 TYAcousticRectangleNode.

Definition at line 106 of file TYMur.cpp.

Here is the call graph for this function:

◆ distriSrcs()

void TYMur::distriSrcs ( )
virtual

Calcul la repartition des sources ponctuelles pour cet element en fonction des densites etablies.

Reimplemented from TYAcousticRectangleNode.

Definition at line 173 of file TYMur.cpp.

Here is the call graph for this function:

◆ fromXML()

int TYMur::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 TYAcousticRectangleNode.

Definition at line 144 of file TYMur.cpp.

Here is the call graph for this function:

◆ getMateriau()

LPTYMateriauConstruction TYMur::getMateriau ( )

Surcharge de la methode getMateriau pour la dalle.

Returns
le materiau de construction de la dalle

Definition at line 242 of file TYMur.cpp.

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

◆ getParoi()

TYParoi* TYMur::getParoi ( ) const
inline

Set/Get de la paroi.

Definition at line 110 of file TYMur.h.

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

◆ getSrcs()

TYTabSourcePonctuelleGeoNode TYMur::getSrcs ( ) const
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.

Returns
Une collection de pointeurs sur des GeoNodes de sources ponctuelles.

Reimplemented from TYAcousticRectangleNode.

Definition at line 163 of file TYMur.cpp.

Here is the call graph for this function:

◆ intersects() [1/2]

int TYMur::intersects ( const TYSurfaceInterface pSurf,
OSegment3D seg 
) const
virtual

Calcule le segment d'intersection avec une autre surface.

Parameters
pSurfLa surface dont on cherche l'intersection.
segLe segment resultant de l'intersection.
Returns
INTERS_OUI (1) si l'intersection existe, INTERS_CONFONDU (2) si les elements sont confondus, INTERS_NULLE (0) s'il n'y a pas d'intersection.

Reimplemented from TYAcousticSurfaceNode.

Definition at line 188 of file TYMur.cpp.

Here is the call graph for this function:

◆ intersects() [2/2]

int TYMur::intersects ( const OSegment3D seg,
OPoint3D pt 
) const
virtual

Calcule le point d'intersection avec un segment.

Parameters
segLe segment dont on cherche l'intersection.
ptLe point resultant de l'intersection.
Returns
INTERS_OUI (1) si l'intersection existe, INTERS_CONFONDU (2) si les elements sont confondus, INTERS_NULLE (0) s'il n'y a pas d'intersection.

Reimplemented from TYAcousticSurfaceNode.

Definition at line 193 of file TYMur.cpp.

Here is the call graph for this function:

◆ isParoiLocked() [1/2]

bool TYMur::isParoiLocked ( )
inline

Definition at line 121 of file TYMur.h.

◆ isParoiLocked() [2/2]

const bool TYMur::isParoiLocked ( ) const
inline

Definition at line 122 of file TYMur.h.

Here is the call graph for this function:

◆ makeGrid()

bool TYMur::makeGrid ( int  nbCol,
int  nbRow 
)
virtual

Decoupe cet objet en plusieurs elements de type AcousticRectangle sous forme de grille.

Parameters
nbColNombre de colonnes de la grille de decoupage.
nbRowNombre de lignes de la grille de decoupage.
Returns
true si le decoupage a ete effectue; false sinon.

Reimplemented from TYAcousticRectangleNode.

Definition at line 119 of file TYMur.cpp.

Here is the call graph for this function:

◆ operator!=()

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

Operateur !=.

Definition at line 101 of file TYMur.cpp.

Here is the call graph for this function:

◆ operator=()

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

Operateur =.

Definition at line 80 of file TYMur.cpp.

Here is the call graph for this function:

◆ operator==()

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

Operateur ==.

Definition at line 91 of file TYMur.cpp.

Here is the caller graph for this function:

◆ remAllSrcs()

void TYMur::remAllSrcs ( )
virtual

Supprime toutes les sources d'un element

Reimplemented from TYAcousticRectangleNode.

Definition at line 232 of file TYMur.cpp.

Here is the call graph for this function:

◆ setParoi()

void TYMur::setParoi ( const LPTYParoi  pParoi)

Set/Get de la paroi.

Definition at line 210 of file TYMur.cpp.

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

◆ setParoiLocked()

void TYMur::setParoiLocked ( const bool &  bVal)

Get/Set de l'etat bloque du type de paroi

Definition at line 222 of file TYMur.cpp.

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

◆ setSrcsLw()

bool TYMur::setSrcsLw ( )
virtual

Assigne une puissance a chaque source ponctuelle en fonction de la puissance acoutique globale de cet objet.

Returns
true si le calcul a ete possible; false sinon.

Reimplemented from TYAcousticRectangleNode.

Definition at line 178 of file TYMur.cpp.

Here is the call graph for this function:

◆ srcPonctEquiv()

TYSourcePonctuelle TYMur::srcPonctEquiv ( ) const
virtual

Retourne une source ponctuelle equivalente a l'ensemble des sources. Cette methode est experimentale.

Returns
La source ponctuelle equivalente.

Reimplemented from TYAcousticRectangleNode.

Definition at line 168 of file TYMur.cpp.

Here is the call graph for this function:

◆ surface()

double TYMur::surface ( ) const
virtual

Calcule l'aire de la surface totale.

Reimplemented from TYAcousticSurfaceNode.

Definition at line 183 of file TYMur.cpp.

Here is the call graph for this function:

◆ toString()

std::string TYMur::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 TYAcousticRectangleNode.

Definition at line 129 of file TYMur.cpp.

◆ toXML()

DOM_Element TYMur::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 TYAcousticRectangleNode.

Definition at line 134 of file TYMur.cpp.

Here is the call graph for this function:

◆ transm()

bool TYMur::transm ( const TYPoint pt,
TYSpectre spectre 
) const

Calule le spectre de transmission du mur au point donne.

Parameters
ptPoint pour lequel on calcule le spectre de transmission du mur.
spectreLe spectre resultant.
Returns
false si le point passe n'appartient pas au mur; true sinon.

Definition at line 204 of file TYMur.cpp.

◆ updateGrid()

void TYMur::updateGrid ( )
virtual

Decoupe cet objet en plusieurs elements de type AcousticRectangle ou d'un type derive sous forme de grille.

Reimplemented from TYAcousticRectangleNode.

Definition at line 124 of file TYMur.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _bParoiLocked

bool TYMur::_bParoiLocked
protected

Indicateur de "blocage" du type de paroi (evite une mise a jour depuis l'etage)

Definition at line 144 of file TYMur.h.

◆ _pParoi

LPTYParoi TYMur::_pParoi
protected

La paroi pour l'ensemble des elements de mur (TYMurElement) de contruction composant ce mur et pas de type "isSub".

Definition at line 138 of file TYMur.h.


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