36 getElement()->setInCurrentCalcul(getElement()->getElement()->isInCurrentCalcul());
47 for (
int i = 0; i < 4; i++)
49 for (
int j = 0; j < 4; j++)
51 m[i * 4 + j] =
matrix._m[i][j];
59 if (geoNodeParent !=
nullptr)
74 for (
int j = 0; j < 4; j++)
76 for (
int k = 0; k < 4; k++)
81 glMultMatrixd((GLdouble*)m);
89 TYListPtrGeoNode::iterator ite = GeoNodeParents.end();
90 if (!GeoNodeParents.empty())
96 bool bPushMatrix =
false;
97 for (i = 0; i < GeoNodeParents.size() && (*ite) != pThisGeoNode; i++)
99 if (pDansCeRepere == NULL)
107 LPTYElementGraphic pCurrentTYElementGraphic = pCurrentTYGeometryNode->getGraphicObject();
113 if ((*ite) == pDansCeRepere)
118 if (ite != GeoNodeParents.begin())
125 for (i = 0; i < nbPushMatrix; i++)
133 TYElement* element = getElement()->getElement();
134 if (element !=
nullptr)
137 childs.push_back(pTYElementGraphic);
140 pTYElementGraphic->
getChilds(childs, recursif);
153 for (TYListPtrTYElementGraphic::iterator it = children.begin(); it != children.end(); ++it)
156 if (child !=
nullptr)
176 pGraphicObject->
display(renderContext);
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
Representation graphique d'un GeometryNode (fichier header)
std::list< TYGeometryNode * > TYListPtrGeoNode
Liste ordonnee de pointeurs de TYElement.
Contexte de rendu utilisé par les fonctions d'affichage.
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
classe graphique pour un element de base
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void display(TYRenderContext &renderContext)
classe graphique pour un GeometryNode
QMatrix4x4 matrix() const
virtual void update(bool force=false)
virtual ~TYGeometryNodeGraphic()
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual OBox computeBoundingBox() const
QMatrix4x4 globalMatrix() const
TYGeometryNodeGraphic(TYGeometryNode *pElement)
void displayPushingParentMatrix(TYRenderContext &renderContext, TYGeometryNode *pDansCeRepere)
void computeMatrices() const
virtual void display(TYRenderContext &renderContext)
TYGeometryNode * GetGeoNodeParent() const
void GetGeoNodeParentList(TYListPtrGeoNode &GetGeoNodeParents)
OMatrix getMatrix() const