41 double diametre = getElement()->getDiameter();
43 (
float)(getElement()->getCenter()._z));
44 boundingBox.
Enlarge((
float)(diametre / 2), (
float)(diametre / 2), (
float)(getElement()->getCenter()._z));
62 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
63 glColor4fv(getElement()->getColor());
65 double rayon = getElement()->getDiameter() / 2.0;
81 GLUquadricObj* qobj = gluNewQuadric();
83 glTranslatef(0.0, 0.0, getElement()->getCenter()._z);
92 gluDisk(qobj, 0, rayon, resolution, 1);
98 gluDeleteQuadric(qobj);
104 OPoint3D p1 = getElement()->getCenter();
111 glColor3fv(tmpColor);
114 getElement()->getSrcSurf()->getGraphicObject()->display(renderContext);
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)
Contexte de rendu utilisé par les fonctions d'affichage.
@ Picking
The current render is only done for picking purpose.
@ Overlay
The current render pass is for overlay elements.
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 OBox computeBoundingBox() const
virtual void update(bool force=false)
virtual void display(TYRenderContext &renderContext)
TYAcousticCircleGraphic(TYAcousticCircle *pElement)
virtual ~TYAcousticCircleGraphic()
classe graphique pour un element de base
void drawName(TYRenderContext &renderContext)
bool _visible
Inique si l'element est visible.
static bool _gDrawNormals
Indique si les normals doivent etre visible.
void displayNormal(OVector3D normal, OPoint3D p1)
virtual void update(bool force=false)
static void addElement(TYElement *pElt)