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;
483 void uuid2tysol(
const std::deque<std::string>& material_ids, std::deque<LPTYSol>& materials);
504 bool readMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
505 std::deque<LPTYSol>& materials,
const QString& meshFilePath);
521 void update(
const bool& force =
false);
549 std::vector<std::pair<int, int>>& indices, std::vector<int>& etages)
const;
566 std::map<
TYUUID, std::deque<TYTabPoint3D>>& contours)
const;
623 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::vector< TYPoint > TYTabPoint
Collection de TYPoint.
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)
std::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.
QString getTopoFile() const
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()
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)
bool readMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, std::deque< LPTYSol > &materials, const QString &meshFilePath)
virtual void do_updateAltimetrie(QString resultMeshFilePath)
void setTopoFileExtension(const QString &ext)
unsigned int _nbFaceInfra
Nombre de faces de l'infrastructure (machines, bâtiments, etc ...)
virtual bool remFromCalcul()
LPTYTopographie _pTopographie
Topographie.
void setEmprise(TYTabPoint points)
QString _topoFile
Nom du fichier de topographie temporaire.
void setPosition(TYPoint pt)
virtual void setChildsNotInCurrentCalcul()
TYProjet * getProjet()
Accesseurs.
void setTopoFileName(const QString &name)
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)
QString _topoFileName
Nom du fichier de topographie (image de fond)
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)
const QString & getMeshFilePath()
TYTabSiteNodeGeoNode _listSiteNode
Liste des sites.
void setListSiteNode(const TYTabSiteNodeGeoNode &list)
TYPoint _position
Position.
QString _meshFilePath
Chemin vers le fichier PLY d'altimétrie.
bool _useTopoFile
Flag d'utilisation d'une image de fond.
QString _topoFileExtension
Extension du fichier de topographie.
virtual void updateAcoustique(const bool &force=false)
const LPTYTopographie getTopographie() const
void setMeshFilePath(const QString &path)
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
static const QString & getTopoFilePath()
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
QString getTopoFileExtension() const
void setTopoFile(const QString &fileName)
TYSegment _orientation
Orientation du Nord.
bool addSiteNode(LPTYSiteNodeGeoNode pSiteNodeGeoNode)
virtual TYSiteNode & operator=(const TYSiteNode &other)
Operateur =.
virtual bool updateAltimetrie(QString resultMeshFilePath)
static void setTopoFilePath(const QString &path)
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
bool getUseEmpriseAsCrbNiv() const
virtual void updateAltiInfra()
void groundBasedFaces(const TYTabAcousticVolumeGeoNode &volumes, const OMatrix &global_matrix, std::map< TYUUID, std::deque< TYTabPoint3D >> &contours) const
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.
QString getTopoFileName() const
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 ==.
static QString _topoFilePath
Chemin du dossier image temporaire.
void updateEmpriseAltitude(double empriseAltitude)
Update z ccordinates of emprise points.
void setEmprise(const TYTabPoint &pts, const bool &defTerrain=true)