Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
TYSiteNode Class Reference

#include <TYSiteNode.h>

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

Public Member Functions

bool readMesh (std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, std::deque< LPTYSol > &materials, const QString &meshFilePath)
 
virtual void updateAltiInfra ()
 
virtual void updateAcoustique (const bool &force=false)
 
void update (const bool &force=false)
 
bool update (TYElement *pElem)
 
double getDelaunay ()
 
void getListFaces (TYTabAcousticSurfaceGeoNode &tabFaces, unsigned int &nbFaceInfra, std::vector< bool > &EstUnIndexDeFaceEcran) const
 
void getListFacesWithoutFloor (TYTabAcousticSurfaceGeoNode &tabFaces, unsigned int &nbFaceInfra, std::vector< bool > &EstUnIndexDeFaceEcran, std::vector< std::pair< int, int >> &indices, std::vector< int > &etages) const
 
void getFacesOnGround (std::map< TYUUID, std::deque< TYTabPoint3D >> &contours) const
 
void groundBasedFaces (const TYTabAcousticVolumeGeoNode &volumes, const OMatrix &global_matrix, std::map< TYUUID, std::deque< TYTabPoint3D >> &contours) const
 
int getSIGType ()
 Get/Set du choix du systeme de repere du SIG. More...
 
const int getSIGType () const
 
void setSIGType (int SIGType)
 
double getSIG_X ()
 Get/Set des coordonnees dans le repere du SIG. More...
 
const double getSIG_X () const
 
void setSIG_X (const double &SIG_X)
 
double getSIG_Y ()
 
const double getSIG_Y () const
 
void setSIG_Y (const double &SIG_Y)
 
double getSIG_OFFSET ()
 
const double getSIG_OFFSET () const
 
void setSIG_OFFSET (const double &SIG_OFFSET)
 
virtual void exportCSV (std::ofstream &ofs)
 Export au format csv sur un flux transmis. More...
 
LPTYAltimetrie getAltimetry () const
 
OMatrix getGlobalMatrix () const
 
- 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 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
 
virtual void setIsAcousticModified (bool isModified)
 
bool getIsAcousticModified ()
 
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 ()
 
void * getAllUses ()
 
void setAllUses (void *allUses)
 
void cleanAllUses ()
 
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
 

Protected Member Functions

virtual void do_updateAltimetrie (QString resultMeshFilePath)
 
void appendSite (LPTYSiteNode pSiteFrom, const OMatrix &matrix, LPTYSiteNode pSiteTo)
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Protected Attributes

LPTYProjet _pProjet
 Projet auquel appartient (eventuellement) le site. More...
 
bool _bEmpriseAsCrbNiv
 Utilisation de l'emprise comme courbe de niveau. More...
 
double _altiEmprise
 Altitude associee a l'emprise (s'il y a lieu) More...
 
LPTYTopographie _pTopographie
 Topographie. More...
 
LPTYInfrastructure _pInfrastructure
 Infrastructure. More...
 
bool _useTopoFile
 Flag d'utilisation d'une image de fond. More...
 
QString _topoFileName
 Nom du fichier de topographie (image de fond) More...
 
QString _meshFilePath
 Chemin vers le fichier PLY d'altimétrie. More...
 
QString _topoFile
 Nom du fichier de topographie temporaire. More...
 
QString _topoFileExtension
 Extension du fichier de topographie. More...
 
float _echelle
 Echelle du site. More...
 
TYSegment _orientation
 Orientation du Nord. More...
 
TYPoint _position
 Position. More...
 
unsigned int _nbFaceInfra
 Nombre de faces de l'infrastructure (machines, bâtiments, etc ...) More...
 
unsigned int _nbFaces
 
bool _root
 Test si site racine. More...
 
systemSIG _SIGType
 Coordonnees SIG. More...
 
double _SIG_X
 
double _SIG_Y
 
double _SIG_OFFSET
 
TYTabSiteNodeGeoNode _listSiteNode
 Liste des sites. More...
 
bool _isTopoFileModified
 Flag de modification de l'image de fond. 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...
 
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...
 

Private Member Functions

 TYSiteNode ()
 
 TYSiteNode (const TYSiteNode &other)
 
virtual ~TYSiteNode ()
 
virtual TYSiteNodeoperator= (const TYSiteNode &other)
 Operateur =. More...
 
virtual bool operator== (const TYSiteNode &other) const
 Operateur ==. More...
 
virtual bool operator!= (const TYSiteNode &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 setIsGeometryModified (bool isModified)
 
void purge ()
 
TYProjetgetProjet ()
 Accesseurs. More...
 
const TYProjetgetProjet () const
 
void setProjet (const LPTYProjet pProjet)
 
bool getUseEmpriseAsCrbNiv () const
 
void setUseEmpriseAsCrbNiv (bool b)
 
void setAltiEmprise (const double &altiEmprise)
 Get/Set de l'altitude associee a la courbe de niveau. More...
 
const double getAltiEmprise () const
 
LPTYTopographie getTopographie ()
 
const LPTYTopographie getTopographie () const
 
void setTopographie (const LPTYTopographie pTopo)
 
LPTYInfrastructure getInfrastructure ()
 
const LPTYInfrastructure getInfrastructure () const
 
void setInfrastructure (const LPTYInfrastructure &pInfra)
 
bool getUseTopoFile () const
 
void setUseTopoFile (bool flag)
 
QString getTopoFile () const
 
void setTopoFile (const QString &fileName)
 
QString getTopoFileExtension () const
 
void setTopoFileExtension (const QString &ext)
 
QString getTopoFileName () const
 
void setTopoFileName (const QString &name)
 
void loadTopoFile (const QString &fileName)
 
void loadTopoFile ()
 
const QString & getMeshFilePath ()
 
void setMeshFilePath (const QString &path)
 
float getEchelle () const
 
void setEchelle (float e)
 
TYSegment getOrientation () const
 
void setOrientation (TYSegment seg)
 
TYPoint getPosition () const
 
bool getRoot () const
 
void setRoot (bool b)
 
void setPosition (TYPoint pt)
 
TYTabSiteNodeGeoNodegetListSiteNode ()
 
const TYTabSiteNodeGeoNodegetListSiteNode () const
 
void setEmprise (TYTabPoint points)
 
bool addSiteNode (LPTYSiteNodeGeoNode pSiteNodeGeoNode)
 
bool addSiteNode (LPTYSiteNode pSiteNode)
 
bool remSiteNode (const LPTYSiteNodeGeoNode pSiteNodeGeoNode)
 
bool remSiteNode (const LPTYSiteNode pSiteNode)
 
bool remSiteNode (QString idSiteNode)
 
LPTYSiteNodeGeoNode findSiteNode (const LPTYSiteNode pSiteNode)
 
void setListSiteNode (const TYTabSiteNodeGeoNode &list)
 
virtual void setChildsNotInCurrentCalcul ()
 
TYTabSiteNodeGeoNode collectSites (bool include=true) const
 
LPTYSiteNode merge ()
 
virtual void reparent ()
 
virtual void updateCurrentCalcul (TYListID &listID, bool recursif=true)
 
virtual bool addToCalcul ()
 
virtual bool remFromCalcul ()
 
virtual bool updateAltimetrie (QString resultMeshFilePath)
 
void uuid2tysol (const std::deque< std::string > &material_ids, std::deque< LPTYSol > &materials)
 

Static Private Member Functions

static const QString & getTopoFilePath ()
 
static void setTopoFilePath (const QString &path)
 

Static Private Attributes

static QString _topoFilePath = ""
 Chemin du dossier image temporaire. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from TYElement
static LPTYElementArray findTypeCollectionAndCallFromXML (DOM_Element parentElem, const char *type)
 
static void setLogInstances (bool log)
 
static bool getLogInstances ()
 
static 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

Definition at line 42 of file TYSiteNode.h.

Constructor & Destructor Documentation

◆ TYSiteNode() [1/2]

TYSiteNode::TYSiteNode ( )
private

Constructeur.

Definition at line 71 of file TYSiteNode.cpp.

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

◆ TYSiteNode() [2/2]

TYSiteNode::TYSiteNode ( const TYSiteNode other)
private

Constructeur par copie.

Definition at line 92 of file TYSiteNode.cpp.

◆ ~TYSiteNode()

TYSiteNode::~TYSiteNode ( )
privatevirtual

Destructeur.

Definition at line 97 of file TYSiteNode.cpp.

Member Function Documentation

◆ addSiteNode() [1/2]

bool TYSiteNode::addSiteNode ( LPTYSiteNode  pSiteNode)
private

Ajoute un site a la liste des sites.

Parameters
pSiteNodeElement a ajouter.

Definition at line 1660 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ addSiteNode() [2/2]

bool TYSiteNode::addSiteNode ( LPTYSiteNodeGeoNode  pSiteNodeGeoNode)
private

Ajoute un site a la liste des sites.

Parameters
pSiteNodeGeoNodeElement a ajouter.

Definition at line 1638 of file TYSiteNode.cpp.

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

◆ addToCalcul()

bool TYSiteNode::addToCalcul ( )
privatevirtual

Ajoute les elements du site au calcul

Definition at line 508 of file TYSiteNode.cpp.

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

◆ appendSite()

void TYSiteNode::appendSite ( LPTYSiteNode  pSiteFrom,
const OMatrix matrix,
LPTYSiteNode  pSiteTo 
)
protected

Methode interne utilisee par 'merge()' pour recopier les composants d'un site vers un autre en appliquant le changement de repere defini par la matrice passee.

Parameters
pSiteFromSite a ajouter.
matrixChangement de repere a effectuer avant l'ajout.
pSiteToSite auquel on ajoute le 1er site.

Definition at line 1802 of file TYSiteNode.cpp.

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

◆ collectSites()

TYTabSiteNodeGeoNode TYSiteNode::collectSites ( bool  include = true) const
private

Collecte l'ensemble des sites de ce site. Ce site peut etre inclu et l'appel peut etre recursif.

Parameters
includePour inclure ce site.
Returns
Une collection de site remplie avec les bons changements de repere.

Definition at line 1540 of file TYSiteNode.cpp.

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

◆ deepCopy()

bool TYSiteNode::deepCopy ( const TYElement pOther,
bool  copyId = true,
bool  pUseCopyTag = false 
)
privatevirtual

Fonction de copie recursive (virtuelle)

Parameters
pOtherdestination de la copy
copyIdvrai par defaut
pUseCopyTagfaux par defaut

Reimplemented from TYElement.

Definition at line 223 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ do_updateAltimetrie()

void TYSiteNode::do_updateAltimetrie ( QString  resultMeshFilePath)
protectedvirtual

Mise a jour de l'altimetrie. Dans TYSite, cette methode appelle essentiellement 'computeAltimetrie' de TYTopographie, mais elle peut etre surchargee pour des besoins specifiques lors du calcul de l'altimetrie.

Parameters
resultMeshFilePathChemin vers lequel écrire le fichier mesh résultat

Definition at line 643 of file TYSiteNode.cpp.

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

◆ exportCSV()

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

Export au format csv sur un flux transmis.

Definition at line 1893 of file TYSiteNode.cpp.

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

◆ findSiteNode()

LPTYSiteNodeGeoNode TYSiteNode::findSiteNode ( const LPTYSiteNode  pSiteNode)
private

Retrouve le GeoNode associe a un site node.

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

Definition at line 1745 of file TYSiteNode.cpp.

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

◆ fromXML()

int TYSiteNode::fromXML ( DOM_Element  domElement)
privatevirtual

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.

Definition at line 324 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getAltiEmprise()

const double TYSiteNode::getAltiEmprise ( ) const
inlineprivate

Definition at line 141 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getAltimetry()

LPTYAltimetrie TYSiteNode::getAltimetry ( ) const

Definition at line 1255 of file TYSiteNode.cpp.

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

◆ getChilds()

void TYSiteNode::getChilds ( LPTYElementArray childs,
bool  recursif = true 
)
privatevirtual

getter pour enfant

Parameters
childsliste des resultats
recursifmode recursif (vrai apr defaut)

Reimplemented from TYElement.

Definition at line 470 of file TYSiteNode.cpp.

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

◆ getDelaunay()

double TYSiteNode::getDelaunay ( )

Collecte l'ensemble des points necessaires a la generation de l'altimetrie pour les site imbriques. Get du parametre de triangulation de Delaunay

Definition at line 1026 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getEchelle()

float TYSiteNode::getEchelle ( ) const
inlineprivate

Set/Get de l'echelle.

Definition at line 281 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getFacesOnGround()

void TYSiteNode::getFacesOnGround ( std::map< TYUUID, std::deque< TYTabPoint3D >> &  contours) const

brief : Attempt to find the faces placed on the ground among the machines and the buildings of the site TYUUID: volume node id (volume nodes are buildings or machines) deque<TYTabPoint3D>: series of points defining the contour of the face of the volumes that are on the ground in a global scale

Definition at line 1344 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getGlobalMatrix()

OMatrix TYSiteNode::getGlobalMatrix ( ) const

Definition at line 1269 of file TYSiteNode.cpp.

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

◆ getInfrastructure() [1/2]

LPTYInfrastructure TYSiteNode::getInfrastructure ( )
inlineprivate

Set/Get de l'ensemble des infrastructures.

Definition at line 174 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getInfrastructure() [2/2]

const LPTYInfrastructure TYSiteNode::getInfrastructure ( ) const
inlineprivate

Set/Get de l'ensemble des infrastructures.

Definition at line 181 of file TYSiteNode.h.

◆ getListFaces()

void TYSiteNode::getListFaces ( TYTabAcousticSurfaceGeoNode tabFaces,
unsigned int &  nbFaceInfra,
std::vector< bool > &  EstUnIndexDeFaceEcran 
) const

Cree la liste des faces des elements du site.

Definition at line 1417 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getListFacesWithoutFloor()

void TYSiteNode::getListFacesWithoutFloor ( TYTabAcousticSurfaceGeoNode tabFaces,
unsigned int &  nbFaceInfra,
std::vector< bool > &  EstUnIndexDeFaceEcran,
std::vector< std::pair< int, int >> &  indices,
std::vector< int > &  etages 
) const

Definition at line 1056 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getListSiteNode() [1/2]

TYTabSiteNodeGeoNode& TYSiteNode::getListSiteNode ( )
inlineprivate

Set/Get de la liste des sites.

Definition at line 346 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getListSiteNode() [2/2]

const TYTabSiteNodeGeoNode& TYSiteNode::getListSiteNode ( ) const
inlineprivate

Set/Get de la liste des sites.

Definition at line 354 of file TYSiteNode.h.

◆ getMeshFilePath()

const QString & TYSiteNode::getMeshFilePath ( )
private

Set/Get du chemin vers le fichier PLY d'altimétrie

Definition at line 59 of file TYSiteNode.cpp.

◆ getOrientation()

TYSegment TYSiteNode::getOrientation ( ) const
inlineprivate

Set/Get de l'orientation.

Definition at line 297 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getPosition()

TYPoint TYSiteNode::getPosition ( ) const
inlineprivate

Set/Get de la position.

Definition at line 313 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getProjet() [1/2]

TYProjet* TYSiteNode::getProjet ( )
inlineprivate

Accesseurs.

Get/Set du projet parent

Definition at line 106 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getProjet() [2/2]

const TYProjet* TYSiteNode::getProjet ( ) const
inlineprivate

Definition at line 110 of file TYSiteNode.h.

◆ getRoot()

bool TYSiteNode::getRoot ( ) const
inlineprivate

Set/Get du test de site racine.

Definition at line 321 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIG_OFFSET() [1/2]

double TYSiteNode::getSIG_OFFSET ( )
inline

Definition at line 609 of file TYSiteNode.h.

◆ getSIG_OFFSET() [2/2]

const double TYSiteNode::getSIG_OFFSET ( ) const
inline

Definition at line 613 of file TYSiteNode.h.

◆ getSIG_X() [1/2]

double TYSiteNode::getSIG_X ( )
inline

Get/Set des coordonnees dans le repere du SIG.

Definition at line 583 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIG_X() [2/2]

const double TYSiteNode::getSIG_X ( ) const
inline

Definition at line 587 of file TYSiteNode.h.

◆ getSIG_Y() [1/2]

double TYSiteNode::getSIG_Y ( )
inline

Definition at line 596 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIG_Y() [2/2]

const double TYSiteNode::getSIG_Y ( ) const
inline

Definition at line 600 of file TYSiteNode.h.

◆ getSIGType() [1/2]

int TYSiteNode::getSIGType ( )
inline

Get/Set du choix du systeme de repere du SIG.

Definition at line 569 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIGType() [2/2]

const int TYSiteNode::getSIGType ( ) const
inline

Definition at line 573 of file TYSiteNode.h.

◆ getTopoFile()

QString TYSiteNode::getTopoFile ( ) const
inlineprivate

Set/Get du fichier de topographie temporaire.

Definition at line 213 of file TYSiteNode.h.

◆ getTopoFileExtension()

QString TYSiteNode::getTopoFileExtension ( ) const
inlineprivate

Set/Get de l'extension du fichier de topographie.

Definition at line 227 of file TYSiteNode.h.

◆ getTopoFileName()

QString TYSiteNode::getTopoFileName ( ) const
inlineprivate

Set/Get du nom du fichier de topographie.

Definition at line 241 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getTopoFilePath()

const QString & TYSiteNode::getTopoFilePath ( )
staticprivate

Set/Get du chemin du fichier image temporaire.

Definition at line 49 of file TYSiteNode.cpp.

Here is the caller graph for this function:

◆ getTopographie() [1/2]

LPTYTopographie TYSiteNode::getTopographie ( )
inlineprivate

Set/Get de la topographie.

Definition at line 149 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getTopographie() [2/2]

const LPTYTopographie TYSiteNode::getTopographie ( ) const
inlineprivate

Set/Get de la topographie.

Definition at line 156 of file TYSiteNode.h.

◆ getUseEmpriseAsCrbNiv()

bool TYSiteNode::getUseEmpriseAsCrbNiv ( ) const
inlineprivate

Set/Get de la prise en compte de l'emprise comme courbe de niveau.

Definition at line 123 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getUseTopoFile()

bool TYSiteNode::getUseTopoFile ( ) const
inlineprivate

Set/Get du flag d'utilisation d'une image de fond.

Definition at line 198 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ groundBasedFaces()

void TYSiteNode::groundBasedFaces ( const TYTabAcousticVolumeGeoNode volumes,
const OMatrix global_matrix,
std::map< TYUUID, std::deque< TYTabPoint3D >> &  contours 
) const

brief: from a series of acoustic volumes (forming an acoustic volume node) and a transform matrix allowing to convert them to a global scale, return the points constituting the acoustic surface placed on the ground

Definition at line 1298 of file TYSiteNode.cpp.

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

◆ loadTopoFile() [1/2]

void TYSiteNode::loadTopoFile ( )
private

Definition at line 583 of file TYSiteNode.cpp.

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

◆ loadTopoFile() [2/2]

void TYSiteNode::loadTopoFile ( const QString &  fileName)
private

Mise a jour du tableau des pixels de l'image de fond a partir d'un fichier.

Parameters
fileNameLe nom du fichier contenant l'image.

Definition at line 577 of file TYSiteNode.cpp.

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

◆ merge()

LPTYSiteNode TYSiteNode::merge ( )
private

Merge : construit un nouveau site compose de tous les elements de ce site et des sites enfants/imbriques en tenant compte des changements de repere pour chacun d'eux. Attention : une fois les sites merges le parent des composants dans le site merge sera le site merge lui-meme, il peut donc etre necessaire d'appeler la methode 'reparent()' pour utiliser les sites imbriques convenablement.

Returns
Un nouveau site equivalent aux sites imbriques "mis a plat".
See also
reparent()

Definition at line 1761 of file TYSiteNode.cpp.

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

◆ operator!=()

bool TYSiteNode::operator!= ( const TYSiteNode other) const
privatevirtual

Operateur !=.

Definition at line 218 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ operator=()

TYSiteNode & TYSiteNode::operator= ( const TYSiteNode other)
privatevirtual

Operateur =.

Definition at line 102 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ operator==()

bool TYSiteNode::operator== ( const TYSiteNode other) const
privatevirtual

Operateur ==.

Definition at line 130 of file TYSiteNode.cpp.

Here is the caller graph for this function:

◆ purge()

void TYSiteNode::purge ( )
inlineprivate

Vide toutes les listes d'elements composants cet objet.

Definition at line 97 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ readMesh()

bool TYSiteNode::readMesh ( std::deque< OPoint3D > &  points,
std::deque< OTriangle > &  triangles,
std::deque< LPTYSol > &  materials,
const QString &  meshFilePath 
)

Definition at line 731 of file TYSiteNode.cpp.

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

◆ remFromCalcul()

bool TYSiteNode::remFromCalcul ( )
privatevirtual

Supprime tous les éléments d'un site du calcul

Definition at line 524 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ remSiteNode() [1/3]

bool TYSiteNode::remSiteNode ( const LPTYSiteNode  pSiteNode)
private

Supprime une entree a la liste des site nodes.

Definition at line 1692 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ remSiteNode() [2/3]

bool TYSiteNode::remSiteNode ( const LPTYSiteNodeGeoNode  pSiteNodeGeoNode)
private

Supprime une entree a la liste des site nodes.

Definition at line 1665 of file TYSiteNode.cpp.

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

◆ remSiteNode() [3/3]

bool TYSiteNode::remSiteNode ( QString  idSiteNode)
private

Supprime une entree a la liste des site nodes a partir de son identifiant.

Definition at line 1719 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ reparent()

void TYSiteNode::reparent ( )
privatevirtual

Reattribut le bon parent aux composants de facon recursive.

See also
merge()

Definition at line 566 of file TYSiteNode.cpp.

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

◆ setAltiEmprise()

void TYSiteNode::setAltiEmprise ( const double &  altiEmprise)
inlineprivate

Get/Set de l'altitude associee a la courbe de niveau.

Definition at line 136 of file TYSiteNode.h.

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

◆ setChildsNotInCurrentCalcul()

void TYSiteNode::setChildsNotInCurrentCalcul ( )
privatevirtual

Initialise l'état "isInCurrentCalcul" des enfants d'un projet

Definition at line 1528 of file TYSiteNode.cpp.

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

◆ setEchelle()

void TYSiteNode::setEchelle ( float  e)
inlineprivate

Set/Get de l'echelle.

Definition at line 288 of file TYSiteNode.h.

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

◆ setEmprise()

void TYSiteNode::setEmprise ( TYTabPoint  points)
inlineprivate

Set de l'emprise

Definition at line 362 of file TYSiteNode.h.

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

◆ setInfrastructure()

void TYSiteNode::setInfrastructure ( const LPTYInfrastructure pInfra)
inlineprivate

Set/Get de l'ensemble des infrastructures.

Definition at line 188 of file TYSiteNode.h.

Here is the call graph for this function:

◆ setIsGeometryModified()

void TYSiteNode::setIsGeometryModified ( bool  isModified)
privatevirtual

Set/Get de l'indicateur de modification de la geometrie.

Reimplemented from TYElement.

Definition at line 498 of file TYSiteNode.cpp.

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

◆ setListSiteNode()

void TYSiteNode::setListSiteNode ( const TYTabSiteNodeGeoNode list)
inlineprivate

Set/Get de la liste des sites.

Definition at line 409 of file TYSiteNode.h.

Here is the call graph for this function:

◆ setMeshFilePath()

void TYSiteNode::setMeshFilePath ( const QString &  path)
private

Set/Get du chemin vers le fichier PLY d'altimétrie

Definition at line 64 of file TYSiteNode.cpp.

Here is the caller graph for this function:

◆ setOrientation()

void TYSiteNode::setOrientation ( TYSegment  seg)
inlineprivate

Set/Get de l'orientation.

Definition at line 304 of file TYSiteNode.h.

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

◆ setPosition()

void TYSiteNode::setPosition ( TYPoint  pt)
inlineprivate

Set/Get de la position.

Definition at line 337 of file TYSiteNode.h.

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

◆ setProjet()

void TYSiteNode::setProjet ( const LPTYProjet  pProjet)
private

Get/Set du projet parent

Definition at line 557 of file TYSiteNode.cpp.

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

◆ setRoot()

void TYSiteNode::setRoot ( bool  b)
inlineprivate

Set/Get du test de site racine.

Definition at line 329 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ setSIG_OFFSET()

void TYSiteNode::setSIG_OFFSET ( const double &  SIG_OFFSET)
inline

Definition at line 617 of file TYSiteNode.h.

◆ setSIG_X()

void TYSiteNode::setSIG_X ( const double &  SIG_X)
inline

Definition at line 591 of file TYSiteNode.h.

◆ setSIG_Y()

void TYSiteNode::setSIG_Y ( const double &  SIG_Y)
inline

Definition at line 604 of file TYSiteNode.h.

◆ setSIGType()

void TYSiteNode::setSIGType ( int  SIGType)
inline

Definition at line 577 of file TYSiteNode.h.

◆ setTopoFile()

void TYSiteNode::setTopoFile ( const QString &  fileName)
inlineprivate

Set/Get du fichier de topographie temporaire.

Definition at line 220 of file TYSiteNode.h.

◆ setTopoFileExtension()

void TYSiteNode::setTopoFileExtension ( const QString &  ext)
inlineprivate

Set/Get de l'extension du fichier de topographie.

Definition at line 234 of file TYSiteNode.h.

◆ setTopoFileName()

void TYSiteNode::setTopoFileName ( const QString &  name)
inlineprivate

Set/Get du nom du fichier de topographie.

Definition at line 248 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ setTopoFilePath()

void TYSiteNode::setTopoFilePath ( const QString &  path)
staticprivate

Set/Get du chemin du fichier image temporaire.

Definition at line 54 of file TYSiteNode.cpp.

Here is the caller graph for this function:

◆ setTopographie()

void TYSiteNode::setTopographie ( const LPTYTopographie  pTopo)
inlineprivate

Set/Get de la topographie.

Definition at line 164 of file TYSiteNode.h.

Here is the call graph for this function:

◆ setUseEmpriseAsCrbNiv()

void TYSiteNode::setUseEmpriseAsCrbNiv ( bool  b)
inlineprivate

Set/Get de la prise en compte de l'emprise comme courbe de niveau.

Definition at line 130 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ setUseTopoFile()

void TYSiteNode::setUseTopoFile ( bool  flag)
inlineprivate

Set/Get du flag d'utilisation d'une image de fond.

Definition at line 205 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ toString()

std::string TYSiteNode::toString ( ) const
privatevirtual

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.

Definition at line 266 of file TYSiteNode.cpp.

Here is the caller graph for this function:

◆ toXML()

DOM_Element TYSiteNode::toXML ( DOM_Element domElement)
privatevirtual

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.

Definition at line 271 of file TYSiteNode.cpp.

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

◆ update() [1/2]

void TYSiteNode::update ( const bool &  force = false)

Effectue en une seule operation la mise a jour de la topo et de l'infrastructure

Definition at line 1612 of file TYSiteNode.cpp.

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

◆ update() [2/2]

bool TYSiteNode::update ( TYElement pElem)

Recherche le parent "métier" d'un élement et le met é jour

Parameters
pElemPointeur sur un objet de type TYElement

Definition at line 1572 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ updateAcoustique()

void TYSiteNode::updateAcoustique ( const bool &  force = false)
virtual

Mise a jour de l'acoustique des elements presents dans le site

Definition at line 1006 of file TYSiteNode.cpp.

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

◆ updateAltiInfra()

void TYSiteNode::updateAltiInfra ( )
virtual

Mise a jour de l'altitude pour les elements de l'infrastructure. Le parametre force contraint l'altimetrisation des objets

Definition at line 781 of file TYSiteNode.cpp.

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

◆ updateAltimetrie()

bool TYSiteNode::updateAltimetrie ( QString  resultMeshFilePath)
privatevirtual

This method mainly calls do_updateAltimetrie and handle exceptions be capturing them and returning a success status.

Parameters
resultMeshFilePathChemin vers lequel écrire le fichier mesh résultat
Returns
wether the update succeeded

Definition at line 625 of file TYSiteNode.cpp.

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

◆ updateCurrentCalcul()

void TYSiteNode::updateCurrentCalcul ( TYListID listID,
bool  recursif = true 
)
privatevirtual

Verifie si cet element est present dans la liste d'ID passee. S'il est present cela signifie qu'il est actif dans le Calcul courant, c'est cet etat qui est retourne.

Parameters
listIDLa liste d'ID du Calcul courant.
recursifIndique si la mise a jour du Calcul courant doit etre recursive.

Reimplemented from TYElement.

Definition at line 541 of file TYSiteNode.cpp.

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

◆ uuid2tysol()

void TYSiteNode::uuid2tysol ( const std::deque< std::string > &  material_ids,
std::deque< LPTYSol > &  materials 
)
private

Definition at line 758 of file TYSiteNode.cpp.

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

Member Data Documentation

◆ _altiEmprise

double TYSiteNode::_altiEmprise
protected

Altitude associee a l'emprise (s'il y a lieu)

Definition at line 661 of file TYSiteNode.h.

◆ _bEmpriseAsCrbNiv

bool TYSiteNode::_bEmpriseAsCrbNiv
protected

Utilisation de l'emprise comme courbe de niveau.

Definition at line 658 of file TYSiteNode.h.

◆ _echelle

float TYSiteNode::_echelle
protected

Echelle du site.

Definition at line 685 of file TYSiteNode.h.

◆ _isTopoFileModified

bool TYSiteNode::_isTopoFileModified
protected

Flag de modification de l'image de fond.

Definition at line 710 of file TYSiteNode.h.

◆ _listSiteNode

TYTabSiteNodeGeoNode TYSiteNode::_listSiteNode
protected

Liste des sites.

Definition at line 707 of file TYSiteNode.h.

◆ _meshFilePath

QString TYSiteNode::_meshFilePath
protected

Chemin vers le fichier PLY d'altimétrie.

Definition at line 676 of file TYSiteNode.h.

◆ _nbFaceInfra

unsigned int TYSiteNode::_nbFaceInfra
protected

Nombre de faces de l'infrastructure (machines, bâtiments, etc ...)

Definition at line 692 of file TYSiteNode.h.

◆ _nbFaces

unsigned int TYSiteNode::_nbFaces
protected

Definition at line 694 of file TYSiteNode.h.

◆ _orientation

TYSegment TYSiteNode::_orientation
protected

Orientation du Nord.

Definition at line 687 of file TYSiteNode.h.

◆ _pInfrastructure

LPTYInfrastructure TYSiteNode::_pInfrastructure
protected

Infrastructure.

Definition at line 667 of file TYSiteNode.h.

◆ _position

TYPoint TYSiteNode::_position
protected

Position.

Definition at line 689 of file TYSiteNode.h.

◆ _pProjet

LPTYProjet TYSiteNode::_pProjet
protected

Projet auquel appartient (eventuellement) le site.

Definition at line 655 of file TYSiteNode.h.

◆ _pTopographie

LPTYTopographie TYSiteNode::_pTopographie
protected

Topographie.

Definition at line 664 of file TYSiteNode.h.

◆ _root

bool TYSiteNode::_root
protected

Test si site racine.

Definition at line 697 of file TYSiteNode.h.

◆ _SIG_OFFSET

double TYSiteNode::_SIG_OFFSET
protected

Definition at line 704 of file TYSiteNode.h.

◆ _SIG_X

double TYSiteNode::_SIG_X
protected

Definition at line 702 of file TYSiteNode.h.

◆ _SIG_Y

double TYSiteNode::_SIG_Y
protected

Definition at line 703 of file TYSiteNode.h.

◆ _SIGType

systemSIG TYSiteNode::_SIGType
protected

Coordonnees SIG.

Definition at line 700 of file TYSiteNode.h.

◆ _topoFile

QString TYSiteNode::_topoFile
protected

Nom du fichier de topographie temporaire.

Definition at line 679 of file TYSiteNode.h.

◆ _topoFileExtension

QString TYSiteNode::_topoFileExtension
protected

Extension du fichier de topographie.

Definition at line 682 of file TYSiteNode.h.

◆ _topoFileName

QString TYSiteNode::_topoFileName
protected

Nom du fichier de topographie (image de fond)

Definition at line 673 of file TYSiteNode.h.

◆ _topoFilePath

QString TYSiteNode::_topoFilePath = ""
staticprivate

Chemin du dossier image temporaire.

Definition at line 651 of file TYSiteNode.h.

◆ _useTopoFile

bool TYSiteNode::_useTopoFile
protected

Flag d'utilisation d'une image de fond.

Definition at line 670 of file TYSiteNode.h.


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