39 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
40 childs.push_back(pTYElementGraphic);
43 pTYElementGraphic->
getChilds(childs, recursif);
46 pTYElementGraphic = getElement()->getShape()->getGraphicObject();
47 childs.push_back(pTYElementGraphic);
50 pTYElementGraphic->
getChilds(childs, recursif);
59 getElement()->getSrcSurf()->getGraphicObject()->computeBoundingBox();
60 getElement()->getShape()->getGraphicObject()->computeBoundingBox();
69 if (mode == GL_COMPILE)
75 OColor color = getElement()->getColor();
79 if (getElement()->getIsSub() && strcmp(getElement()->getClassName(),
"TYMurElement") == 0)
95 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
102 glColor3f(tmpColor[0], tmpColor[1], tmpColor[2]);
109 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
113 if ((getElement()->getIsSub()) && (mode == GL_SELECT))
119 getElement()->getShape()->getGraphicObject()->display(pModelerElement, mode);
121 if ((getElement()->getIsSub()) && (mode == GL_SELECT))
Representation graphique d'un rectangle acoustique (fichier header)
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
#define TYDIRPREFERENCEMANAGER
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 getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
TYAcousticRectangleGraphic(TYAcousticRectangle *pElement)
classe graphique pour un element de base
void drawName(TYElement *pModelerElement=nullptr)
static OBox _globalBoundingBox
bool _visible
Inique si l'element est visible.
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)
void drawLineBoundingBox()
static void addElement(TYElement *pElt)