31 static const float PointControlGraphicDefaultSize = 2.0;
42 _size = PointControlGraphicDefaultSize;
80 if (getElement()->etat() ==
false)
94 OColor color = getElement()->getColor();
96 int object = getElement()->getObject();
101 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
107 glColor3fv(tmpColor);
149 glNormal3f(0.0f, 1.0f, 0.0f);
155 glNormal3f(0.0f, -1.0f, 0.0f);
161 glNormal3f(0.0f, 0.0f, 1.0f);
167 glNormal3f(0.0f, 0.0f, -1.0f);
173 glNormal3f(-1.0f, 0.0f, 0.0f);
179 glNormal3f(1.0f, 0.0f, 0.0f);
190 glBegin(GL_TRIANGLES);
192 glNormal3f(0.0f, -1.0f, 0.5f);
197 glNormal3f(1.0f, 0.0f, 0.5f);
202 glNormal3f(0.0f, 1.0f, 0.5f);
207 glNormal3f(-1.0f, 0.0f, 0.5f);
216 glNormal3f(0.0f, 0.0f, -1.0f);
227 GLUquadricObj* qobj = gluNewQuadric();
228 glTranslatef(pPt->
_x, pPt->
_y, pPt->
_z);
229 gluSphere(qobj,
_size / 2.0f, 20, 20);
230 glTranslatef(-pPt->
_x, -pPt->
_y, -pPt->
_z);
231 gluDeleteQuadric(qobj);
236 glBegin(GL_TRIANGLES);
239 glNormal3f(0.0f, -1.0f, 0.5f);
244 glNormal3f(1.0f, 0.0f, 0.5f);
249 glNormal3f(0.0f, 1.0f, 0.5f);
254 glNormal3f(-1.0f, 0.0f, 0.5f);
260 glNormal3f(0.5f, -1.0f, 0.0f);
265 glNormal3f(0.5f, 0.0f, -1.0f);
270 glNormal3f(0.5f, 1.0f, 0.0f);
275 glNormal3f(0.5f, 0.0f, 1.0f);
281 glNormal3f(0.0f, 1.0f, 0.5f);
286 glNormal3f(-1.0f, 0.0f, 0.5f);
291 glNormal3f(0.0f, -1.0f, 0.5f);
296 glNormal3f(1.0f, 0.0f, 0.5f);
302 glNormal3f(0.5f, 1.0f, 0.0f);
307 glNormal3f(0.5f, 0.0f, 1.0f);
312 glNormal3f(0.5f, -1.0f, 0.0f);
317 glNormal3f(0.5f, 0.0f, -1.0f);
323 glNormal3f(0.0f, 0.5f, 1.0f);
328 glNormal3f(1.0f, 0.5f, 0.0f);
333 glNormal3f(0.0f, 0.5f, -1.0f);
338 glNormal3f(-1.0f, 0.5f, 0.0f);
344 glNormal3f(0.0f, 0.5f, -1.0f);
349 glNormal3f(-1.0f, 0.5f, 0.0f);
354 glNormal3f(0.0f, 0.5f, 1.0f);
359 glNormal3f(1.0f, 0.5f, 0.0f);
#define TYDIRPREFERENCEMANAGER
Gestion de la table de correspondance indice/element pour le picking (fichier header)
Representation graphique d'un point de controle (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.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
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 OBox computeBoundingBox() const
virtual void update(bool force=false)
TYPointControlGraphic(TYPointControl *pElement)
void drawPyramid(TYPointControl *pPt) const
void drawSphere(TYPointControl *pPt) const
void drawStar(TYPointControl *pPt) const
virtual ~TYPointControlGraphic()
virtual void display(TYRenderContext &renderContext)
void drawCube(TYPointControl *pPt) const
Classe de definition d'un point de controle.Le point de controle est un point de calcul avec une haut...