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

#include <TYAcousticSurfaceNode.h>

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

Public Member Functions

 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 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 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 TYTabSourcePonctuelleGeoNode getSrcs () const
 
virtual TYSourcePonctuelle srcPonctEquiv () const
 
virtual void distriSrcs ()
 
virtual void remAllSrcs ()
 
virtual bool setSrcsLw ()
 
virtual bool updateAcoustic (const bool &force=false)
 
virtual void setIsRayonnant (bool rayonnant=true, bool recursif=true)
 
virtual double surface () const
 
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 TYSurfaceInterface *pSurf, OSegment3D &seg) const
 
virtual int intersects (const OSegment3D &seg, OPoint3D &pt) const
 
virtual int intersects (const OPoint3D &pt) const
 
virtual void setUseAtt (bool state)
 
virtual const OPlangetPlan () const
 
virtual double activeSurface ()
 
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)
 
virtual bool remAcousticSurf (const LPTYAcousticSurfaceGeoNode pAccSurfGeoNode)
 
virtual bool remAcousticSurf (const LPTYAcousticSurface pAccSurf)
 
virtual bool remAcousticSurf (QString idAccSurf)
 
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

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 OPrototype
 OPrototype ()
 

Detailed Description

Composee d'une ou plusieurs surfaces acoustiques..

Definition at line 39 of file TYAcousticSurfaceNode.h.

Constructor & Destructor Documentation

◆ TYAcousticSurfaceNode() [1/2]

TYAcousticSurfaceNode::TYAcousticSurfaceNode ( )

Constructeur.

Definition at line 25 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ TYAcousticSurfaceNode() [2/2]

TYAcousticSurfaceNode::TYAcousticSurfaceNode ( const TYAcousticSurfaceNode other)

Constructeur par copie.

Definition at line 33 of file TYAcousticSurfaceNode.cpp.

◆ ~TYAcousticSurfaceNode()

TYAcousticSurfaceNode::~TYAcousticSurfaceNode ( )
virtual

Destructeur.

Definition at line 38 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ activeSurface() [1/2]

double TYAcousticSurfaceNode::activeSurface ( ) const
virtual

Definition at line 759 of file TYAcousticSurfaceNode.cpp.

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

◆ activeSurface() [2/2]

double TYAcousticSurfaceNode::activeSurface ( )
virtual

retourne la surface (en m²) rayonnante

Reimplemented in TYAcousticRectangleNode.

Definition at line 742 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ addAcousticSurf() [1/3]

bool TYAcousticSurfaceNode::addAcousticSurf ( LPTYAcousticSurfaceGeoNode  pAccSurfGeoNode)

Ajout d'un AcousticSurfacepAccSurfGeoNode au tableau des AcousticSurfaces.

Parameters
pAccSurfGeoNodeElement a ajouter.
Returns
true si l'element a ete correctement ajoute; false sinon.

Definition at line 517 of file TYAcousticSurfaceNode.cpp.

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

◆ addAcousticSurf() [2/3]

bool TYAcousticSurfaceNode::addAcousticSurf ( LPTYAcousticSurface  pAccSurf,
const TYRepere repere 
)

Ajout d'un AcousticSurface au tableau des AcousticSurfaces.

Parameters
pAccSurfElement a ajouter.
repereRepere a associer a l'element.
Returns
true si l'element a ete correctement ajoute; false sinon.

Definition at line 605 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ addAcousticSurf() [3/3]

bool TYAcousticSurfaceNode::addAcousticSurf ( LPTYAcousticSurface  pAccSurf)

Ajout d'un AcousticSurface au tableau des AcousticSurfaces.

Parameters
pAccSurfElement a ajouter.
Returns
true si l'element a ete correctement ajoute; false sinon.

Definition at line 612 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ addRegime()

int TYAcousticSurfaceNode::addRegime ( )
virtual

Ajout d'un regime dans le tableau des regimes

Reimplemented from TYAcousticInterface.

Definition at line 326 of file TYAcousticSurfaceNode.cpp.

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

◆ correctNbRegimes()

void TYAcousticSurfaceNode::correctNbRegimes ( )
virtual

Correction "ad hoc" du bug de nombre de regime pour les sources machines et bâtiments Supprime les regimes excedentaires Necessaire uniquement pour les anciennes versions de fichiers XML (retrocompatibilite)

Definition at line 338 of file TYAcousticSurfaceNode.cpp.

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

◆ deepCopy()

bool TYAcousticSurfaceNode::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 TYElement.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 74 of file TYAcousticSurfaceNode.cpp.

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

◆ distriSrcs()

void TYAcousticSurfaceNode::distriSrcs ( )
virtual

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

Implements TYAcousticInterface.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 383 of file TYAcousticSurfaceNode.cpp.

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

◆ exportCSV()

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

Export au format csv sur un flux transmis.

Reimplemented from TYAcousticInterface.

Definition at line 793 of file TYAcousticSurfaceNode.cpp.

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

◆ findAcousticSurf()

LPTYAcousticSurfaceGeoNode TYAcousticSurfaceNode::findAcousticSurf ( const LPTYAcousticSurface  pAccSurf)

Retrouve le GeoNode associe a une acoustic surface.

Parameters
pAccSurfL'element a chercher.
Returns
Le GeoNode associe a l'element a chercher si trouve sinon NULL.

Definition at line 688 of file TYAcousticSurfaceNode.cpp.

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

◆ fromXML()

int TYAcousticSurfaceNode::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 TYElement.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 123 of file TYAcousticSurfaceNode.cpp.

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

◆ getAcousticSurf()

LPTYAcousticSurface TYAcousticSurfaceNode::getAcousticSurf ( int  index)

Retourne une surface acoustique en fonction de son indice dans le tableau.

Parameters
indexIndice dans le tableau.
Returns
Un surface acoustique ou NULL si l'index n'est pas valide.

Definition at line 679 of file TYAcousticSurfaceNode.cpp.

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

◆ getBoundingRect() [1/2]

LPTYRectangle TYAcousticSurfaceNode::getBoundingRect ( )
inline

Set/Get du rectangle englobant.

Definition at line 151 of file TYAcousticSurfaceNode.h.

Here is the caller graph for this function:

◆ getBoundingRect() [2/2]

const LPTYRectangle TYAcousticSurfaceNode::getBoundingRect ( ) const
inline

Set/Get du rectangle englobant.

Definition at line 155 of file TYAcousticSurfaceNode.h.

Here is the call graph for this function:

◆ getChilds()

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

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

Reimplemented from TYElement.

Definition at line 171 of file TYAcousticSurfaceNode.cpp.

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

◆ getContour()

TYTabPoint TYAcousticSurfaceNode::getContour ( int  n = -1) const
virtual

Retourne un tableau de points correspondant au contour de cette surface.

Parameters
nLe nombre de portion pour le decoupage. Si n=-1, n sera calcule a partir de la precision de distance definie par defaut. Pour certaine surface, le nombre de portion demande ne sera pas forcement le nombre de points obtenus.
Returns
Un tableau de points representant le contour de cette surface.

Implements TYSurfaceInterface.

Definition at line 486 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ getNbChild()

size_t TYAcousticSurfaceNode::getNbChild ( ) const
inline

Set/Get du ombre de AcousticSurfaces associes.

Definition at line 133 of file TYAcousticSurfaceNode.h.

Here is the caller graph for this function:

◆ getOContour()

TYTabPoint3D TYAcousticSurfaceNode::getOContour ( int  n = -1) const
virtual

Implements TYSurfaceInterface.

Definition at line 491 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ getPlan()

virtual const OPlan& TYAcousticSurfaceNode::getPlan ( ) const
inlinevirtual

retourne le plan associe a cette surface

Definition at line 117 of file TYAcousticSurfaceNode.h.

Here is the call graph for this function:

◆ getSrcs()

TYTabSourcePonctuelleGeoNode TYAcousticSurfaceNode::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.

Implements TYAcousticInterface.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 190 of file TYAcousticSurfaceNode.cpp.

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

◆ getTabAcousticSurf() [1/2]

TYTabAcousticSurfaceGeoNode& TYAcousticSurfaceNode::getTabAcousticSurf ( )
inline

Set/Get du tableau des AcousticSurfaces.

Definition at line 138 of file TYAcousticSurfaceNode.h.

Here is the caller graph for this function:

◆ getTabAcousticSurf() [2/2]

const TYTabAcousticSurfaceGeoNode& TYAcousticSurfaceNode::getTabAcousticSurf ( ) const
inline

Set/Get du tableau des AcousticSurfaces.

Definition at line 142 of file TYAcousticSurfaceNode.h.

◆ intersects() [1/3]

int TYAcousticSurfaceNode::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 TYSurfaceInterface.

Reimplemented in TYMur.

Definition at line 496 of file TYAcousticSurfaceNode.cpp.

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

◆ intersects() [2/3]

int TYAcousticSurfaceNode::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.

Implements TYSurfaceInterface.

Reimplemented in TYMur.

Definition at line 501 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ intersects() [3/3]

int TYAcousticSurfaceNode::intersects ( const OPoint3D pt) const
virtual

Test si le point se trouve a l'interieur de la surface, sur le meme plan.

Parameters
ptLe point pour lequel on effectue le test.
Returns
INTERS_OUI (1) si le point est a l'interieur de la surface, INTERS_NULLE (0) si le point est a l'exterieur de la surface.

Implements TYSurfaceInterface.

Definition at line 506 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ loadRegime()

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

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

Reimplemented from TYAcousticInterface.

Definition at line 288 of file TYAcousticSurfaceNode.cpp.

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

◆ normal()

OVector3D TYAcousticSurfaceNode::normal ( ) const
virtual

Calcule la normale a cette surface.

Implements TYSurfaceInterface.

Definition at line 476 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ operator!=()

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

Operateur !=.

Definition at line 69 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ operator=()

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

Operateur =.

Definition at line 43 of file TYAcousticSurfaceNode.cpp.

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

◆ operator==()

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

Operateur ==.

Definition at line 56 of file TYAcousticSurfaceNode.cpp.

Here is the caller graph for this function:

◆ plan()

OPlan TYAcousticSurfaceNode::plan ( ) const
virtual

Calcule le plan dans lequel cette surface est inscrit.

Implements TYSurfaceInterface.

Definition at line 481 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ propagateAtt()

void TYAcousticSurfaceNode::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 TYAcousticInterface.

Definition at line 358 of file TYAcousticSurfaceNode.cpp.

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

◆ purge()

void TYAcousticSurfaceNode::purge ( )

Appelle le destructeur de chaque element contenus dans le tableau d'acoustic surface, et vide celui-ci.

Definition at line 511 of file TYAcousticSurfaceNode.cpp.

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

◆ remAcousticSurf() [1/3]

bool TYAcousticSurfaceNode::remAcousticSurf ( const LPTYAcousticSurfaceGeoNode  pAccSurfGeoNode)
virtual

Suppression d'un AcousticSurfaceGeoNode au tableau des AcousticSurfaces.

Parameters
pAccSurfGeoNodeElement a supprimer.
Returns
true si l'element a ete trouve et supprime; false sinon.

Reimplemented in TYAcousticRectangleNode.

Definition at line 638 of file TYAcousticSurfaceNode.cpp.

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

◆ remAcousticSurf() [2/3]

bool TYAcousticSurfaceNode::remAcousticSurf ( const LPTYAcousticSurface  pAccSurf)
virtual

Suppression d'un AcousticSurface au tableau des AcousticSurfaces.

Parameters
pAccSurfElement a supprimer.
Returns
true si l'element a ete trouve et supprime; false sinon.

Reimplemented in TYAcousticRectangleNode.

Definition at line 617 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ remAcousticSurf() [3/3]

bool TYAcousticSurfaceNode::remAcousticSurf ( QString  idAccSurf)
virtual

Suppression d'un AcousticSurface au tableau des AcousticSurfaces a partir de son identifiant.

Parameters
idAccSurfIdentifiant de l'element a supprimer.
Returns
true si l'element a ete trouve et supprime; false sinon.

Reimplemented in TYAcousticRectangleNode.

Definition at line 659 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ remAllSrcs()

void TYAcousticSurfaceNode::remAllSrcs ( )
virtual

Supprime toutes les sources d'un element

Implements TYAcousticInterface.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 779 of file TYAcousticSurfaceNode.cpp.

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

◆ remRegime()

bool TYAcousticSurfaceNode::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 276 of file TYAcousticSurfaceNode.cpp.

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

◆ setCurRegime()

void TYAcousticSurfaceNode::setCurRegime ( int  regimeNumber)
virtual

Set/Get du numero de regime de fonctionnement courant.

Reimplemented from TYAcousticInterface.

Definition at line 300 of file TYAcousticSurfaceNode.cpp.

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

◆ setDensiteSrcsH()

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

Set/Get de la densite horizontale de sources.

Reimplemented from TYAcousticInterface.

Definition at line 224 of file TYAcousticSurfaceNode.cpp.

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

◆ setDensiteSrcsV()

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

Set/Get de la densite verticale de sources.

Reimplemented from TYAcousticInterface.

Definition at line 242 of file TYAcousticSurfaceNode.cpp.

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

◆ setGlobalLW()

TYSpectre TYAcousticSurfaceNode::setGlobalLW ( const TYSpectre spectre,
const double &  surfGlobale,
const int &  regime = -1 
)
virtual

Attribue la puissance au pro rata de la surface de l'element

Reimplemented from TYAcousticInterface.

Definition at line 704 of file TYAcousticSurfaceNode.cpp.

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

◆ setIsAcousticModified()

void TYAcousticSurfaceNode::setIsAcousticModified ( bool  isModified)
virtual

Set/Get de l'indicateur de modification acoustique.

Reimplemented from TYElement.

Definition at line 164 of file TYAcousticSurfaceNode.cpp.

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

◆ setIsRayonnant()

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

Set/Get de l'etat rayonnant ou pas

Reimplemented from TYAcousticInterface.

Definition at line 718 of file TYAcousticSurfaceNode.cpp.

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

◆ setNextRegimeNb()

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

Get/Set du numero de regime suivant

Reimplemented from TYAcousticInterface.

Definition at line 581 of file TYAcousticSurfaceNode.cpp.

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

◆ setRegime()

void TYAcousticSurfaceNode::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 260 of file TYAcousticSurfaceNode.cpp.

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

◆ setRegimeName()

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

Get/Set du nom du regime

Reimplemented from TYAcousticInterface.

Definition at line 593 of file TYAcousticSurfaceNode.cpp.

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

◆ setSrcsLw()

bool TYAcousticSurfaceNode::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.

Implements TYAcousticInterface.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 395 of file TYAcousticSurfaceNode.cpp.

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

◆ setTabAcousticSurf()

void TYAcousticSurfaceNode::setTabAcousticSurf ( const TYTabAcousticSurfaceGeoNode tab)
inline

Set/Get du tableau des AcousticSurfaces.

Definition at line 146 of file TYAcousticSurfaceNode.h.

◆ setUseAtt()

void TYAcousticSurfaceNode::setUseAtt ( bool  state)
virtual

Set/Get du test d'utilisation d'un attenuateur.

Reimplemented from TYAcousticInterface.

Definition at line 371 of file TYAcousticSurfaceNode.cpp.

Here is the call graph for this function:

◆ srcPonctEquiv()

TYSourcePonctuelle TYAcousticSurfaceNode::srcPonctEquiv ( ) const
virtual

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

Returns
La source ponctuelle equivalente.

Implements TYAcousticInterface.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 219 of file TYAcousticSurfaceNode.cpp.

◆ surface()

double TYAcousticSurfaceNode::surface ( ) const
virtual

Calcule l'aire de la surface totale.

Implements TYSurfaceInterface.

Reimplemented in TYMur.

Definition at line 469 of file TYAcousticSurfaceNode.cpp.

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

◆ toString()

std::string TYAcousticSurfaceNode::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 TYElement.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 100 of file TYAcousticSurfaceNode.cpp.

Here is the caller graph for this function:

◆ toXML()

DOM_Element TYAcousticSurfaceNode::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 TYElement.

Reimplemented in TYMur, and TYAcousticRectangleNode.

Definition at line 105 of file TYAcousticSurfaceNode.cpp.

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

◆ updateAcoustic()

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

Execute les calculs acoustiques afin que l'element metier soit a jour.

Implements TYAcousticInterface.

Definition at line 412 of file TYAcousticSurfaceNode.cpp.

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

Member Data Documentation

◆ _pBoundingRect

LPTYRectangle TYAcousticSurfaceNode::_pBoundingRect
protected

Rectangle englobant.

Definition at line 262 of file TYAcousticSurfaceNode.h.

◆ _tabAcousticSurf

TYTabAcousticSurfaceGeoNode TYAcousticSurfaceNode::_tabAcousticSurf
protected

Tableau des AcousticSurfaces.

Definition at line 259 of file TYAcousticSurfaceNode.h.


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