43 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
44 childs.push_back(pTYElementGraphic);
47 pTYElementGraphic->
getChilds(childs, recursif);
50 pTYElementGraphic = getElement()->getCircTop()->getGraphicObject();
51 childs.push_back(pTYElementGraphic);
54 pTYElementGraphic->
getChilds(childs, recursif);
57 pTYElementGraphic = getElement()->getCircBottom()->getGraphicObject();
58 childs.push_back(pTYElementGraphic);
61 pTYElementGraphic->
getChilds(childs, recursif);
72 size_t nbPts = sommets.size();
74 for (
size_t i = 0; i < nbPts; i++)
83 if (mode == GL_COMPILE)
101 if (mode == GL_SELECT)
108 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
110 getElement()->getCircTop()->getGraphicObject()->display(pModelerElement, mode);
112 getElement()->getCircBottom()->getGraphicObject()->display(pModelerElement, mode);
115 glColor3fv(getElement()->getColor());
119 getElement()->getCenter().getToOGL(center);
136 OPoint3D oCenter = getElement()->getCenter();
137 glTranslatef(oCenter.
_x, oCenter.
_y, oCenter.
_z);
142 for (
int i = 0; i < resolution; i++)
144 tabRect[i].getGraphicObject()->display(pModelerElement, mode);
147 if (mode == GL_SELECT)
Representation graphique d'un cylindre accoustique (fichier header)
std::vector< TYRectangle > TYTabRectangle
Collection de TYRectangle.
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
#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.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
virtual ~TYAcousticCylinderGraphic()
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
TYAcousticCylinderGraphic(TYAcousticCylinder *pElement)
virtual void computeBoundingBox()
virtual void update(bool force=false)
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)