48 OColor color(getElement()->getColor());
53 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
60 if (mode == GL_COMPILE)
64 glColor3f(tmpColor[0], tmpColor[1], tmpColor[2]);
70 if (mode == GL_SELECT)
85 if (mode == GL_SELECT)
Gestion de la table de correspondance indice/element pour le picking (fichier header)
Representation graphique d'un segment (fichier header)
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
classe graphique pour un element de base
void drawName(TYElement *pModelerElement=nullptr)
void glVertex3dAndEnlargeBB(GLdouble x, GLdouble y, GLdouble z)
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)
void drawLineBoundingBox()
static void addElement(TYElement *pElt)
virtual void update(bool force=false)
TYSegmentGraphic(TYSegment *pElement)
virtual ~TYSegmentGraphic()
virtual void computeBoundingBox()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)