20 #ifndef __TY_SITENODE__
21 #define __TY_SITENODE__
76 virtual bool deepCopy(
const TYElement* pOther,
bool copyId =
true,
bool pUseCopyTag =
false);
78 virtual std::string
toString()
const;
463 void uuid2tysol(
const std::deque<std::string>& material_ids, std::deque<LPTYSol>& materials);
479 void readMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
480 std::deque<LPTYSol>& materials,
const QString& filename);
496 void update(
const bool& force =
false);
524 std::vector<std::pair<int, int>>& indices, std::vector<int>& etages)
const;
541 std::map<
TYUUID, std::deque<TYTabPoint3D>>& contours)
const;
598 virtual void exportCSV(std::ofstream& ofs);
std::vector< LPTYAcousticFaceSetGeoNode > TYTabAcousticVolumeGeoNode
Collection de noeuds geometriques de type TYAcousticFaceSet.
std::vector< LPTYAcousticSurfaceGeoNode > TYTabAcousticSurfaceGeoNode
Collection de noeuds geometriques de type TYAcousticSurface.
std::list< TYUUID > TYListID
Collection d'identifiants.
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
std::vector< LPTYElement > LPTYElementArray
#define OPROTODECL(classname)
#define TY_EXTENSION_DECL_ONLY(classname)
vector< bool > EstUnIndexDeFaceEcran
TYGeometryNode TYSiteNodeGeoNode
Noeud geometrique de type TYSiteNode.
std::vector< LPTYSiteNodeGeoNode > TYTabSiteNodeGeoNode
Collection de noeuds geometriques de type TYSiteNode.
SmartPtr< TYSiteNodeGeoNode > LPTYSiteNodeGeoNode
Smart Pointer sur TYSiteNodeGeoNode.
void setParent(TYElement *pParent)
classe de definition d'un projet.
TYTabSiteNodeGeoNode collectSites(bool include=true) const
const double getSIG_OFFSET() const
const double getAltiEmprise() const
const LPTYInfrastructure getInfrastructure() const
void setProjet(const LPTYProjet pProjet)
double getSIG_X()
Get/Set des coordonnees dans le repere du SIG.
std::string _topoFileName
Nom du fichier de topographie.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
const TYTabSiteNodeGeoNode & getListSiteNode() const
LPTYAltimetrie getAltimetry() const
void setAltiEmprise(const double &altiEmprise)
Get/Set de l'altitude associee a la courbe de niveau.
void appendSite(LPTYSiteNode pSiteFrom, const OMatrix &matrix, LPTYSiteNode pSiteTo)
OMatrix getGlobalMatrix() const
LPTYTopographie getTopographie()
std::string getTopoFile() const
int getSIGType()
Get/Set du choix du systeme de repere du SIG.
virtual void updateCurrentCalcul(TYListID &listID, bool recursif=true)
virtual void setIsGeometryModified(bool isModified)
void setOrientation(TYSegment seg)
std::string getTopoFileExtension() const
unsigned int _nbFaceInfra
Nombre de faces de l'infrastructure (machines, bâtiments, etc ...)
virtual bool remFromCalcul()
LPTYTopographie _pTopographie
Topographie.
std::string getTopoFileName() const
void setTopoFile(std::string fileName)
void setPosition(TYPoint pt)
std::string _topoFile
Nom du fichier de topographie temporaire.
virtual void setChildsNotInCurrentCalcul()
TYProjet * getProjet()
Accesseurs.
void setUseEmpriseAsCrbNiv(bool b)
virtual void getChilds(LPTYElementArray &childs, bool recursif=true)
bool remSiteNode(const LPTYSiteNodeGeoNode pSiteNodeGeoNode)
LPTYInfrastructure getInfrastructure()
LPTYInfrastructure _pInfrastructure
Infrastructure.
const double getSIG_X() const
const double getSIG_Y() const
void setTopographie(const LPTYTopographie pTopo)
void setSIG_X(const double &SIG_X)
double _altiEmprise
Altitude associee a l'emprise (s'il y a lieu)
float _echelle
Echelle du site.
virtual int fromXML(DOM_Element domElement)
systemSIG _SIGType
Coordonnees SIG.
void setSIG_OFFSET(const double &SIG_OFFSET)
void setTopoFileExtension(std::string ext)
static std::string * _topoFilePath
Chemin du dossier image temporaire.
TYTabSiteNodeGeoNode _listSiteNode
Liste des sites.
void setListSiteNode(const TYTabSiteNodeGeoNode &list)
TYPoint _position
Position.
bool _useTopoFile
Flag d'utilisation d'une image de fond.
virtual void updateAcoustique(const bool &force=false)
const LPTYTopographie getTopographie() const
static void setTopoFilePath(const std::string &path)
static const std::string & getTopoFilePath()
void uuid2tysol(const std::deque< std::string > &material_ids, std::deque< LPTYSol > &materials)
void update(const bool &force=false)
bool _root
Test si site racine.
void getListFaces(TYTabAcousticSurfaceGeoNode &tabFaces, unsigned int &nbFaceInfra, std::vector< bool > &EstUnIndexDeFaceEcran) const
const TYProjet * getProjet() const
virtual DOM_Element toXML(DOM_Element &domElement)
void setInfrastructure(const LPTYInfrastructure &pInfra)
void setSIG_Y(const double &SIG_Y)
TYTabSiteNodeGeoNode & getListSiteNode()
void setSIGType(int SIGType)
virtual std::string toString() const
LPTYSiteNodeGeoNode findSiteNode(const LPTYSiteNode pSiteNode)
LPTYProjet _pProjet
Projet auquel appartient (eventuellement) le site.
TYSegment getOrientation() const
std::string _topoFileExtension
Extension du fichier de topographie.
virtual bool updateAltimetrie()
TYSegment _orientation
Orientation du Nord.
bool addSiteNode(LPTYSiteNodeGeoNode pSiteNodeGeoNode)
virtual TYSiteNode & operator=(const TYSiteNode &other)
Operateur =.
virtual void exportCSV(std::ofstream &ofs)
Export au format csv sur un flux transmis.
void getListFacesWithoutFloor(TYTabAcousticSurfaceGeoNode &tabFaces, unsigned int &nbFaceInfra, std::vector< bool > &EstUnIndexDeFaceEcran, std::vector< std::pair< int, int >> &indices, std::vector< int > &etages) const
void setTopoFileName(std::string name)
bool getUseEmpriseAsCrbNiv() const
virtual void updateAltiInfra()
void groundBasedFaces(const TYTabAcousticVolumeGeoNode &volumes, const OMatrix &global_matrix, std::map< TYUUID, std::deque< TYTabPoint3D >> &contours) const
void readMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, std::deque< LPTYSol > &materials, const QString &filename)
virtual bool addToCalcul()
void getFacesOnGround(std::map< TYUUID, std::deque< TYTabPoint3D >> &contours) const
TYPoint getPosition() const
bool _bEmpriseAsCrbNiv
Utilisation de l'emprise comme courbe de niveau.
bool getUseTopoFile() const
virtual bool operator!=(const TYSiteNode &other) const
Operateur !=.
const int getSIGType() const
bool _isTopoFileModified
Flag de modification de l'image de fond.
void setUseTopoFile(bool flag)
virtual bool operator==(const TYSiteNode &other) const
Operateur ==.
virtual void do_updateAltimetrie()