Code_TYMPAN  4.2.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

void readMesh (std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, std::deque< LPTYSol > &materials, const QString &filename)
 
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
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
 
virtual void setIsAcousticModified (bool isModified)
 
bool getIsAcousticModified ()
 
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 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 ()
 
void appendSite (LPTYSiteNode pSiteFrom, const OMatrix &matrix, LPTYSiteNode pSiteTo)
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Protected Attributes

TYProjet_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...
 
std::string _topoFileName
 Nom du fichier de topographie. More...
 
std::string _topoFile
 Nom du fichier de topographie temporaire. More...
 
std::string _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...
 
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...
 

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 (TYProjet *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)
 
std::string getTopoFile () const
 
void setTopoFile (std::string fileName)
 
std::string getTopoFileExtension () const
 
void setTopoFileExtension (std::string ext)
 
std::string getTopoFileName () const
 
void setTopoFileName (std::string name)
 
void loadTopoFile (std::string fileName)
 
void loadTopoFile ()
 
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
 
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 ()
 
void uuid2tysol (const std::deque< std::string > &material_ids, std::deque< LPTYSol > &materials)
 

Static Private Member Functions

static const std::string & getTopoFilePath ()
 
static void setTopoFilePath (const std::string &path)
 

Static Private Attributes

static std::string * _topoFilePath = NULL
 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 38 of file TYSiteNode.h.

Constructor & Destructor Documentation

◆ TYSiteNode() [1/2]

TYSiteNode::TYSiteNode ( )
private

Constructeur.

Definition at line 75 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 106 of file TYSiteNode.cpp.

◆ ~TYSiteNode()

TYSiteNode::~TYSiteNode ( )
privatevirtual

Destructeur.

Definition at line 111 of file TYSiteNode.cpp.

Member Function Documentation

◆ addSiteNode() [1/2]

bool TYSiteNode::addSiteNode ( LPTYSiteNodeGeoNode  pSiteNodeGeoNode)
private

Ajoute un site a la liste des sites.

Parameters
pSiteNodeGeoNodeElement a ajouter.

Definition at line 1541 of file TYSiteNode.cpp.

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

◆ addSiteNode() [2/2]

bool TYSiteNode::addSiteNode ( LPTYSiteNode  pSiteNode)
private

Ajoute un site a la liste des sites.

Parameters
pSiteNodeElement a ajouter.

Definition at line 1565 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ addToCalcul()

bool TYSiteNode::addToCalcul ( )
privatevirtual

Ajoute les elements du site au calcul

Definition at line 376 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 1693 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 1444 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

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.

Definition at line 175 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ do_updateAltimetrie()

void TYSiteNode::do_updateAltimetrie ( )
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.

Definition at line 528 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 1783 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 1641 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 267 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ getAltiEmprise()

const double TYSiteNode::getAltiEmprise ( ) const
inlineprivate

Definition at line 103 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getAltimetry()

LPTYAltimetrie TYSiteNode::getAltimetry ( ) const

Definition at line 1165 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

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

Reimplemented from TYElement.

Definition at line 341 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 945 of file TYSiteNode.cpp.

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

◆ getEchelle()

float TYSiteNode::getEchelle ( ) const
inlineprivate

Set/Get de l'echelle.

Definition at line 195 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 1254 of file TYSiteNode.cpp.

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

◆ getGlobalMatrix()

OMatrix TYSiteNode::getGlobalMatrix ( ) const

Definition at line 1179 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 127 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 131 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 1323 of file TYSiteNode.cpp.

Here is the call graph for this function:
Here is the caller 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 972 of file TYSiteNode.cpp.

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

◆ getListSiteNode() [1/2]

TYTabSiteNodeGeoNode& TYSiteNode::getListSiteNode ( )
inlineprivate

Set/Get de la liste des sites.

Definition at line 233 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 238 of file TYSiteNode.h.

Here is the call graph for this function:

◆ getOrientation()

TYSegment TYSiteNode::getOrientation ( ) const
inlineprivate

Set/Get de l'orientation.

Definition at line 204 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 213 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 84 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getProjet() [2/2]

const TYProjet* TYSiteNode::getProjet ( ) const
inlineprivate

Definition at line 85 of file TYSiteNode.h.

Here is the call graph for this function:

◆ getRoot()

bool TYSiteNode::getRoot ( ) const
inlineprivate

Set/Get du test de site racine.

Definition at line 218 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIG_OFFSET() [1/2]

double TYSiteNode::getSIG_OFFSET ( )
inline

Definition at line 446 of file TYSiteNode.h.

◆ getSIG_OFFSET() [2/2]

const double TYSiteNode::getSIG_OFFSET ( ) const
inline

Definition at line 447 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 438 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 439 of file TYSiteNode.h.

◆ getSIG_Y() [1/2]

double TYSiteNode::getSIG_Y ( )
inline

Definition at line 442 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 443 of file TYSiteNode.h.

◆ getSIGType() [1/2]

int TYSiteNode::getSIGType ( )
inline

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

Definition at line 433 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getSIGType() [2/2]

const int TYSiteNode::getSIGType ( ) const
inline

Definition at line 434 of file TYSiteNode.h.

◆ getTopoFile()

std::string TYSiteNode::getTopoFile ( ) const
inlineprivate

Set/Get du fichier de topographie temporaire.

Definition at line 154 of file TYSiteNode.h.

◆ getTopoFileExtension()

std::string TYSiteNode::getTopoFileExtension ( ) const
inlineprivate

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

Definition at line 162 of file TYSiteNode.h.

◆ getTopoFileName()

std::string TYSiteNode::getTopoFileName ( ) const
inlineprivate

Set/Get du nom du fichier de topographie.

Definition at line 170 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ getTopoFilePath()

const std::string & TYSiteNode::getTopoFilePath ( )
staticprivate

Set/Get du chemin du fichier image temporaire.

Definition at line 48 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 108 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 112 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 95 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 145 of file TYSiteNode.h.

◆ 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 1208 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 ( std::string  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 444 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ loadTopoFile() [2/2]

void TYSiteNode::loadTopoFile ( )
private

Definition at line 450 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 1657 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 170 of file TYSiteNode.cpp.

Here is the call graph for this function:

◆ operator=()

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

Operateur =.

Definition at line 116 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 143 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 78 of file TYSiteNode.h.

Here is the caller graph for this function:

◆ readMesh()

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

Definition at line 618 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 392 of file TYSiteNode.cpp.

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

◆ remSiteNode() [1/3]

bool TYSiteNode::remSiteNode ( const LPTYSiteNodeGeoNode  pSiteNodeGeoNode)
private

Supprime une entree a la liste des site nodes.

Definition at line 1570 of file TYSiteNode.cpp.

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

◆ remSiteNode() [2/3]

bool TYSiteNode::remSiteNode ( const LPTYSiteNode  pSiteNode)
private

Supprime une entree a la liste des site nodes.

Definition at line 1594 of file TYSiteNode.cpp.

Here is the call 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 1618 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 433 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 102 of file TYSiteNode.h.

◆ setChildsNotInCurrentCalcul()

void TYSiteNode::setChildsNotInCurrentCalcul ( )
privatevirtual

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

Definition at line 1431 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 199 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 135 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 369 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 282 of file TYSiteNode.h.

Here is the call graph for this function:

◆ setOrientation()

void TYSiteNode::setOrientation ( TYSegment  seg)
inlineprivate

Set/Get de l'orientation.

Definition at line 208 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 228 of file TYSiteNode.h.

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

◆ setProjet()

void TYSiteNode::setProjet ( TYProjet pProjet)
private

Get/Set du projet parent

Definition at line 424 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 223 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 448 of file TYSiteNode.h.

Here is the call graph for this function:

◆ setSIG_X()

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

Definition at line 440 of file TYSiteNode.h.

◆ setSIG_Y()

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

Definition at line 444 of file TYSiteNode.h.

◆ setSIGType()

void TYSiteNode::setSIGType ( int  SIGType)
inline

Definition at line 435 of file TYSiteNode.h.

◆ setTopoFile()

void TYSiteNode::setTopoFile ( std::string  fileName)
inlineprivate

Set/Get du fichier de topographie temporaire.

Definition at line 158 of file TYSiteNode.h.

◆ setTopoFileExtension()

void TYSiteNode::setTopoFileExtension ( std::string  ext)
inlineprivate

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

Definition at line 166 of file TYSiteNode.h.

◆ setTopoFileName()

void TYSiteNode::setTopoFileName ( std::string  name)
inlineprivate

Set/Get du nom du fichier de topographie.

Definition at line 174 of file TYSiteNode.h.

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

◆ setTopoFilePath()

void TYSiteNode::setTopoFilePath ( const std::string &  path)
staticprivate

Set/Get du chemin du fichier image temporaire.

Definition at line 61 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 117 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 99 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 149 of file TYSiteNode.h.

◆ 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 214 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 219 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 1518 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 1476 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 928 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 659 of file TYSiteNode.cpp.

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

◆ updateAltimetrie()

bool TYSiteNode::updateAltimetrie ( )
privatevirtual

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

Returns
weather the update succeeded

Definition at line 510 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.
Returns
true si cet objet est actif dans le Calcul concerne; false sinon.

Reimplemented from TYElement.

Definition at line 408 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 636 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 490 of file TYSiteNode.h.

◆ _bEmpriseAsCrbNiv

bool TYSiteNode::_bEmpriseAsCrbNiv
protected

Utilisation de l'emprise comme courbe de niveau.

Definition at line 487 of file TYSiteNode.h.

◆ _echelle

float TYSiteNode::_echelle
protected

Echelle du site.

Definition at line 511 of file TYSiteNode.h.

◆ _isTopoFileModified

bool TYSiteNode::_isTopoFileModified
protected

Flag de modification de l'image de fond.

Definition at line 536 of file TYSiteNode.h.

◆ _listSiteNode

TYTabSiteNodeGeoNode TYSiteNode::_listSiteNode
protected

Liste des sites.

Definition at line 533 of file TYSiteNode.h.

◆ _nbFaceInfra

unsigned int TYSiteNode::_nbFaceInfra
protected

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

Definition at line 518 of file TYSiteNode.h.

◆ _nbFaces

unsigned int TYSiteNode::_nbFaces
protected

Definition at line 520 of file TYSiteNode.h.

◆ _orientation

TYSegment TYSiteNode::_orientation
protected

Orientation du Nord.

Definition at line 513 of file TYSiteNode.h.

◆ _pInfrastructure

LPTYInfrastructure TYSiteNode::_pInfrastructure
protected

Infrastructure.

Definition at line 496 of file TYSiteNode.h.

◆ _position

TYPoint TYSiteNode::_position
protected

Position.

Definition at line 515 of file TYSiteNode.h.

◆ _pProjet

TYProjet* TYSiteNode::_pProjet
protected

Projet auquel appartient (eventuellement) le site.

Definition at line 484 of file TYSiteNode.h.

◆ _pTopographie

LPTYTopographie TYSiteNode::_pTopographie
protected

Topographie.

Definition at line 493 of file TYSiteNode.h.

◆ _root

bool TYSiteNode::_root
protected

Test si site racine.

Definition at line 523 of file TYSiteNode.h.

◆ _SIG_OFFSET

double TYSiteNode::_SIG_OFFSET
protected

Definition at line 530 of file TYSiteNode.h.

◆ _SIG_X

double TYSiteNode::_SIG_X
protected

Definition at line 528 of file TYSiteNode.h.

◆ _SIG_Y

double TYSiteNode::_SIG_Y
protected

Definition at line 529 of file TYSiteNode.h.

◆ _SIGType

systemSIG TYSiteNode::_SIGType
protected

Coordonnees SIG.

Definition at line 526 of file TYSiteNode.h.

◆ _topoFile

std::string TYSiteNode::_topoFile
protected

Nom du fichier de topographie temporaire.

Definition at line 505 of file TYSiteNode.h.

◆ _topoFileExtension

std::string TYSiteNode::_topoFileExtension
protected

Extension du fichier de topographie.

Definition at line 508 of file TYSiteNode.h.

◆ _topoFileName

std::string TYSiteNode::_topoFileName
protected

Nom du fichier de topographie.

Definition at line 502 of file TYSiteNode.h.

◆ _topoFilePath

std::string * TYSiteNode::_topoFilePath = NULL
staticprivate

Chemin du dossier image temporaire.

Definition at line 480 of file TYSiteNode.h.

◆ _useTopoFile

bool TYSiteNode::_useTopoFile
protected

Flag d'utilisation d'une image de fond.

Definition at line 499 of file TYSiteNode.h.


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