42 static const float crossSize = 0.2f;
43 boundingBox.
Enlarge((
float)(getElement()->_x - crossSize), (
float)(getElement()->_y - crossSize),
44 (
float)(getElement()->_z - crossSize));
45 boundingBox.
Enlarge((
float)(getElement()->_x + crossSize), (
float)(getElement()->_y + crossSize),
46 (
float)(getElement()->_z + crossSize));
52 static const float crossSize = 0.2f;
65 OColor color(1.0f, 0.0f, 0.0f);
77 glVertex3f(getElement()->_x - crossSize, getElement()->_y, getElement()->_z);
78 glVertex3f(getElement()->_x + crossSize, getElement()->_y, getElement()->_z);
80 glVertex3f(getElement()->_x, getElement()->_y - crossSize, getElement()->_z);
81 glVertex3f(getElement()->_x, getElement()->_y + crossSize, getElement()->_z);
83 glVertex3f(getElement()->_x, getElement()->_y, getElement()->_z + crossSize);
84 glVertex3f(getElement()->_x, getElement()->_y, getElement()->_z - crossSize);
Gestion de la table de correspondance indice/element pour le picking (fichier header)
Representation graphique d'un point (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.
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)
TYPointGraphic(TYPoint *pElement)
virtual void display(TYRenderContext &renderContext)
virtual OBox computeBoundingBox() const
virtual ~TYPointGraphic()