44 double rayon = getElement()->getDiameter() / 2.0;
46 (
float)(getElement()->getCenter()._y + rayon),
47 (
float)(getElement()->getCenter()._z));
49 (
float)(getElement()->getCenter()._y - rayon),
50 (
float)(getElement()->getCenter()._z));
57 if (mode == GL_COMPILE)
78 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
80 glColor3fv(getElement()->getColor());
82 double rayon = getElement()->getDiameter() / 2.0;
100 GLUquadricObj* qobj = gluNewQuadric();
102 glTranslatef(getElement()->getCenter()._x, getElement()->getCenter()._y,
103 getElement()->getCenter()._z);
105 if (mode == GL_SELECT)
113 if (mode == GL_SELECT)
118 gluDeleteQuadric(qobj);
124 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
Représentation graphique d'1/2 cercle acoustique (fichier header)
#define TYDEFAULTRESOLUTIONIONCIRCLE
Resolution par defaut pour la representation des cercles par des segments.
#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 update(bool force=false)
virtual ~TYAcousticSemiCircleGraphic()
virtual void computeBoundingBox()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
TYAcousticSemiCircleGraphic(TYAcousticSemiCircle *pElement)
classe graphique pour un element de base
void drawName(TYElement *pModelerElement=nullptr)
static OBox _globalBoundingBox
void gluPartialDiskAndEnlargeBB(GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)
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)
void drawLineBoundingBox()
static void addElement(TYElement *pElt)