42 boundingBox.
Enlarge(getElement()->_ptA._x, getElement()->_ptA._z, -getElement()->_ptA._y);
43 boundingBox.
Enlarge(getElement()->_ptB._x, getElement()->_ptB._z, -getElement()->_ptB._y);
49 OColor color(getElement()->getColor());
56 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
61 glColor3f(tmpColor[0], tmpColor[1], tmpColor[2]);
77 glVertex3d(getElement()->_ptA._x, getElement()->_ptA._z, -getElement()->_ptA._y);
78 glVertex3d(getElement()->_ptB._x, getElement()->_ptB._z, -getElement()->_ptB._y);
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.
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(TYRenderContext &renderContext)
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)
static void addElement(TYElement *pElt)
virtual void update(bool force=false)
virtual void display(TYRenderContext &renderContext)
virtual OBox computeBoundingBox() const
TYSegmentGraphic(TYSegment *pElement)
virtual ~TYSegmentGraphic()