Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
#include <TYGeometryNode.h>
Public Member Functions | |
TYGeometryNode () | |
TYGeometryNode (TYElement *pElt, TYElement *pParent=NULL) | |
TYGeometryNode (LPTYElement pElt, TYElement *pParent=NULL) | |
TYGeometryNode (const TYRepere &repere, TYElement *pElt) | |
TYGeometryNode (const TYRepere &repere, LPTYElement pElt) | |
TYGeometryNode (TYElement *pElt, const OMatrix &matrix) | |
TYGeometryNode (LPTYElement pElt, const OMatrix &matrix) | |
TYGeometryNode (const TYGeometryNode &other) | |
virtual | ~TYGeometryNode () |
virtual DOM_Element | toXML (DOM_Element &domElement) |
virtual int | fromXML (DOM_Element domElement) |
virtual void | getChilds (LPTYElementArray &childs, bool recursif=true) |
TYElement * | getElement () const |
void | setElement (LPTYElement pElt) |
void | setElement (TYElement *pElt) |
void | delElement () |
const ORepere3D & | getORepere3D () const |
ORepere3D & | getORepere3D () |
void | setRepere (const ORepere3D &repere) |
OMatrix | getMatrix () const |
void | setMatrix (const OMatrix &matrix) |
TYGeometryNode & | operator= (const TYGeometryNode &other) |
bool | operator== (const TYGeometryNode &other) const |
bool | operator!= (const TYGeometryNode &other) const |
virtual bool | deepCopy (const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false) |
OMatrix | localToGlobal () const |
OMatrix | globalToLocal () const |
void | setPosition (const OPoint3D &pos) |
Set the position of the element. More... | |
OPoint3D | position () |
Get the position of the element. More... | |
void | setRotation (const OPoint3D &rot) |
Set the rotation angle along axis x, y & z represented as an OPoint3D. More... | |
OPoint3D | rotation () |
Get the rotation angle along axis x, y & z represented as an OPoint3D. More... | |
double | getHauteur () |
Get the height above the ground. More... | |
void | setHauteur (const double &hauteur) |
Set the heigth above the ground. More... | |
TYGeometryNode * | GetGeoNodeParent () const |
void | GetGeoNodeParentList (TYListPtrGeoNode &GetGeoNodeParents) |
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 std::string | toString () const |
bool | callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL) |
std::string | getMetierName () |
virtual void | updateCurrentCalcul (TYListID &listID, 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 Member Functions | |
static TYGeometryNode * | GetGeoNode (TYElement *pElement) |
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 | |
void | addToTheMap () |
void | removeFromTheMap () |
Protected Member Functions inherited from OPrototype | |
OPrototype () | |
Static Protected Member Functions | |
static TYMapPtrGeoNode * | GetGeoNodeMap () |
static TYListPtrGeoNode * | GetGeoNodeDoublonsList () |
Protected Attributes | |
LPTYElement | _pElement |
L'instance de l'element geometrique. More... | |
TYRepere | _repere |
Le repere definissant la position et l'orientation de l'element. More... | |
double | _hauteur |
Hauteur de l'element par rapport au sol. 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... | |
Static Protected Attributes | |
static TYMapPtrGeoNode * | _geoNodeMap = NULL |
static TYListPtrGeoNode * | _geoNodeDoublonsList = NULL |
Definition at line 48 of file TYGeometryNode.h.
TYGeometryNode::TYGeometryNode | ( | ) |
Constructeur par defaut.
Definition at line 100 of file TYGeometryNode.cpp.
Constructeur.
pElt | Un element a associer a ce noeud. |
pParent | Le parent a la fois de l'element et du GeoNode. |
Definition at line 108 of file TYGeometryNode.cpp.
TYGeometryNode::TYGeometryNode | ( | LPTYElement | pElt, |
TYElement * | pParent = NULL |
||
) |
Constructeur a partir d'un smart pointer sur un element.
pElt | Un element a associer a ce noeud (smart pointer). |
pParent | Le parent a la fois de l'element et du GeoNode. |
Definition at line 122 of file TYGeometryNode.cpp.
Constructeur.
repere | Le repere associe a l'element. |
pElt | Un element a associer a ce noeud. |
Definition at line 136 of file TYGeometryNode.cpp.
TYGeometryNode::TYGeometryNode | ( | const TYRepere & | repere, |
LPTYElement | pElt | ||
) |
Constructeur.
repere | Le repere associe a l'element. |
pElt | Un element a associer a ce noeud (smart pointer). |
Definition at line 145 of file TYGeometryNode.cpp.
Constructeur.
pElt | Un element a associer a ce noeud. |
matrix | La matrice associee a l'element. |
Definition at line 154 of file TYGeometryNode.cpp.
TYGeometryNode::TYGeometryNode | ( | LPTYElement | pElt, |
const OMatrix & | matrix | ||
) |
Constructeur.
pElt | Un element a associer a ce noeud (smart pointer). |
matrix | La matrice associee a l'element. |
Definition at line 163 of file TYGeometryNode.cpp.
TYGeometryNode::TYGeometryNode | ( | const TYGeometryNode & | other | ) |
Constructeur de copie.
other | Un autre objet du meme type. |
Definition at line 172 of file TYGeometryNode.cpp.
|
virtual |
Destructeur.
Definition at line 178 of file TYGeometryNode.cpp.
|
protected |
Definition at line 52 of file TYGeometryNode.cpp.
|
virtual |
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.
pOther | L'element a copier. |
copyId | Copie l'identifiant unique ou pas. |
true
si la copie est possible; false
sinon. Reimplemented from TYElement.
Definition at line 357 of file TYGeometryNode.cpp.
void TYGeometryNode::delElement | ( | ) |
Supprime l'element si celui-ci existe.
Definition at line 314 of file TYGeometryNode.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 207 of file TYGeometryNode.cpp.
|
virtual |
Collecte les enfants de cet element de facon recursive ou non.
Reimplemented from TYElement.
Definition at line 289 of file TYGeometryNode.cpp.
|
inline |
Get of the element.
Definition at line 127 of file TYGeometryNode.h.
|
static |
Definition at line 386 of file TYGeometryNode.cpp.
|
staticprotected |
|
staticprotected |
TYGeometryNode * TYGeometryNode::GetGeoNodeParent | ( | ) | const |
Definition at line 395 of file TYGeometryNode.cpp.
void TYGeometryNode::GetGeoNodeParentList | ( | TYListPtrGeoNode & | GetGeoNodeParents | ) |
Definition at line 421 of file TYGeometryNode.cpp.
|
inline |
Get the height above the ground.
Definition at line 219 of file TYGeometryNode.h.
|
inline |
Set/Get de la matrice de changement de repere.
Definition at line 162 of file TYGeometryNode.h.
|
inline |
Set/Get du repere.
Definition at line 151 of file TYGeometryNode.h.
|
inline |
Definition at line 154 of file TYGeometryNode.h.
OMatrix TYGeometryNode::globalToLocal | ( | ) | const |
Determine la matrice de passage du repere absolu vers le repere local.
Definition at line 445 of file TYGeometryNode.cpp.
OMatrix TYGeometryNode::localToGlobal | ( | ) | const |
Determine la matrice de passage du repere local vers le repere absolu.
Definition at line 431 of file TYGeometryNode.cpp.
bool TYGeometryNode::operator!= | ( | const TYGeometryNode & | other | ) | const |
Operateur de comparaison.
Definition at line 352 of file TYGeometryNode.cpp.
TYGeometryNode & TYGeometryNode::operator= | ( | const TYGeometryNode & | other | ) |
Operateur de copie.
Definition at line 327 of file TYGeometryNode.cpp.
bool TYGeometryNode::operator== | ( | const TYGeometryNode & | other | ) | const |
Operateur de comparaison.
Definition at line 340 of file TYGeometryNode.cpp.
|
inline |
Get the position of the element.
Definition at line 204 of file TYGeometryNode.h.
|
protected |
Definition at line 68 of file TYGeometryNode.cpp.
OPoint3D TYGeometryNode::rotation | ( | ) |
Get the rotation angle along axis x, y & z represented as an OPoint3D.
Definition at line 500 of file TYGeometryNode.cpp.
void TYGeometryNode::setElement | ( | LPTYElement | pElt | ) |
Set de l'element (smart pointer).
pElt | Le nouvel element (smart pointer). |
Definition at line 299 of file TYGeometryNode.cpp.
void TYGeometryNode::setElement | ( | TYElement * | pElt | ) |
Set de l'element (pointeur classique).
pElt | Le nouvel element (pointeur classique). |
Definition at line 304 of file TYGeometryNode.cpp.
|
inline |
Set the heigth above the ground.
Definition at line 224 of file TYGeometryNode.h.
void TYGeometryNode::setMatrix | ( | const OMatrix & | matrix | ) |
Set/Get de la matrice de changement de repere.
Definition at line 461 of file TYGeometryNode.cpp.
void TYGeometryNode::setPosition | ( | const OPoint3D & | pos | ) |
Set the position of the element.
Definition at line 467 of file TYGeometryNode.cpp.
|
inline |
void TYGeometryNode::setRotation | ( | const OPoint3D & | rot | ) |
Set the rotation angle along axis x, y & z represented as an OPoint3D.
Definition at line 476 of file TYGeometryNode.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 190 of file TYGeometryNode.cpp.
|
staticprotected |
Definition at line 247 of file TYGeometryNode.h.
|
staticprotected |
Definition at line 241 of file TYGeometryNode.h.
|
protected |
Hauteur de l'element par rapport au sol.
Definition at line 262 of file TYGeometryNode.h.
|
protected |
L'instance de l'element geometrique.
Definition at line 256 of file TYGeometryNode.h.
|
protected |
Le repere definissant la position et l'orientation de l'element.
Definition at line 259 of file TYGeometryNode.h.