40 getElement()->setInCurrentCalcul(getElement()->getElement()->isInCurrentCalcul());
50 OMatrix matrix = getElement()->getMatrix();
51 for (
int j = 0; j < 4; j++)
53 for (
int k = 0; k < 4; k++)
55 m[j][k] = matrix.
_m[k][j];
58 glMultMatrixd((GLdouble*)m);
65 TYListPtrGeoNode::iterator ite = GeoNodeParents.end();
66 if (!GeoNodeParents.empty())
72 bool bPushMatrix =
false;
73 for (i = 0; i < GeoNodeParents.size() && (*ite) != pThisGeoNode; i++)
75 if (pDansCeRepere == NULL)
88 if ((*ite) == pDansCeRepere)
93 if (ite != GeoNodeParents.begin())
100 for (i = 0; i < nbPushMatrix; i++)
109 childs.push_back(pTYElementGraphic);
112 pTYElementGraphic->
getChilds(childs, recursif);
void GetGeoNodeParentList(TYListPtrGeoNode &GetGeoNodeParents)
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
TYGeometryNodeGraphic(TYGeometryNode *pElement)
classe graphique pour un GeometryNode
Representation graphique d'un GeometryNode (fichier header)
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
std::list< TYGeometryNode * > TYListPtrGeoNode
Liste ordonnee de pointeurs de TYElement.
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
virtual void computeBoundingBox()
virtual void update(bool force=false)
classe graphique pour un element de base
virtual ~TYGeometryNodeGraphic()
void displayPushingParentMatrix(GLenum mode, TYGeometryNode *pDansCeRepere)
virtual void display(GLenum mode=GL_RENDER)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void display(GLenum mode=GL_RENDER)
double _m[4][4]
The 4x4 matrix array.