40 double diametre = getElement()->getDiameter();
42 (
float)(getElement()->getCenter()._z));
43 _boundingBox.
Enlarge((
float)(diametre / 2), (
float)(diametre / 2), (
float)(getElement()->getCenter()._z));
50 if (mode == GL_COMPILE)
69 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
70 glColor4fv(getElement()->getColor());
72 double rayon = getElement()->getDiameter() / 2.0;
88 GLUquadricObj* qobj = gluNewQuadric();
90 glTranslatef(0.0, 0.0, getElement()->getCenter()._z);
92 if (mode == GL_SELECT)
101 if (mode == GL_SELECT)
105 gluDeleteQuadric(qobj);
114 OPoint3D p1 = getElement()->getCenter();
121 glColor3fv(tmpColor);
124 getElement()->getSrcSurf()->getGraphicObject()->display(pModelerElement, mode);
Representation graphique d'un cercle accoustique (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.
OVector3D normal(const OVector3D &vector2, const OVector3D &vector3) const
Computes the normal with this vector and 2 others.
void normalize()
Normalizes this vector.
virtual void update(bool force=false)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
TYAcousticCircleGraphic(TYAcousticCircle *pElement)
virtual void computeBoundingBox()
virtual ~TYAcousticCircleGraphic()
classe graphique pour un element de base
void drawName(TYElement *pModelerElement=nullptr)
static OBox _globalBoundingBox
bool _visible
Inique si l'element est visible.
static bool _gDrawNormals
Indique si les normals doivent etre visible.
bool _highlight
Indique si le highlight est active pour cet element.
void displayNormal(OVector3D normal, OPoint3D p1)
virtual void update(bool force=false)
void gluDiskAndEnlargeBB(GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)
void drawLineBoundingBox()
static void addElement(TYElement *pElt)