37 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
38 childs.push_back(pTYElementGraphic);
41 pTYElementGraphic->
getChilds(childs, recursif);
44 pTYElementGraphic = getElement()->getPolygon()->getGraphicObject();
45 childs.push_back(pTYElementGraphic);
48 pTYElementGraphic->
getChilds(childs, recursif);
57 getElement()->getSrcSurf()->getGraphicObject()->computeBoundingBox();
58 getElement()->getPolygon()->getGraphicObject()->computeBoundingBox();
66 OColor color = getElement()->getColor();
69 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
70 getElement()->getPolygon()->getGraphicObject()->highlight(
_highlight);
72 if (mode == GL_SELECT)
78 getElement()->getPolygon()->getGraphicObject()->display(pModelerElement, mode);
80 if (mode == GL_SELECT)
Representation graphique d'un polygone accoustique (fichier header)
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
Gestion de la table de correspondance indice/element pour le picking (fichier header)
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
virtual void computeBoundingBox()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
virtual void update(bool force=false)
TYAcousticPolygonGraphic(TYAcousticPolygon *pElement)
void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
classe graphique pour un element de base
bool _highlight
Indique si le highlight est active pour cet element.
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
static void addElement(TYElement *pElt)