84 TYListPtrGeoNode::iterator ite;
213 bool eltFound =
false;
214 bool hauteurOk =
false;
215 double hauteurLue = 0;
220 QDomNodeList childs = domElement.childNodes();
222 for (
unsigned int i = 0; i < childs.length(); i++)
225 elemCur = childs.item(i).toElement();
242 nodeTmp = elemCur.nextSibling();
248 if (nodeTmp.isNull())
255 str += nodeTmp.nodeName();
344 if (TYElement::operator !=(other)) {
return false; }
362 if (!pOtherGeoNode || !pOtherGeoNode->
getElement()) {
return false; }
401 while (pCurrentParent)
405 if (pPotentialGeoNode)
407 return pPotentialGeoNode;
410 pPotentialGeoNode =
GetGeoNode(pCurrentParent);
411 if (pPotentialGeoNode)
413 return pPotentialGeoNode;
416 pCurrentParent = pCurrentParent->
getParent();
424 while (pCurrrentGeoNodeParent)
426 GetGeoNodeParents.push_back(pCurrrentGeoNodeParent);
436 while (pParent != NULL)
485 double dRotateX = rot.
_x;
486 double dRotateY = rot.
_y;
487 double dRotateZ = rot.
_z;
493 tyMat = tyMat * tyMatTmpZ * tyMatTmpY * tyMatTmpX * tyMatTmpConcat;
505 vec.
_x = mat.
_m[0][1];
506 vec.
_y = mat.
_m[1][1];
507 vec.
_z = mat.
_m[2][1];
511 xv.
_x = mat.
_m[0][0];
512 xv.
_y = mat.
_m[1][0];
513 xv.
_z = mat.
_m[2][0];
LPTYElementGraphic _pGraphicObject
L'object graphique metier associe a cet element.
void set(const OPoint3D &origin, const OVector3D &vecI, const OVector3D &vecJ, const OVector3D &vecK)
Sets with a point and 3 vectors.
3D frame with a point and 3 vectors.
static OPrototype * safeDownCast(OPrototype *pObject)
void setParent(TYElement *pParent)
virtual void setIsGeometryModified(bool isModified)
virtual int fromXML(DOM_Element domElement)
virtual void getChilds(LPTYElementArray &childs, bool recursif=true)
OMatrix asMatrix() const
return the transformation matrix from unity to this pose such as this = transform * unity ...
std::vector< LPTYElement > LPTYElementArray
void GetGeoNodeParentList(TYListPtrGeoNode &GetGeoNodeParents)
bool operator==(const TYGeometryNode &other) const
TYElement & operator=(const TYElement &other)
static TYMapPtrGeoNode * _geoNodeMap
TYGeometryNode * GetGeoNodeParent() const
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
const ORepere3D & getORepere3D() const
double _hauteur
Hauteur de l'element par rapport au sol.
OMatrix getInvert(int *ok=0) const
Return the inverse matrix of this matrix.
int setRotationOz(double a)
Update a rotation matrix (Oz axis).
static TYListPtrGeoNode * _geoNodeDoublonsList
classe graphique pour un GeometryNode
int setRotationOx(double a)
Update a rotation matrix (Ox axis).
void setRepere(const ORepere3D &repere)
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
static TYMapPtrGeoNode * GetGeoNodeMap()
static OPrototype * findAndClone(const char *className)
TYElement * getParent() const
virtual DOM_Element toXML(DOM_Element &domElement)
std::list< TYGeometryNode * > TYListPtrGeoNode
Liste ordonnee de pointeurs de TYElement.
std::string doubleToStrPre(double val, int precision=2)
virtual void setIsAcousticModified(bool isModified)
void setRotation(const OPoint3D &rot)
Set the rotation angle along axis x, y & z represented as an OPoint3D.
virtual ~TYGeometryNode()
double _y
y coordinate of OCoord3D
double _x
x coordinate of OCoord3D
double DEGTORAD(double a)
Converts an angle from degrees to radians.
QString _name
Nom courant de l'element.
TYElement * getElement() const
OMatrix localToGlobal() const
void setPosition(const OPoint3D &pos)
Set the position of the element.
bool callFromXMLIfEqual(DOM_Element &domElement, int *pRetVal=NULL)
virtual const char * getClassName() const
virtual OPrototype * clone() const =0
virtual int fromXML(DOM_Element domElement)
virtual DOM_Element toXML(DOM_Element &domElement)
QString generateName(const char *classname)
Retourne le nom de la classe associe a un nombre.
std::map< TYElement *, TYGeometryNode * > TYMapPtrGeoNode
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
void setMatrix(const OMatrix &matrix)
static TYGeometryNode * GetGeoNode(TYElement *pElement)
double RADTODEG(double a)
Converts an angle from radians to degrees.
virtual DOM_Element toXML(DOM_Element &domElement)
TYRepere _repere
Le repere definissant la position et l'orientation de l'element.
static TYListPtrGeoNode * GetGeoNodeDoublonsList()
OMatrix globalToLocal() const
LPTYElement _pElement
L'instance de l'element geometrique.
TYGeometryNode & operator=(const TYGeometryNode &other)
virtual void getChilds(LPTYElementArray &childs, bool recursif=true)
double _z
z coordinate of OCoord3D
OMatrix getMatrix() const
OPoint3D _origin
The origin point.
static TYNameManager * get()
Retourne l'instance singleton.
int setRotationOy(double a)
Update a rotation matrix (Oy axis).
void setElement(LPTYElement pElt)
OPoint3D rotation()
Get the rotation angle along axis x, y & z represented as an OPoint3D.
bool operator!=(const TYGeometryNode &other) const
double _m[4][4]
The 4x4 matrix array.