45 double rayon = getElement()->getDiameter() / 2.0;
47 (
float)(getElement()->getCenter()._y + rayon), (
float)(getElement()->getCenter()._z));
49 (
float)(getElement()->getCenter()._y - rayon), (
float)(getElement()->getCenter()._z));
66 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
68 glColor3fv(getElement()->getColor());
70 double rayon = getElement()->getDiameter() / 2.0;
88 GLUquadricObj* qobj = gluNewQuadric();
90 glTranslatef(getElement()->getCenter()._x, getElement()->getCenter()._y,
91 getElement()->getCenter()._z);
99 gluPartialDisk(qobj, 0, rayon, resolution, 1, 0, 180);
106 gluDeleteQuadric(qobj);
110 getElement()->getSrcSurf()->getGraphicObject()->display(renderContext);
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)
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.
virtual void display(TYRenderContext &renderContext)
virtual void update(bool force=false)
virtual OBox computeBoundingBox() const
virtual ~TYAcousticSemiCircleGraphic()
TYAcousticSemiCircleGraphic(TYAcousticSemiCircle *pElement)
classe graphique pour un element de base
void drawName(TYRenderContext &renderContext)
bool _visible
Inique si l'element est visible.
virtual void update(bool force=false)
static void addElement(TYElement *pElt)