Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TYGeometryNode Class Reference

#include <TYGeometryNode.h>

Inheritance diagram for TYGeometryNode:
Inheritance graph
[legend]
Collaboration diagram for TYGeometryNode:
Collaboration graph
[legend]

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)
 
TYElementgetElement () const
 
void setElement (LPTYElement pElt)
 
void setElement (TYElement *pElt)
 
void delElement ()
 
const ORepere3DgetORepere3D () const
 
ORepere3DgetORepere3D ()
 
void setRepere (const ORepere3D &repere)
 
OMatrix getMatrix () const
 
void setMatrix (const OMatrix &matrix)
 
TYGeometryNodeoperator= (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...
 
TYGeometryNodeGetGeoNodeParent () 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 TYUUIDgetID () 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)
 
TYElementgetParent () const
 
virtual void setIsAcousticModified (bool isModified)
 
bool getIsAcousticModified ()
 
virtual void setIsGeometryModified (bool isModified)
 
bool getIsGeometryModified ()
 
TYElementoperator= (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 OPrototypeclone () const =0
 
virtual const char * getClassName () const
 
bool isA (const char *className) const
 

Static Public Member Functions

static TYGeometryNodeGetGeoNode (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 TYElementgetInstance (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 OPrototypefindAndClone (const char *className)
 
static int findPrototype (const char *className)
 
static OPrototypesafeDownCast (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 TYMapPtrGeoNodeGetGeoNodeMap ()
 
static TYListPtrGeoNodeGetGeoNodeDoublonsList ()
 

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
 

Detailed Description

Definition at line 48 of file TYGeometryNode.h.

Constructor & Destructor Documentation

◆ TYGeometryNode() [1/8]

TYGeometryNode::TYGeometryNode ( )

Constructeur par defaut.

Definition at line 100 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [2/8]

TYGeometryNode::TYGeometryNode ( TYElement pElt,
TYElement pParent = NULL 
)

Constructeur.

Parameters
pEltUn element a associer a ce noeud.
pParentLe parent a la fois de l'element et du GeoNode.

Definition at line 108 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [3/8]

TYGeometryNode::TYGeometryNode ( LPTYElement  pElt,
TYElement pParent = NULL 
)

Constructeur a partir d'un smart pointer sur un element.

Parameters
pEltUn element a associer a ce noeud (smart pointer).
pParentLe parent a la fois de l'element et du GeoNode.

Definition at line 122 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [4/8]

TYGeometryNode::TYGeometryNode ( const TYRepere repere,
TYElement pElt 
)

Constructeur.

Parameters
repereLe repere associe a l'element.
pEltUn element a associer a ce noeud.

Definition at line 136 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [5/8]

TYGeometryNode::TYGeometryNode ( const TYRepere repere,
LPTYElement  pElt 
)

Constructeur.

Parameters
repereLe repere associe a l'element.
pEltUn element a associer a ce noeud (smart pointer).

Definition at line 145 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [6/8]

TYGeometryNode::TYGeometryNode ( TYElement pElt,
const OMatrix matrix 
)

Constructeur.

Parameters
pEltUn element a associer a ce noeud.
matrixLa matrice associee a l'element.

Definition at line 154 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [7/8]

TYGeometryNode::TYGeometryNode ( LPTYElement  pElt,
const OMatrix matrix 
)

Constructeur.

Parameters
pEltUn element a associer a ce noeud (smart pointer).
matrixLa matrice associee a l'element.

Definition at line 163 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ TYGeometryNode() [8/8]

TYGeometryNode::TYGeometryNode ( const TYGeometryNode other)

Constructeur de copie.

Parameters
otherUn autre objet du meme type.

Definition at line 172 of file TYGeometryNode.cpp.

◆ ~TYGeometryNode()

TYGeometryNode::~TYGeometryNode ( )
virtual

Destructeur.

Definition at line 178 of file TYGeometryNode.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addToTheMap()

void TYGeometryNode::addToTheMap ( )
protected

Definition at line 52 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deepCopy()

bool TYGeometryNode::deepCopy ( const TYElement pOther,
bool  copyId = true,
bool  pUseCopyTag = false 
)
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.

Parameters
pOtherL'element a copier.
copyIdCopie l'identifiant unique ou pas.
Returns
true si la copie est possible; false sinon.

Reimplemented from TYElement.

Definition at line 357 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delElement()

void TYGeometryNode::delElement ( )

Supprime l'element si celui-ci existe.

Definition at line 314 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromXML()

int TYGeometryNode::fromXML ( DOM_Element  domElement)
virtual

Extrait les informations a partir du noeud DOM passe afin de recuperer les parametres de la classe.

Parameters
domElementLe noeud DOM a partir duquel les parametres doivent etre recuperes.
Returns
1 si la recuperation des parametres a reussie.

Reimplemented from TYElement.

Definition at line 207 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ getChilds()

void TYGeometryNode::getChilds ( LPTYElementArray childs,
bool  recursif = true 
)
virtual

Collecte les enfants de cet element de facon recursive ou non.

Reimplemented from TYElement.

Definition at line 289 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElement()

TYElement* TYGeometryNode::getElement ( ) const
inline

Get of the element.

Returns
A real pointer on the element.

Definition at line 127 of file TYGeometryNode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetGeoNode()

TYGeometryNode * TYGeometryNode::GetGeoNode ( TYElement pElement)
static

Definition at line 386 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetGeoNodeDoublonsList()

TYListPtrGeoNode * TYGeometryNode::GetGeoNodeDoublonsList ( )
staticprotected

Definition at line 43 of file TYGeometryNode.cpp.

Here is the caller graph for this function:

◆ GetGeoNodeMap()

TYMapPtrGeoNode * TYGeometryNode::GetGeoNodeMap ( )
staticprotected

Definition at line 34 of file TYGeometryNode.cpp.

Here is the caller graph for this function:

◆ GetGeoNodeParent()

TYGeometryNode * TYGeometryNode::GetGeoNodeParent ( ) const

Definition at line 395 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetGeoNodeParentList()

void TYGeometryNode::GetGeoNodeParentList ( TYListPtrGeoNode GetGeoNodeParents)

Definition at line 421 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHauteur()

double TYGeometryNode::getHauteur ( )
inline

Get the height above the ground.

Definition at line 219 of file TYGeometryNode.h.

Here is the caller graph for this function:

◆ getMatrix()

OMatrix TYGeometryNode::getMatrix ( ) const
inline

Set/Get de la matrice de changement de repere.

Definition at line 162 of file TYGeometryNode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getORepere3D() [1/2]

const ORepere3D& TYGeometryNode::getORepere3D ( ) const
inline

Set/Get du repere.

Definition at line 151 of file TYGeometryNode.h.

Here is the caller graph for this function:

◆ getORepere3D() [2/2]

ORepere3D& TYGeometryNode::getORepere3D ( )
inline

Definition at line 154 of file TYGeometryNode.h.

◆ globalToLocal()

OMatrix TYGeometryNode::globalToLocal ( ) const

Determine la matrice de passage du repere absolu vers le repere local.

Definition at line 445 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ localToGlobal()

OMatrix TYGeometryNode::localToGlobal ( ) const

Determine la matrice de passage du repere local vers le repere absolu.

Definition at line 431 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool TYGeometryNode::operator!= ( const TYGeometryNode other) const

Operateur de comparaison.

Definition at line 352 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

TYGeometryNode & TYGeometryNode::operator= ( const TYGeometryNode other)

Operateur de copie.

Definition at line 327 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==()

bool TYGeometryNode::operator== ( const TYGeometryNode other) const

Operateur de comparaison.

Definition at line 340 of file TYGeometryNode.cpp.

Here is the caller graph for this function:

◆ position()

OPoint3D TYGeometryNode::position ( )
inline

Get the position of the element.

Definition at line 204 of file TYGeometryNode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFromTheMap()

void TYGeometryNode::removeFromTheMap ( )
protected

Definition at line 68 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotation()

OPoint3D TYGeometryNode::rotation ( )

Get the rotation angle along axis x, y & z represented as an OPoint3D.

Definition at line 500 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setElement() [1/2]

void TYGeometryNode::setElement ( LPTYElement  pElt)

Set de l'element (smart pointer).

Parameters
pEltLe nouvel element (smart pointer).

Definition at line 299 of file TYGeometryNode.cpp.

Here is the caller graph for this function:

◆ setElement() [2/2]

void TYGeometryNode::setElement ( TYElement pElt)

Set de l'element (pointeur classique).

Parameters
pEltLe nouvel element (pointeur classique).

Definition at line 304 of file TYGeometryNode.cpp.

Here is the call graph for this function:

◆ setHauteur()

void TYGeometryNode::setHauteur ( const double &  hauteur)
inline

Set the heigth above the ground.

Definition at line 224 of file TYGeometryNode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMatrix()

void TYGeometryNode::setMatrix ( const OMatrix matrix)

Set/Get de la matrice de changement de repere.

Definition at line 461 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPosition()

void TYGeometryNode::setPosition ( const OPoint3D pos)

Set the position of the element.

Definition at line 467 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRepere()

void TYGeometryNode::setRepere ( const ORepere3D repere)
inline

Definition at line 157 of file TYGeometryNode.h.

Here is the caller graph for this function:

◆ setRotation()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toXML()

DOM_Element TYGeometryNode::toXML ( DOM_Element domElement)
virtual

Construit une arborescence DOM a partir du noeud passe afin de sauvegarder les parametres au format XML.

Parameters
domElementLe noeud DOM parent a partir duquel l'arborescence doit etre creee.
Returns
Le noeud DOM nouvellement cree.

Reimplemented from TYElement.

Definition at line 190 of file TYGeometryNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _geoNodeDoublonsList

TYListPtrGeoNode * TYGeometryNode::_geoNodeDoublonsList = NULL
staticprotected

Definition at line 247 of file TYGeometryNode.h.

◆ _geoNodeMap

TYMapPtrGeoNode * TYGeometryNode::_geoNodeMap = NULL
staticprotected

Definition at line 241 of file TYGeometryNode.h.

◆ _hauteur

double TYGeometryNode::_hauteur
protected

Hauteur de l'element par rapport au sol.

Definition at line 262 of file TYGeometryNode.h.

◆ _pElement

LPTYElement TYGeometryNode::_pElement
protected

L'instance de l'element geometrique.

Definition at line 256 of file TYGeometryNode.h.

◆ _repere

TYRepere TYGeometryNode::_repere
protected

Le repere definissant la position et l'orientation de l'element.

Definition at line 259 of file TYGeometryNode.h.


The documentation for this class was generated from the following files: