38 getElement()->setInCurrentCalcul(getElement()->getElement()->isInCurrentCalcul());
49 for (
int i = 0; i < 4; i++)
51 for (
int j = 0; j < 4; j++)
53 m[i * 4 + j] =
matrix._m[i][j];
61 if (geoNodeParent !=
nullptr)
76 for (
int j = 0; j < 4; j++)
78 for (
int k = 0; k < 4; k++)
83 glMultMatrixd((GLdouble*)m);
91 TYListPtrGeoNode::iterator ite = GeoNodeParents.end();
92 if (!GeoNodeParents.empty())
98 bool bPushMatrix =
false;
99 for (i = 0; i < GeoNodeParents.size() && (*ite) != pThisGeoNode; i++)
101 if (pDansCeRepere == NULL)
109 LPTYElementGraphic pCurrentTYElementGraphic = pCurrentTYGeometryNode->getGraphicObject();
115 if ((*ite) == pDansCeRepere)
120 if (ite != GeoNodeParents.begin())
127 for (i = 0; i < nbPushMatrix; i++)
135 TYElement* element = getElement()->getElement();
136 if (element !=
nullptr)
139 childs.push_back(pTYElementGraphic);
142 pTYElementGraphic->
getChilds(childs, recursif);
155 for (TYListPtrTYElementGraphic::iterator it = children.begin(); it != children.end(); ++it)
158 if (child !=
nullptr)
178 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