Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
classe de definition d'un projet. More...
#include <TYProjet.h>
Public Member Functions | |
TYProjet () | |
Constructeur. Le constructeur de la classe TYProjet. More... | |
TYProjet (const TYProjet &other) | |
Constructeur par copie . Le constructeur par copie de la classe TYProje . More... | |
virtual | ~TYProjet () |
Destructeur Le destructeur de la classe TYProjet . More... | |
TYProjet & | operator= (const TYProjet &other) |
Operateur =. More... | |
bool | operator== (const TYProjet &other) const |
Operateur ==. More... | |
bool | operator!= (const TYProjet &other) const |
Operateur !=. More... | |
virtual std::string | toString () const |
virtual DOM_Element | toXML (DOM_Element &domElement) |
virtual int | fromXML (DOM_Element domElement) |
QString | getAuteur () const |
Get du nom de l'auteur. More... | |
void | setAuteur (const QString &auteur) |
Set du nom de l'auteur. More... | |
QString | getDateCreation () const |
Get de la date de creation. More... | |
void | setDateCreation (const QString &date) |
Set de la date de creation. More... | |
QString | getDateModif () const |
Get de la date de modification. More... | |
void | setDateModif (const QString &date) |
Set de la date de modification. More... | |
QString | getComment () const |
Get des commentaires. More... | |
void | setComment (const QString &comment) |
Set des commentaires. More... | |
LPTYSiteNode | getSite () |
Get du site. More... | |
const LPTYSiteNode | getSite () const |
Get du site. More... | |
void | setSite (const LPTYSiteNode pSite) |
Set du site. More... | |
TYTabLPPointControl & | getPointsControl () |
const TYTabLPPointControl & | getPointsControl () const |
void | setPointsControl (const TYTabLPPointControl &pointsControl) |
bool | addPointControl (LPTYPointControl pPointControl) |
bool | remPointControl (LPTYPointControl pPointControl) |
LPTYPointControl | duplicatePointControl (const LPTYPointControl &pPoint) |
LPTYPointControl | getPointControl (int index) |
bool | remAllPointControl () |
bool | updateAltiRecepteurs () |
bool | updateAltiRecepteurs (const TYAltimetrie *pAlti) |
bool | updateAltiPointControle (TYPointControl *pPtControl, const TYAltimetrie *pAlti) |
TYTabMaillageGeoNode & | getMaillages () |
Get de la collection de maillages. More... | |
const TYTabMaillageGeoNode & | getMaillages () const |
Get de la collection de maillages. More... | |
void | updateCalculsWithMaillage (TYMaillage *pMaillage) |
bool | addMaillage (LPTYMaillageGeoNode pMaillageGeoNode) |
Ajout d'un maillage. More... | |
bool | addMaillage (LPTYMaillage pMaillage) |
Ajout d'un maillage. More... | |
bool | remMaillage (const LPTYMaillageGeoNode pMaillageGeoNode) |
Suppression d'un maillage. More... | |
bool | remMaillage (const LPTYMaillage pMaillage) |
Suppression d'un maillage. More... | |
bool | remMaillage (QString idMaillage) |
Suppression d'un maillage a partir de son identifiant. More... | |
bool | remAllMaillage () |
Suppression de tous les maillages. More... | |
LPTYMaillage | getMaillage (int index) |
Retourne un maillage a partir de son index. More... | |
LPTYMaillageGeoNode | findMaillage (const LPTYMaillage pMaillage) |
Retrouve le GeoNode associe a un maillage. More... | |
bool | updateAltiMaillage (TYMaillageGeoNode *pMaillageGeoNode, const TYAltimetrie *pAlti) |
Met a niveau l'altimetrie d'un maillage. More... | |
bool | updateAltiMaillage (TYMaillageGeoNode *pMaillageGeoNode) |
Met a niveau l'altimetrie d'un maillage. More... | |
void | selectActivePoint (const LPTYSiteNode pSite) |
Selectionne les points actifs du maillage. More... | |
virtual void | updateGraphic () |
TYTabLPCalcul & | getListCalcul () |
Set/Get de la liste des Calcul. More... | |
const TYTabLPCalcul & | getListCalcul () const |
void | setListCalcul (const TYTabLPCalcul &list) |
bool | addCalcul (LPTYCalcul pCalcul) |
Ajout d'un Calcul a la liste des Calcul. More... | |
bool | remCalcul (const LPTYCalcul pCalcul) |
Suppression d'un Calcul a la liste des Calcul. More... | |
bool | remCalcul (QString idCalcul) |
Suppression d'un Calcul a la liste des Calcul. More... | |
void | remAllCalcul () |
Suppression de tous les elements. More... | |
LPTYCalcul | getCurrentCalcul () |
Set/Get du pointeur du Calcul courant. More... | |
const LPTYCalcul | getCurrentCalcul () const |
Set/Get du pointeur du Calcul courant. More... | |
void | setCurrentCalcul (LPTYCalcul pCurCalcul) |
Set/Get du pointeur du Calcul courant. More... | |
LPTYCalcul | duplicateCalcul (const LPTYCalcul pCalcul) |
Duplique pCalcul. More... | |
void | duplicatePtCalcState (const TYCalcul *pCalculRef, TYCalcul *pCalculNew) |
copie l'etat des points de controle pour un calcul pour un autre calcul More... | |
void | duplicateNoiseMapState (const TYCalcul *pCalculRef, TYCalcul *pCalculNew) |
copie l'etat des points de controle pour un calcul pour un autre calcul More... | |
void | remElmtFromCalculs (TYElement *pElement) |
Supprime un element de tous les calculs. More... | |
void | remTabElmtFromCalculs (vector< LPTYGeometryNode > tabGeoNode) |
Supprime un ensemble d'elements des calculs. More... | |
void | setDelaunayTolerence (const double &val) |
Get/Set du parametre de Delaunay. More... | |
double | getDelaunayTolerence () |
const double | getDelaunayTolerence () const |
void | setDMax (const double &val) |
Get/set de la distance max entre les points. More... | |
double | getDMax () |
const double | getDMax () const |
void | setUseDefGeomVal (const bool &bVal) |
Get/Set de l'option d'utilisation des valeurs par defaut. More... | |
bool | getUseDefGeomVal () |
const bool | getUseDefGeomVal () const |
void | verifGeometricParam () |
verification des parametres de geometrisation (si necessaire) More... | |
void | forceUseDefault () |
Force l'utilisation des parametres par defaut. More... | |
const double | getDefaultDelaunayTolerence () const |
Relecture de la valeur de tolerence de Delaunay par defaut. More... | |
const double | getDefaultDMax () const |
Relecture de la distance minimale entre deux points par defaut. More... | |
bool | getStatusSolver () |
Get/Set du statut de disponibilite du solveur du calcul courant. More... | |
const bool | getStatusSolver () const |
void | setStatusSolver (const bool &bStatus) |
void | cleanReceptorsStatus (TYCalcul *pCalcul) |
clean status of control points and noise maps 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 TYUUID & | getID () 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) |
TYElement * | getParent () const |
virtual void | setIsAcousticModified (bool isModified) |
bool | getIsAcousticModified () |
virtual void | setIsGeometryModified (bool isModified) |
bool | getIsGeometryModified () |
TYElement & | operator= (const TYElement &other) |
bool | operator== (const TYElement &other) const |
bool | operator!= (const TYElement &other) const |
virtual bool | deepCopy (const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false) |
bool | callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL) |
std::string | getMetierName () |
virtual void | updateCurrentCalcul (TYListID &listID, bool recursif=true) |
virtual void | getChilds (LPTYElementArray &childs, 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 OPrototype * | clone () const =0 |
virtual const char * | getClassName () const |
bool | isA (const char *className) const |
Static Public Attributes | |
static bool | gSaveValues = true |
Protected Member Functions | |
void | updateGraphicMaillage () |
Mets a jour l'objet graphique des maillage apres calcul. More... | |
Protected Member Functions inherited from OPrototype | |
OPrototype () | |
Protected Attributes | |
QString | _auteur |
Nom de l'auteur. More... | |
QString | _dateCreation |
Date de creation. More... | |
QString | _dateModif |
Date de modification. More... | |
QString | _comment |
Commentaires. More... | |
LPTYSiteNode | _pSite |
Site. More... | |
TYTabLPCalcul | _listCalcul |
Liste des Calcul. More... | |
TYTabLPPointControl | _pointsControl |
Liste des points de controles. More... | |
TYTabMaillageGeoNode | _maillages |
Collections de Maillages. More... | |
LPTYCalcul | _pCurrentCalcul |
Un pointeur sur le Calcul courant. More... | |
double | _delaunayTolerance |
Parametres de geometrisation. More... | |
double | _maxDistBetweenPoints |
bool | _useDefaultGeomVal |
bool | _bStatusSolver |
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... | |
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 TYElement * | getInstance (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 OPrototype * | findAndClone (const char *className) |
static int | findPrototype (const char *className) |
static OPrototype * | safeDownCast (OPrototype *pObject) |
static void | add_factory (const char *, IOProtoFactory::ptr_type factory) |
classe de definition d'un projet.
Definition at line 46 of file TYProjet.h.
TYProjet::TYProjet | ( | ) |
Constructeur. Le constructeur de la classe TYProjet.
Definition at line 39 of file TYProjet.cpp.
TYProjet::TYProjet | ( | const TYProjet & | other | ) |
Constructeur par copie . Le constructeur par copie de la classe TYProje .
Definition at line 67 of file TYProjet.cpp.
|
virtual |
Destructeur Le destructeur de la classe TYProjet .
Definition at line 72 of file TYProjet.cpp.
bool TYProjet::addCalcul | ( | LPTYCalcul | pCalcul | ) |
Ajout d'un Calcul a la liste des Calcul.
pCalcul | Le Calcul a ajouter. |
Definition at line 412 of file TYProjet.cpp.
bool TYProjet::addMaillage | ( | LPTYMaillageGeoNode | pMaillageGeoNode | ) |
Ajout d'un maillage.
Definition at line 728 of file TYProjet.cpp.
bool TYProjet::addMaillage | ( | LPTYMaillage | pMaillage | ) |
Ajout d'un maillage.
Definition at line 749 of file TYProjet.cpp.
bool TYProjet::addPointControl | ( | LPTYPointControl | pPointControl | ) |
Ajout un nouveau point de controle.
Definition at line 344 of file TYProjet.cpp.
void TYProjet::cleanReceptorsStatus | ( | TYCalcul * | pCalcul | ) |
clean status of control points and noise maps
Definition at line 1038 of file TYProjet.cpp.
LPTYCalcul TYProjet::duplicateCalcul | ( | const LPTYCalcul | pCalcul | ) |
Duplique pCalcul.
pCalcul | Calcul a dupliquer. |
Definition at line 584 of file TYProjet.cpp.
copie l'etat des points de controle pour un calcul pour un autre calcul
pCalculRef | : Calcul dont l'etat pour les points doit etre copie |
pCalculNew | : Calcul pour lequel l'etat doit etre duplique |
Definition at line 621 of file TYProjet.cpp.
LPTYPointControl TYProjet::duplicatePointControl | ( | const LPTYPointControl & | pPoint | ) |
pPoint.
pPoint | PointControl a dupliquer. |
Definition at line 390 of file TYProjet.cpp.
copie l'etat des points de controle pour un calcul pour un autre calcul
pCalculRef | : Calcul dont l'etat pour les points doit etre copie |
pCalculNew | : Calcul pour lequel l'etat doit etre duplique |
Definition at line 610 of file TYProjet.cpp.
LPTYMaillageGeoNode TYProjet::findMaillage | ( | const LPTYMaillage | pMaillage | ) |
Retrouve le GeoNode associe a un maillage.
pMaillage | L'element a chercher. |
Definition at line 818 of file TYProjet.cpp.
void TYProjet::forceUseDefault | ( | ) |
Force l'utilisation des parametres par defaut.
Definition at line 659 of file TYProjet.cpp.
|
virtual |
Extrait les informations a partir du noeud DOM passe afin de recuperer les parametres de la classe.
domElement | Le noeud DOM a partir duquel les parametres doivent etre recuperes. |
Reimplemented from TYElement.
Definition at line 179 of file TYProjet.cpp.
|
inline |
Get du nom de l'auteur.
Definition at line 95 of file TYProjet.h.
|
inline |
Get des commentaires.
Definition at line 134 of file TYProjet.h.
|
inline |
Set/Get du pointeur du Calcul courant.
Definition at line 361 of file TYProjet.h.
|
inline |
Set/Get du pointeur du Calcul courant.
Definition at line 367 of file TYProjet.h.
|
inline |
Get de la date de creation.
Definition at line 108 of file TYProjet.h.
|
inline |
Get de la date de modification.
Definition at line 121 of file TYProjet.h.
const double TYProjet::getDefaultDelaunayTolerence | ( | ) | const |
Relecture de la valeur de tolerence de Delaunay par defaut.
Definition at line 666 of file TYProjet.cpp.
const double TYProjet::getDefaultDMax | ( | ) | const |
Relecture de la distance minimale entre deux points par defaut.
Definition at line 684 of file TYProjet.cpp.
|
inline |
|
inline |
Definition at line 418 of file TYProjet.h.
|
inline |
Definition at line 428 of file TYProjet.h.
|
inline |
Definition at line 429 of file TYProjet.h.
|
inline |
Set/Get de la liste des Calcul.
Definition at line 317 of file TYProjet.h.
|
inline |
Set/Get de la liste des Calcul.
Definition at line 322 of file TYProjet.h.
|
inline |
Retourne un maillage a partir de son index.
Definition at line 272 of file TYProjet.h.
|
inline |
Get de la collection de maillages.
Definition at line 221 of file TYProjet.h.
|
inline |
|
inline |
Retourne un point de controle.
Definition at line 194 of file TYProjet.h.
|
inline |
Set/Get du maillage des points de controle.
Definition at line 165 of file TYProjet.h.
|
inline |
Set/Get du maillage des points de controle.
Definition at line 169 of file TYProjet.h.
|
inline |
Get du site.
Definition at line 147 of file TYProjet.h.
|
inline |
|
inline |
Get/Set du statut de disponibilite du solveur du calcul courant.
const bool getStatusSolver() void setStatusSolver(const bool& bStatus)
Definition at line 473 of file TYProjet.h.
|
inline |
Definition at line 474 of file TYProjet.h.
|
inline |
Definition at line 439 of file TYProjet.h.
|
inline |
Definition at line 440 of file TYProjet.h.
bool TYProjet::operator!= | ( | const TYProjet & | other | ) | const |
Operateur !=.
Definition at line 121 of file TYProjet.cpp.
bool TYProjet::operator== | ( | const TYProjet & | other | ) | const |
Operateur ==.
Definition at line 100 of file TYProjet.cpp.
void TYProjet::remAllCalcul | ( | ) |
Suppression de tous les elements.
Definition at line 465 of file TYProjet.cpp.
bool TYProjet::remAllMaillage | ( | ) |
Suppression de tous les maillages.
Definition at line 810 of file TYProjet.cpp.
bool TYProjet::remAllPointControl | ( | ) |
Supprime tous les points de controle.
Definition at line 403 of file TYProjet.cpp.
bool TYProjet::remCalcul | ( | const LPTYCalcul | pCalcul | ) |
Suppression d'un Calcul a la liste des Calcul.
pCalcul | Le Calcul a supprimer. |
Definition at line 422 of file TYProjet.cpp.
bool TYProjet::remCalcul | ( | QString | idCalcul | ) |
Suppression d'un Calcul a la liste des Calcul.
idCalcul | L'ID du Calcul a supprimer. |
Definition at line 449 of file TYProjet.cpp.
void TYProjet::remElmtFromCalculs | ( | TYElement * | pElement | ) |
Supprime un element de tous les calculs.
Definition at line 632 of file TYProjet.cpp.
bool TYProjet::remMaillage | ( | const LPTYMaillageGeoNode | pMaillageGeoNode | ) |
Suppression d'un maillage.
Definition at line 763 of file TYProjet.cpp.
bool TYProjet::remMaillage | ( | const LPTYMaillage | pMaillage | ) |
Suppression d'un maillage.
Definition at line 754 of file TYProjet.cpp.
bool TYProjet::remMaillage | ( | QString | idMaillage | ) |
Suppression d'un maillage a partir de son identifiant.
Definition at line 791 of file TYProjet.cpp.
bool TYProjet::remPointControl | ( | LPTYPointControl | pPointControl | ) |
Supprime un point de controle.
Definition at line 361 of file TYProjet.cpp.
void TYProjet::remTabElmtFromCalculs | ( | vector< LPTYGeometryNode > | tabGeoNode | ) |
Supprime un ensemble d'elements des calculs.
Definition at line 640 of file TYProjet.cpp.
void TYProjet::selectActivePoint | ( | const LPTYSiteNode | pSite | ) |
Selectionne les points actifs du maillage.
Definition at line 954 of file TYProjet.cpp.
|
inline |
Set du nom de l'auteur.
Definition at line 101 of file TYProjet.h.
|
inline |
Set des commentaires.
Definition at line 140 of file TYProjet.h.
void TYProjet::setCurrentCalcul | ( | LPTYCalcul | pCurCalcul | ) |
Set/Get du pointeur du Calcul courant.
Definition at line 470 of file TYProjet.cpp.
|
inline |
Set de la date de creation.
Definition at line 114 of file TYProjet.h.
|
inline |
Set de la date de modification.
Definition at line 127 of file TYProjet.h.
|
inline |
Get/Set du parametre de Delaunay.
double getDelaunayTolerence() const double getDelaunayTolerence()
Definition at line 416 of file TYProjet.h.
void TYProjet::setDMax | ( | const double & | val | ) |
Get/set de la distance max entre les points.
double getDMax() const double getDMax()
Definition at line 703 of file TYProjet.cpp.
|
inline |
Set/Get de la liste des Calcul.
Definition at line 327 of file TYProjet.h.
|
inline |
Set/Get du maillage des points de controle.
Definition at line 173 of file TYProjet.h.
void TYProjet::setSite | ( | const LPTYSiteNode | pSite | ) |
Set du site.
Definition at line 709 of file TYProjet.cpp.
|
inline |
|
inline |
Get/Set de l'option d'utilisation des valeurs par defaut.
bool getUseDefGeomVal() const bool getUseDefGeomVal()
Definition at line 438 of file TYProjet.h.
|
virtual |
Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).
Reimplemented from TYElement.
Definition at line 126 of file TYProjet.cpp.
|
virtual |
Construit une arborescence DOM a partir du noeud passe afin de sauvegarder les parametres au format XML.
domElement | Le noeud DOM parent a partir duquel l'arborescence doit etre creee. |
Reimplemented from TYElement.
Definition at line 131 of file TYProjet.cpp.
bool TYProjet::updateAltiMaillage | ( | TYMaillageGeoNode * | pMaillageGeoNode, |
const TYAltimetrie * | pAlti | ||
) |
Met a niveau l'altimetrie d'un maillage.
Definition at line 851 of file TYProjet.cpp.
bool TYProjet::updateAltiMaillage | ( | TYMaillageGeoNode * | pMaillageGeoNode | ) |
Met a niveau l'altimetrie d'un maillage.
Definition at line 845 of file TYProjet.cpp.
bool TYProjet::updateAltiPointControle | ( | TYPointControl * | pPtControl, |
const TYAltimetrie * | pAlti | ||
) |
Met a niveau l'altimetrie d'un point de controle
Definition at line 510 of file TYProjet.cpp.
bool TYProjet::updateAltiRecepteurs | ( | ) |
Mets a jour l'altitude des maillage en fonction de l'altimetrie du site associe au projet parent a ce calcul.
Definition at line 542 of file TYProjet.cpp.
bool TYProjet::updateAltiRecepteurs | ( | const TYAltimetrie * | pAlti | ) |
void TYProjet::updateCalculsWithMaillage | ( | TYMaillage * | pMaillage | ) |
Definition at line 720 of file TYProjet.cpp.
|
virtual |
Definition at line 1051 of file TYProjet.cpp.
|
protected |
Mets a jour l'objet graphique des maillage apres calcul.
Definition at line 834 of file TYProjet.cpp.
void TYProjet::verifGeometricParam | ( | ) |
verification des parametres de geometrisation (si necessaire)
Definition at line 649 of file TYProjet.cpp.
|
protected |
Nom de l'auteur.
Definition at line 490 of file TYProjet.h.
|
protected |
Definition at line 519 of file TYProjet.h.
|
protected |
Commentaires.
Definition at line 496 of file TYProjet.h.
|
protected |
Date de creation.
Definition at line 492 of file TYProjet.h.
|
protected |
Date de modification.
Definition at line 494 of file TYProjet.h.
|
protected |
Parametres de geometrisation.
Definition at line 514 of file TYProjet.h.
|
protected |
Liste des Calcul.
Definition at line 502 of file TYProjet.h.
|
protected |
Collections de Maillages.
Definition at line 508 of file TYProjet.h.
|
protected |
Definition at line 515 of file TYProjet.h.
|
protected |
Un pointeur sur le Calcul courant.
Definition at line 511 of file TYProjet.h.
|
protected |
Liste des points de controles.
Definition at line 505 of file TYProjet.h.
|
protected |
Site.
Definition at line 499 of file TYProjet.h.
|
protected |
Definition at line 516 of file TYProjet.h.
|
static |
Definition at line 485 of file TYProjet.h.