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

#include <TYAcousticBox.h>

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

Public Member Functions

 TYAcousticBox ()
 
 TYAcousticBox (const TYAcousticBox &other)
 
virtual ~TYAcousticBox ()
 
void setDimension (float larg, float lon, float haut)
 
void getDimension (float &larg, float &lon, float &haut)
 
TYAcousticBoxoperator= (const TYAcousticBox &other)
 Operateur =. More...
 
bool operator== (const TYAcousticBox &other) const
 Operateur ==. More...
 
bool operator!= (const TYAcousticBox &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)
 
virtual void setDensiteSrcsH (double densite, bool recursif=true)
 
virtual void setDensiteSrcsV (double densite, bool recursif=true)
 
virtual void setRegime (TYSpectre &Spectre, int regime=-1, bool recursif=false)
 
virtual bool remRegime (int regime)
 
virtual void setCurRegime (int regime)
 
virtual void loadRegime (int regimeNb=-1)
 
virtual int addRegime ()
 
virtual void propagateAtt (LPTYAttenuateur pAtt)
 
virtual TYTabSourcePonctuelleGeoNode getSrcs () const
 
virtual TYSourcePonctuelle srcPonctEquiv () const
 
virtual void distriSrcs ()
 
virtual void remAllSrcs ()
 
virtual bool setSrcsLw ()
 
virtual void setIsRayonnant (bool rayonnant=true, bool recursif=true)
 
virtual double volume () const
 
virtual double surface () const
 
virtual double activeSurface () const
 
virtual double activeSurface ()
 
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
 
virtual TYTabAcousticSurfaceGeoNode acousticFaces ()
 
virtual bool findAcousticSurface (const TYAcousticSurface *pAccSurf, OMatrix *pMatrix=0)
 
TYTabLPAcousticSurface getSubFace ()
 
LPTYAcousticRectangleNodeGeoNode getFace (int numFace)
 
const LPTYAcousticRectangleNodeGeoNode getFace (int numFace) const
 
void setFace (const LPTYAcousticRectangleNode pAccRect, int numFace)
 
bool updateAcoustic (const bool &force=false)
 
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 TYAcousticVolume
 TYAcousticVolume ()
 
 TYAcousticVolume (const TYAcousticVolume &other)
 
virtual ~TYAcousticVolume ()
 
TYAcousticVolumeoperator= (const TYAcousticVolume &other)
 Operateur =. More...
 
bool operator== (const TYAcousticVolume &other) const
 Operateur ==. More...
 
bool operator!= (const TYAcousticVolume &other) const
 Operateur !=. More...
 
virtual void setIsAcousticModified (bool isModified)
 
virtual void propagateRegime ()
 
virtual int intersects (const TYSegment &seg, TYTabPoint &ptList) const
 
virtual TYSpectre setGlobalLW (const TYSpectre &spectre, const double &surfGlobale, const int &regime=-1)
 
TYMateriauConstructiongetMateriau () const
 
void setMateriau (LPTYMateriauConstruction pMat)
 
virtual void inverseNormales ()
 
void setNormalStatus ()
 
virtual void correctNbRegimes ()
 
- 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
 
virtual void setUseAtt (bool state)
 
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 TYRegime buildRegime ()
 
virtual void updateCurrentRegime ()
 
bool getIsRegimeChangeAble ()
 
- Public Member Functions inherited from TYVolumeInterface
 TYVolumeInterface ()
 
virtual ~TYVolumeInterface ()
 
virtual void updateVolEnglob ()
 
const TYBoxgetVolEnglob () const
 
const double & getRayonSphere () const
 
void calculRayonSphere (const TYBox &volEnglob)
 
virtual void calculCentreGravite ()
 
const TYPointgetCentreGravite () const
 

Protected Member Functions

TYAcousticRectangleNodegetFaceElement (unsigned long index) const
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Protected Attributes

LPTYAcousticRectangleNodeGeoNode _faces [6]
 
- Protected Attributes inherited from TYAcousticVolume
LPTYMateriauConstruction _pMateriau
 Materiau de contruction pour les faces de ce Volume. More...
 
bool _forceNormales
 Persistence du forcage des normales. 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 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)
 

Detailed Description

Permet des creer des boites acoustiques.

Definition at line 30 of file TYAcousticBox.h.

Constructor & Destructor Documentation

◆ TYAcousticBox() [1/2]

TYAcousticBox::TYAcousticBox ( )

Constructeur.

Definition at line 29 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ TYAcousticBox() [2/2]

TYAcousticBox::TYAcousticBox ( const TYAcousticBox other)

Constructeur par copie.

Definition at line 117 of file TYAcousticBox.cpp.

◆ ~TYAcousticBox()

TYAcousticBox::~TYAcousticBox ( )
virtual

Destructeur.

Definition at line 122 of file TYAcousticBox.cpp.

Member Function Documentation

◆ acousticFaces()

TYTabAcousticSurfaceGeoNode TYAcousticBox::acousticFaces ( )
virtual

Retourne l'ensemble des faces acoustiques composant ce volume. Le GeoNode associe permet de convertir la face dans le repere de ce volume.

Returns
Un tableau de surfaces acoustiques.

Reimplemented from TYAcousticVolume.

Definition at line 834 of file TYAcousticBox.cpp.

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

◆ activeSurface() [1/2]

double TYAcousticBox::activeSurface ( ) const
virtual

Calcule la surface active de la machine (somme des surfaces des elements actifs)

Returns
surface des elements actifs

Reimplemented from TYAcousticVolume.

Definition at line 638 of file TYAcousticBox.cpp.

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

◆ activeSurface() [2/2]

double TYAcousticBox::activeSurface ( )
virtual

Reimplemented from TYAcousticVolume.

Definition at line 655 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ addRegime()

int TYAcousticBox::addRegime ( )
virtual

Ajout d'un regime dans le tableau des regimes

Reimplemented from TYAcousticInterface.

Definition at line 473 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ centreGravite()

TYPoint TYAcousticBox::centreGravite ( ) const
virtual

Calcule le centre de gravite de ce volume.

Returns
Le centre de gravite.

Reimplemented from TYAcousticVolume.

Definition at line 742 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ deepCopy()

bool TYAcousticBox::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 TYAcousticVolume.

Definition at line 250 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ distriSrcs()

void TYAcousticBox::distriSrcs ( )
virtual

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

Reimplemented from TYAcousticVolume.

Definition at line 577 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ exportCSV()

void TYAcousticBox::exportCSV ( std::ofstream &  ofs)
virtual

Export au format csv sur un flux transmis.

Reimplemented from TYAcousticInterface.

Definition at line 411 of file TYAcousticBox.cpp.

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

◆ faces()

TYTabLPPolygon TYAcousticBox::faces ( ) const
virtual

Retourne l'ensemble des faces (polygones) composant ce volume.

Returns
Un tableau de pointeurs de surfaces.

Reimplemented from TYAcousticVolume.

Definition at line 715 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ findAcousticSurface()

bool TYAcousticBox::findAcousticSurface ( const TYAcousticSurface pAccSurf,
OMatrix pMatrix = 0 
)
virtual

Recherche si une face acoustique compose directement ou indirectement ce volume acoustique. Si une matrice est passee en parametre elle sera calculee pour effectuer le changement de repere de la face vers le volume.

Parameters
pAccSurfLa surface acoustique a rechercher.
pMatrixLa matrice a mettre a jour.
Returns
true si la face est un composant de ce volume; false sinon.

Reimplemented from TYAcousticVolume.

Definition at line 858 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ fromXML()

int TYAcousticBox::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 TYAcousticVolume.

Definition at line 285 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ getChilds()

void TYAcousticBox::getChilds ( LPTYElementArray childs,
bool  recursif = true 
)
virtual

Collecte les enfants de cet element de facon recursive ou non.

Reimplemented from TYElement.

Definition at line 379 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ getDimension()

void TYAcousticBox::getDimension ( float &  larg,
float &  lon,
float &  haut 
)

Retourne les dimensions de la boite.

Parameters
largLa largeur de la boite.
lonLa longueur de la boite.
hautLa hauteur de la boite.

Definition at line 187 of file TYAcousticBox.cpp.

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

◆ getFace() [1/2]

LPTYAcousticRectangleNodeGeoNode TYAcousticBox::getFace ( int  numFace)
inline

Set/Get des faces en fonction de leur indice.

Definition at line 126 of file TYAcousticBox.h.

Here is the caller graph for this function:

◆ getFace() [2/2]

const LPTYAcousticRectangleNodeGeoNode TYAcousticBox::getFace ( int  numFace) const
inline

Set/Get des faces en fonction de leur indice.

Definition at line 130 of file TYAcousticBox.h.

Here is the call graph for this function:

◆ getFaceElement()

TYAcousticRectangleNode* TYAcousticBox::getFaceElement ( unsigned long  index) const
inlineprotected

Definition at line 158 of file TYAcousticBox.h.

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

◆ getSrcs()

TYTabSourcePonctuelleGeoNode TYAcousticBox::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 TYAcousticVolume.

Definition at line 517 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ getSubFace()

TYTabLPAcousticSurface TYAcousticBox::getSubFace ( )
virtual

Retourne une liste des sous faces porteuses de sources cheminee ou bafflees

Reimplemented from TYAcousticVolume.

Definition at line 886 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ intersects()

int TYAcousticBox::intersects ( const OSegment3D seg,
TYTabPoint ptList 
) const
virtual

Calcule la liste des points d'intersection de ce volume avec le segment passe.

Parameters
segSegment dont on veut l'intersection.
ptListLes 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 TYVolumeInterface.

Definition at line 754 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ isInside()

int TYAcousticBox::isInside ( const TYPoint pt) const
virtual

Test si le point passe se trouve a l'interieur de ce volume.

Parameters
ptPoint dont on teste l'appartenance au volume.
Returns
INTERS_OUI (1) si le point est a l'interieur de ce volume, INTERS_CONFONDU (2) si les elements sont confondus, INTERS_NULLE (0) si le point est a l'exterieur de ce volume.

Reimplemented from TYAcousticVolume.

Definition at line 759 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ loadRegime()

void TYAcousticBox::loadRegime ( int  regimeNb = -1)
virtual

Chargement d'un regime (-1 = regime courant)

Reimplemented from TYAcousticInterface.

Definition at line 441 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ normals()

TYTabVector TYAcousticBox::normals ( ) const
virtual

Calcule les normales des surfaces composant ce volume.

Returns
Un tableau de vecteurs.

Reimplemented from TYAcousticVolume.

Definition at line 672 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ operator!=()

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

Operateur !=.

Definition at line 245 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ operator=()

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

Operateur =.

Definition at line 213 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ operator==()

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

Operateur ==.

Definition at line 231 of file TYAcousticBox.cpp.

Here is the caller graph for this function:

◆ propagateAtt()

void TYAcousticBox::propagateAtt ( LPTYAttenuateur  pAtt)
virtual

Propagation de l'attenuateur, contrairement a setAtt(), c'est une copie (deepCopy()) qui est faite ici. Cette methode peut etre surchargee pour propager un attenuateur a des sous-elements (notament des Volume vers les Surfaces).

Reimplemented from TYAcousticVolume.

Definition at line 507 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ remAllSrcs()

void TYAcousticBox::remAllSrcs ( )
virtual

Supprime toutes les sources d'un element

Reimplemented from TYAcousticVolume.

Definition at line 592 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ remRegime()

bool TYAcousticBox::remRegime ( int  regime)
virtual

Supprime le regime specifie.

Parameters
regimeL'indice du regime a supprimer.
Returns
true si le regime a correctement ete supprime; false sinon.

Reimplemented from TYAcousticInterface.

Definition at line 431 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ setCurRegime()

void TYAcousticBox::setCurRegime ( int  regimeNumber)
virtual

Set/Get du numero de regime de fonctionnement courant.

Reimplemented from TYAcousticInterface.

Definition at line 451 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ setDensiteSrcsH()

void TYAcousticBox::setDensiteSrcsH ( double  densite,
bool  recursif = true 
)
virtual

Set/Get de la densite horizontale de sources.

Reimplemented from TYAcousticInterface.

Definition at line 551 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ setDensiteSrcsV()

void TYAcousticBox::setDensiteSrcsV ( double  densite,
bool  recursif = true 
)
virtual

Set/Get de la densite verticale de sources.

Reimplemented from TYAcousticInterface.

Definition at line 564 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ setDimension()

void TYAcousticBox::setDimension ( float  larg,
float  lon,
float  haut 
)

Definit les faces de l'objet a partir de ses dimensions.

Parameters
largLa largeur de la boite.
lonLa longueur de la boite.
hautLa hauteur de la boite.

Definition at line 126 of file TYAcousticBox.cpp.

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

◆ setFace()

void TYAcousticBox::setFace ( const LPTYAcousticRectangleNode  pAccRect,
int  numFace 
)

Set/Get des faces en fonction de leur indice.

Definition at line 199 of file TYAcousticBox.cpp.

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

◆ setIsRayonnant()

void TYAcousticBox::setIsRayonnant ( bool  rayonnant = true,
bool  recursif = true 
)
virtual

Set/Get de l'etat rayonnant ou pas

Reimplemented from TYAcousticVolume.

Definition at line 910 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ setNextRegimeNb()

void TYAcousticBox::setNextRegimeNb ( const int &  next)
virtual

Get/Set du numero de regime suivant

Reimplemented from TYAcousticVolume.

Definition at line 483 of file TYAcousticBox.cpp.

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

◆ setRegime()

void TYAcousticBox::setRegime ( TYSpectre Spectre,
int  regime = -1,
bool  recursif = false 
)
virtual

Associe un spectre a un regime donne.

Parameters
SpectreLe spectre a associer.
regimeLe regime auquel on souhaite associe un spectre.
recursifPour que l'appel se fasse de maniere recursive.

Reimplemented from TYAcousticInterface.

Definition at line 398 of file TYAcousticBox.cpp.

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

◆ setRegimeName()

void TYAcousticBox::setRegimeName ( const QString &  name)
virtual

Get/Set du nom du regime

Reimplemented from TYAcousticVolume.

Definition at line 494 of file TYAcousticBox.cpp.

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

◆ setSrcsLw()

bool TYAcousticBox::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 TYAcousticVolume.

Definition at line 601 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ sommets()

TYTabPoint TYAcousticBox::sommets ( ) const
virtual

Retourne l'ensemble des sommets composant ce volume.

Returns
Un tableau de points.

Reimplemented from TYAcousticVolume.

Definition at line 691 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ srcPonctEquiv()

TYSourcePonctuelle TYAcousticBox::srcPonctEquiv ( ) const
virtual

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

Returns
La source ponctuelle equivalente.

Reimplemented from TYAcousticVolume.

Definition at line 546 of file TYAcousticBox.cpp.

◆ surface()

double TYAcousticBox::surface ( ) const
virtual

Calcule la surface totale de ce volume.

Returns
La surface totale.

Reimplemented from TYAcousticVolume.

Definition at line 625 of file TYAcousticBox.cpp.

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

◆ toString()

std::string TYAcousticBox::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 TYAcousticVolume.

Definition at line 268 of file TYAcousticBox.cpp.

Here is the caller graph for this function:

◆ toXML()

DOM_Element TYAcousticBox::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 TYAcousticVolume.

Definition at line 273 of file TYAcousticBox.cpp.

Here is the call graph for this function:

◆ updateAcoustic()

bool TYAcousticBox::updateAcoustic ( const bool &  force = false)
virtual

Mise a jour des parametres acoustiques du volume

Reimplemented from TYAcousticVolume.

Definition at line 764 of file TYAcousticBox.cpp.

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

◆ volEnglob()

TYBox TYAcousticBox::volEnglob ( ) const
virtual

Calcule la boite englobant ce volume.

Returns
La boite englobante.

Reimplemented from TYAcousticVolume.

Definition at line 737 of file TYAcousticBox.cpp.

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

◆ volume()

double TYAcousticBox::volume ( ) const
virtual

Calcule le volume total de ce volume.

Returns
Le volume total.

Reimplemented from TYAcousticVolume.

Definition at line 617 of file TYAcousticBox.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _faces

LPTYAcousticRectangleNodeGeoNode TYAcousticBox::_faces[6]
protected

Definition at line 156 of file TYAcousticBox.h.


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