|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Calculation program. More...
#include <TYCalcul.h>


Public Types | |
| enum | CalculState { Locked , Actif } |
| The different possible states for a calculation. More... | |
Public Member Functions | |
| TYCalcul () | |
| TYCalcul (const TYCalcul &other) | |
| ** More... | |
| virtual | ~TYCalcul () |
| Destructor. Destructor of the TYCalcul class. More... | |
| TYCalcul & | operator= (const TYCalcul &other) |
| Operator =. More... | |
| bool | operator== (const TYCalcul &other) const |
| Operator ==. More... | |
| bool | operator!= (const TYCalcul &other) const |
| Operator !=. 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) |
| bool | getPtCtrlStatus (const TYUUID &id_pt) |
| Get the status of a point for this calcul. More... | |
| void | setPtCtrlStatus (const TYUUID &id_pt, bool bStatus) |
| Set the status of a point for this calcul. More... | |
| void | purge () |
| Reset this calculation. More... | |
| void | clearResult () |
| TYProjet * | getProjet () |
| int | getNumero () const |
| Get the number. More... | |
| void | setNumero (int num) |
| Set the number. More... | |
| QString | getAuteur () const |
| Get zuthor name. More... | |
| void | setAuteur (QString auteur) |
| Set author name. More... | |
| QString | getDateCreation () const |
| Set/Get of creation date. More... | |
| void | setDateCreation (const QString &date) |
| QString | getDateModif () const |
| Get modification date. More... | |
| void | setDateModif (const QString &date) |
| Set modification date. More... | |
| QString | getComment () const |
| Get comments. More... | |
| void | setComment (const QString &comment) |
| Set comments. More... | |
| bool | getIsUpTodate () const |
| Get the calculated state up to date or not link to the infrastructure. More... | |
| void | setIsUpTodate (bool upTodate) |
| Set the calculated state up to date or not link to the infrastructure. More... | |
| TYListID | getElementSelection () const |
| Get the selection of active elements in this Calculation. More... | |
| bool | addToSelection (TYUUID id) |
| Adds the item to the selection of this Calculation. More... | |
| void | addToSelection (TYElement *pElt, bool recursif=true) |
| Adds the item to the selection of this Calculation. More... | |
| bool | remToSelection (TYUUID id) |
| Removes the item from the selection of this Calculation. More... | |
| bool | remToSelection (TYElement *pElt, bool recursif=true) |
| Removes the item from the selection of this Calculation. More... | |
| bool | isInSelection (TYUUID id) |
| Tests if the element is present in the selection of this Calculation. More... | |
| bool | isInSelection (LPTYElement pElt) |
| Tests if the element is present in the selection of this Calculation. More... | |
| TYMapPtrElementBool & | getEmitAcVolNode () |
| Get array containing the state of each volumeNode in transmission. More... | |
| const TYMapPtrElementBool & | getEmitAcVolNode () const |
| Get array containing the state of each volumeNode in transmission. More... | |
| TYMapPtrElementInt & | getMapElementRegime () |
| Get from the regime. More... | |
| const TYMapPtrElementInt & | getMapElementRegime () const |
| Get regime tab. More... | |
| bool | addPtCtrlToResult (LPTYPointControl pPoint) |
| Add a checkpoint to the results array. More... | |
| bool | remPtCtrlFromResult (LPTYPointControl pPoint) |
| Deletes a checkpoint from the results table. More... | |
| LPTYSpectre | getSpectre (const TYUUID &id_pt) |
| LPTYSpectre | getSpectre (const TYPointControl *pPoint) |
| void | setSpectre (const TYUUID &id_pt, TYSpectre *pSpectre) |
| void | setSpectre (TYPointCalcul *pPoint, TYSpectre *pSpectre) |
| const LPTYResultat | getResultat () const |
| Get result. More... | |
| LPTYResultat | getResultat () |
| Get result. More... | |
| void | getCalculElements (LPTYSiteNode pSite) |
| Recover all the elements of the scene which take part in the calculation. More... | |
| void | setSite (LPTYSiteNode pSite) |
| Definition of the site on which the calculation will be done. More... | |
| LPTYSiteNode | getSite () |
| Get calculation site. More... | |
| void | setState (int state) |
| Set editable attribute. More... | |
| int | getState () |
| Get calculation state. More... | |
| const int | getState () const |
| Get calculation state. More... | |
| bool | getStatusPartialResult () const |
| Get conservation of partial results. More... | |
| void | setStatusPartialResult (const bool &status) |
| Partial result retention set. More... | |
| void | setSolverId (const OGenID &iD) |
| Set solver ID. More... | |
| const OGenID | getSolverId () const |
| Get solver ID. More... | |
| OGenID | getSolverId () |
| Get solver ID. More... | |
| void | goPostprocessing () |
| TYTabRay & | getTabRays () |
| Returns an array containing all the rays found by ray tracing. More... | |
| std::vector< LPTYSpectre > * | getSpectrumDatas (const TYUUID &id) |
| Return spectrums for a given noise map. More... | |
| std::vector< LPTYSpectre > * | getSpectrumDatas (TYMaillage *pMaillage) |
| Return spectrums for a given noise map. More... | |
| bool | addMaillage (TYMaillage *pMaillage) |
| Add this maillage to calcul. More... | |
| bool | remMaillage (TYMaillage *pMaillage) |
| Remove a maillage from calcul. More... | |
| bool | updateMaillage (TYMaillage *pMaillage) |
| update a noisemap after modification More... | |
| void | setNoiseMapSpectrums (const TYMaillage *pMaillage, TYTabLPSpectre &tabSpectrum) |
| set spectrum vector for a given noise map More... | |
| void | setNoiseMapSpectrums (const TYUUID &id, TYTabLPSpectre &tabSpectrum) |
| set spectrum vector for a given noise map More... | |
| TYMapIdSpectre | getMapPointCtrlSpectre () |
| Returns map of control points with spectrum. More... | |
| bool | hasResuCtrlPoints () |
| Method used for migrating T310 project \ returns true if ResuCtrlPnts exists in xml project else returns false. More... | |
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 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 |
| bool | callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL) |
| std::string | getMetierName () |
| void * | getAllUses () |
| void | setAllUses (void *allUses) |
| void | cleanAllUses () |
| 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 |
Public Attributes | |
| QString | solverParams |
Protected Attributes | |
| OGenID | _solverId |
| int | _numero |
| Calculation number. More... | |
| QString | _auteur |
| Author name. More... | |
| QString | _dateCreation |
| Creation date. More... | |
| QString | _dateModif |
| Modification date. More... | |
| QString | _comment |
| Comments. More... | |
| bool | _upTodate |
| Calculation up to date or not. More... | |
| int | _state |
| Calculation state Active or Blocked. More... | |
| LPTYSiteNode | _pSiteCalcul |
| Site on which the calculation will be carried out. More... | |
| TYListID | _elementSelection |
| Array of IDs of elements present in the scene. More... | |
| TYMapPtrElementBool | _emitAcVolNode |
| State (radiating/non-radiating) of the elements of the scene. More... | |
| TYMapPtrElementInt | _mapElementRegime |
| Regime of scene elements. More... | |
| TYMapIdSpectre | _mapPointCtrlSpectre |
| TYMapIdTabSpectre | _noiseMapsSpectrums |
| LPTYResultat | _pResultat |
| Results. More... | |
| TYTabRay | _tabRays |
| bool | _hasResuCtrlPnts |
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 | |
| void | clearCtrlPointsSpectrums () |
| void | clearNoiseMapsSpectrums () |
| void | copyNoiseMapSpectrums (TYMapIdTabSpectre &otherNoiseMap) |
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) |
Protected Member Functions inherited from OPrototype | |
| OPrototype () | |
Calculation program.
The program that defines the Calculations.
Definition at line 49 of file TYCalcul.h.
| enum enum TYCalcul::CalculState |
The different possible states for a calculation.
| Enumerator | |
|---|---|
| Locked | The calculation cannot be executed (modified). |
| Actif | The calculation can be executed (modified). |
Definition at line 60 of file TYCalcul.h.
| TYCalcul::TYCalcul | ( | ) |
| TYCalcul::TYCalcul | ( | const TYCalcul & | other | ) |
**
Constructor by copy.
| other | Constructor by copying the TYCalcul class. |
Definition at line 58 of file TYCalcul.cpp.
|
virtual |
Destructor. Destructor of the TYCalcul class.
Definition at line 63 of file TYCalcul.cpp.

| bool TYCalcul::addMaillage | ( | TYMaillage * | pMaillage | ) |
Add this maillage to calcul.
Definition at line 1312 of file TYCalcul.cpp.


| bool TYCalcul::addPtCtrlToResult | ( | LPTYPointControl | pPoint | ) |
Add a checkpoint to the results array.
| pPoint | Pointer to the point to add |
Definition at line 1140 of file TYCalcul.cpp.


| bool TYCalcul::addToSelection | ( | TYElement * | pElt, |
| bool | recursif = true |
||
| ) |
Adds the item to the selection of this Calculation.
Definition at line 885 of file TYCalcul.cpp.

| bool TYCalcul::addToSelection | ( | TYUUID | id | ) |
Adds the item to the selection of this Calculation.
Definition at line 872 of file TYCalcul.cpp.


|
private |
|
private |
| void TYCalcul::clearResult | ( | ) |
Empty the result of this calculation
Definition at line 844 of file TYCalcul.cpp.


|
private |
|
virtual |
Performs a copy by allocating memory (deep copy) and not by copying only the pointers (shallow copy). This method is used as the equal operator. ID may not be copied, parent is never copied.
| pOther | The element to copy. |
| copyId | Copy unique id or not. |
| pUseCopyTag | copy tag usage |
true if copying is possible; false otherwise. Reimplemented from TYElement.
Definition at line 178 of file TYCalcul.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 348 of file TYCalcul.cpp.

|
inline |
| void TYCalcul::getCalculElements | ( | LPTYSiteNode | pSite | ) |
Recover all the elements of the scene which take part in the calculation.
| pSite | Site from which the selection is made. |
Definition at line 1037 of file TYCalcul.cpp.


|
inline |
Get comments.
Definition at line 218 of file TYCalcul.h.

|
inline |
Set/Get of creation date.
fn QString getDateCreation() void setDateCreation(const QString& date)
Definition at line 185 of file TYCalcul.h.

|
inline |
Get modification date.
fn QString getDateModif()
Definition at line 199 of file TYCalcul.h.

|
inline |
Get the selection of active elements in this Calculation.
Definition at line 256 of file TYCalcul.h.

|
inline |
Get array containing the state of each volumeNode in transmission.
Definition at line 304 of file TYCalcul.h.

|
inline |
Get array containing the state of each volumeNode in transmission.
Definition at line 313 of file TYCalcul.h.
|
inline |
Get the calculated state up to date or not link to the infrastructure.
Definition at line 237 of file TYCalcul.h.

|
inline |
Get from the regime.
Definition at line 323 of file TYCalcul.h.

|
inline |
| TYMapIdSpectre TYCalcul::getMapPointCtrlSpectre | ( | ) |
Returns map of control points with spectrum.
Definition at line 1386 of file TYCalcul.cpp.

|
inline |
Get the number.
Definition at line 146 of file TYCalcul.h.

| TYProjet * TYCalcul::getProjet | ( | ) |
Returns the parent project.
Definition at line 68 of file TYCalcul.cpp.


| bool TYCalcul::getPtCtrlStatus | ( | const TYUUID & | id_pt | ) |
Get the status of a point for this calcul.
Definition at line 1261 of file TYCalcul.cpp.
|
inline |
|
inline |
Get result.
Definition at line 367 of file TYCalcul.h.

| LPTYSiteNode TYCalcul::getSite | ( | ) |
Get calculation site.
Definition at line 856 of file TYCalcul.cpp.


|
inline |
|
inline |
Get solver ID.
Definition at line 465 of file TYCalcul.h.

| LPTYSpectre TYCalcul::getSpectre | ( | const TYPointControl * | pPoint | ) |
| LPTYSpectre TYCalcul::getSpectre | ( | const TYUUID & | id_pt | ) |
Get the spectrum for a given control point
Definition at line 1223 of file TYCalcul.cpp.

| std::vector< LPTYSpectre > * TYCalcul::getSpectrumDatas | ( | const TYUUID & | id | ) |
Return spectrums for a given noise map.
Definition at line 1300 of file TYCalcul.cpp.

| std::vector< LPTYSpectre > * TYCalcul::getSpectrumDatas | ( | TYMaillage * | pMaillage | ) |
Return spectrums for a given noise map.
Definition at line 1295 of file TYCalcul.cpp.

|
inline |
Get calculation state.
Definition at line 416 of file TYCalcul.h.

|
inline |
|
inline |
Get conservation of partial results.
Definition at line 436 of file TYCalcul.h.

|
inline |
Returns an array containing all the rays found by ray tracing.
Definition at line 488 of file TYCalcul.h.
| void TYCalcul::goPostprocessing | ( | ) |
|
inline |
Method used for migrating T310 project \ returns true if ResuCtrlPnts exists in xml project else returns false.
Definition at line 543 of file TYCalcul.h.

|
inline |
Tests if the element is present in the selection of this Calculation.
Definition at line 293 of file TYCalcul.h.

| bool TYCalcul::isInSelection | ( | TYUUID | id | ) |
Tests if the element is present in the selection of this Calculation.
Definition at line 1003 of file TYCalcul.cpp.

| bool TYCalcul::operator!= | ( | const TYCalcul & | other | ) | const |
| bool TYCalcul::operator== | ( | const TYCalcul & | other | ) | const |
Operator ==.
Definition at line 100 of file TYCalcul.cpp.

| void TYCalcul::purge | ( | ) |
Reset this calculation.
Definition at line 824 of file TYCalcul.cpp.


| bool TYCalcul::remMaillage | ( | TYMaillage * | pMaillage | ) |
Remove a maillage from calcul.
Definition at line 1358 of file TYCalcul.cpp.


| bool TYCalcul::remPtCtrlFromResult | ( | LPTYPointControl | pPoint | ) |
Deletes a checkpoint from the results table.
| pPoint | Pointer to the point to delete |
Definition at line 1163 of file TYCalcul.cpp.


| bool TYCalcul::remToSelection | ( | TYElement * | pElt, |
| bool | recursif = true |
||
| ) |
Removes the item from the selection of this Calculation.
Definition at line 968 of file TYCalcul.cpp.

| bool TYCalcul::remToSelection | ( | TYUUID | id | ) |
Removes the item from the selection of this Calculation.
Definition at line 961 of file TYCalcul.cpp.


|
inline |
Set author name.
Definition at line 174 of file TYCalcul.h.
|
inline |
Set comments.
Definition at line 227 of file TYCalcul.h.
|
inline |
Definition at line 189 of file TYCalcul.h.
|
inline |
Set modification date.
fn void setDateModif(const QString& date)
Definition at line 208 of file TYCalcul.h.
|
inline |
Set the calculated state up to date or not link to the infrastructure.
Definition at line 246 of file TYCalcul.h.

| void TYCalcul::setNoiseMapSpectrums | ( | const TYMaillage * | pMaillage, |
| TYTabLPSpectre & | tabSpectrum | ||
| ) |
set spectrum vector for a given noise map
Definition at line 1375 of file TYCalcul.cpp.

| void TYCalcul::setNoiseMapSpectrums | ( | const TYUUID & | id, |
| TYTabLPSpectre & | tabSpectrum | ||
| ) |
set spectrum vector for a given noise map
Definition at line 1381 of file TYCalcul.cpp.
|
inline |
Set the number.
Definition at line 155 of file TYCalcul.h.

| void TYCalcul::setPtCtrlStatus | ( | const TYUUID & | id_pt, |
| bool | bStatus | ||
| ) |
Set the status of a point for this calcul.
Definition at line 1273 of file TYCalcul.cpp.

| void TYCalcul::setSite | ( | LPTYSiteNode | pSite | ) |
Definition of the site on which the calculation will be done.
Definition at line 867 of file TYCalcul.cpp.

|
inline |
Set solver ID.
Definition at line 455 of file TYCalcul.h.

Set the spectrum for a given control point
Definition at line 1256 of file TYCalcul.cpp.

| void TYCalcul::setSpectre | ( | TYPointCalcul * | pPoint, |
| TYSpectre * | pSpectre | ||
| ) |
|
inline |
Set editable attribute.
Definition at line 406 of file TYCalcul.h.

|
inline |
Partial result retention set.
Definition at line 445 of file TYCalcul.h.


|
virtual |
Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).
Reimplemented from TYElement.
Definition at line 228 of file TYCalcul.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 233 of file TYCalcul.cpp.

| bool TYCalcul::updateMaillage | ( | TYMaillage * | pMaillage | ) |
update a noisemap after modification
Definition at line 1336 of file TYCalcul.cpp.

|
protected |
Author name.
Definition at line 561 of file TYCalcul.h.
|
protected |
Comments.
Definition at line 567 of file TYCalcul.h.
|
protected |
Creation date.
Definition at line 563 of file TYCalcul.h.
|
protected |
Modification date.
Definition at line 565 of file TYCalcul.h.
|
protected |
Array of IDs of elements present in the scene.
Definition at line 578 of file TYCalcul.h.
|
protected |
State (radiating/non-radiating) of the elements of the scene.
Definition at line 581 of file TYCalcul.h.
|
protected |
Definition at line 600 of file TYCalcul.h.
|
protected |
Regime of scene elements.
Definition at line 584 of file TYCalcul.h.
|
protected |
Definition at line 587 of file TYCalcul.h.
|
protected |
Definition at line 590 of file TYCalcul.h.
|
protected |
Calculation number.
Definition at line 559 of file TYCalcul.h.
|
protected |
Results.
Definition at line 593 of file TYCalcul.h.
|
protected |
Site on which the calculation will be carried out.
Definition at line 575 of file TYCalcul.h.
|
protected |
Definition at line 556 of file TYCalcul.h.
|
protected |
Calculation state Active or Blocked.
Definition at line 572 of file TYCalcul.h.
|
protected |
Definition at line 596 of file TYCalcul.h.
|
protected |
Calculation up to date or not.
Definition at line 570 of file TYCalcul.h.
| QString TYCalcul::solverParams |
Definition at line 482 of file TYCalcul.h.