42 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
43 childs.push_back(pTYElementGraphic);
46 pTYElementGraphic->
getChilds(childs, recursif);
49 pTYElementGraphic = getElement()->getSemiCircTop()->getGraphicObject();
50 childs.push_back(pTYElementGraphic);
53 pTYElementGraphic->
getChilds(childs, recursif);
56 pTYElementGraphic = getElement()->getSemiCircBottom()->getGraphicObject();
57 childs.push_back(pTYElementGraphic);
60 pTYElementGraphic->
getChilds(childs, recursif);
64 pTYElementGraphic = getElement()->getRect()->getGraphicObject();
65 childs.push_back(pTYElementGraphic);
68 pTYElementGraphic->
getChilds(childs, recursif);
74 for (
int i = 0; i < resolution; i++)
76 pTYElementGraphic = tabRect[i].getGraphicObject();
77 childs.push_back(pTYElementGraphic);
80 pTYElementGraphic->
getChilds(childs, recursif);
91 getElement()->getSrcSurf()->getGraphicObject()->computeBoundingBox();
95 getElement()->getSemiCircTop()->getGraphicObject()->computeBoundingBox();
99 getElement()->getSemiCircBottom()->getGraphicObject()->computeBoundingBox();
109 if (mode == GL_COMPILE)
128 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
130 if (mode == GL_SELECT)
137 getElement()->getRect()->getGraphicObject()->display(pModelerElement, mode);
140 getElement()->getSemiCircTop()->getGraphicObject()->display(pModelerElement, mode);
143 getElement()->getSemiCircBottom()->getGraphicObject()->display(pModelerElement, mode);
146 glColor3fv(getElement()->getColor());
165 glTranslatef(getElement()->getCenter()._x, getElement()->getCenter()._y,
166 getElement()->getCenter()._z);
171 for (
int i = 0; i < resolution; i++)
173 tabRect[i].getGraphicObject()->display(pModelerElement, mode);
176 if (mode == GL_SELECT)
Representation graphique d'un 1/2 cylindre acoustique (fichier header)
std::vector< TYRectangle > TYTabRectangle
Collection de TYRectangle.
#define TYDEFAULTRESOLUTIONIONCIRCLE
Resolution par defaut pour la representation des cercles par des segments.
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 display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
TYAcousticSemiCylinderGraphic(TYAcousticSemiCylinder *pElement)
virtual void computeBoundingBox()
virtual ~TYAcousticSemiCylinderGraphic()
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)