28 static const float PointControlGraphicDefaultSize = 2.0;
39 _size = PointControlGraphicDefaultSize;
77 if (getElement()->etat() ==
false)
91 OColor color = getElement()->getColor();
93 int object = getElement()->getObject();
98 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
105 if (mode == GL_COMPILE)
110 glColor3fv(tmpColor);
115 if (mode == GL_SELECT)
141 if (mode == GL_SELECT)
154 glNormal3f(0.0f, 1.0f, 0.0f);
160 glNormal3f(0.0f, -1.0f, 0.0f);
166 glNormal3f(0.0f, 0.0f, 1.0f);
172 glNormal3f(0.0f, 0.0f, -1.0f);
178 glNormal3f(-1.0f, 0.0f, 0.0f);
184 glNormal3f(1.0f, 0.0f, 0.0f);
195 glBegin(GL_TRIANGLES);
197 glNormal3f(0.0f, -1.0f, 0.5f);
202 glNormal3f(1.0f, 0.0f, 0.5f);
207 glNormal3f(0.0f, 1.0f, 0.5f);
212 glNormal3f(-1.0f, 0.0f, 0.5f);
221 glNormal3f(0.0f, 0.0f, -1.0f);
232 GLUquadricObj* qobj = gluNewQuadric();
233 glTranslatef(pPt->
_x, pPt->
_y, pPt->
_z);
234 gluSphere(qobj,
_size / 2.0f, 20, 20);
235 glTranslatef(-pPt->
_x, -pPt->
_y, -pPt->
_z);
236 gluDeleteQuadric(qobj);
241 glBegin(GL_TRIANGLES);
244 glNormal3f(0.0f, -1.0f, 0.5f);
249 glNormal3f(1.0f, 0.0f, 0.5f);
254 glNormal3f(0.0f, 1.0f, 0.5f);
259 glNormal3f(-1.0f, 0.0f, 0.5f);
265 glNormal3f(0.5f, -1.0f, 0.0f);
270 glNormal3f(0.5f, 0.0f, -1.0f);
275 glNormal3f(0.5f, 1.0f, 0.0f);
280 glNormal3f(0.5f, 0.0f, 1.0f);
286 glNormal3f(0.0f, 1.0f, 0.5f);
291 glNormal3f(-1.0f, 0.0f, 0.5f);
296 glNormal3f(0.0f, -1.0f, 0.5f);
301 glNormal3f(1.0f, 0.0f, 0.5f);
307 glNormal3f(0.5f, 1.0f, 0.0f);
312 glNormal3f(0.5f, 0.0f, 1.0f);
317 glNormal3f(0.5f, -1.0f, 0.0f);
322 glNormal3f(0.5f, 0.0f, -1.0f);
328 glNormal3f(0.0f, 0.5f, 1.0f);
333 glNormal3f(1.0f, 0.5f, 0.0f);
338 glNormal3f(0.0f, 0.5f, -1.0f);
343 glNormal3f(-1.0f, 0.5f, 0.0f);
349 glNormal3f(0.0f, 0.5f, -1.0f);
354 glNormal3f(-1.0f, 0.5f, 0.0f);
359 glNormal3f(0.0f, 0.5f, 1.0f);
364 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)
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(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)
TYPointControlGraphic(TYPointControl *pElement)
void drawPyramid(TYPointControl *pPt) const
void drawSphere(TYPointControl *pPt) const
void drawStar(TYPointControl *pPt) const
virtual ~TYPointControlGraphic()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
void drawCube(TYPointControl *pPt) const
virtual void computeBoundingBox()
Classe de definition d'un point de controle.Le point de controle est un point de calcul avec une haut...