41 static const float crossSize = 0.2f;
42 _boundingBox.
Enlarge((
float)(getElement()->_x - crossSize), (
float)(getElement()->_y - crossSize),
43 (
float)(getElement()->_z - crossSize));
44 _boundingBox.
Enlarge((
float)(getElement()->_x + crossSize), (
float)(getElement()->_y + crossSize),
45 (
float)(getElement()->_z + crossSize));
50 static const float crossSize = 0.2f;
55 if (mode == GL_SELECT)
63 OColor color(1.0f, 0.0f, 0.0f);
73 if (mode == GL_COMPILE)
81 glVertex3f(getElement()->_x - crossSize, getElement()->_y, getElement()->_z);
82 glVertex3f(getElement()->_x + crossSize, getElement()->_y, getElement()->_z);
84 glVertex3f(getElement()->_x, getElement()->_y - crossSize, getElement()->_z);
85 glVertex3f(getElement()->_x, getElement()->_y + crossSize, getElement()->_z);
87 glVertex3f(getElement()->_x, getElement()->_y, getElement()->_z + crossSize);
88 glVertex3f(getElement()->_x, getElement()->_y, getElement()->_z - crossSize);
94 if (mode == GL_SELECT)
Gestion de la table de correspondance indice/element pour le picking (fichier header)
Representation graphique d'un point (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)
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)
virtual void computeBoundingBox()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
TYPointGraphic(TYPoint *pElement)
virtual ~TYPointGraphic()