28 static const float SourceGraphicDefaultSize = 0.1f;
30 static const float SourceGraphicTypeUserSize = 2.0f;
35 _size = SourceGraphicDefaultSize;
47 float defaultSize = SourceGraphicDefaultSize;
60 float UserSrcSize = SourceGraphicTypeUserSize;
96 getElement()->getOrientation().normalize();
106 if (!getElement()->isInCurrentCalcul())
116 OColor color = getElement()->getColor();
118 int object = getElement()->getObject();
123 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
129 glColor3fv(tmpColor);
164 getElement()->getOrientation().normalize();
169 glVertex3f(pPt->
_x, pPt->
_y, pPt->
_z);
185 glNormal3f(0.0f, 1.0f, 0.0f);
191 glNormal3f(0.0f, -1.0f, 0.0f);
197 glNormal3f(0.0f, 0.0f, 1.0f);
203 glNormal3f(0.0f, 0.0f, -1.0f);
209 glNormal3f(-1.0f, 0.0f, 0.0f);
215 glNormal3f(1.0f, 0.0f, 0.0f);
226 glBegin(GL_TRIANGLES);
228 glNormal3f(0.0f, -1.0f, 0.5f);
233 glNormal3f(1.0f, 0.0f, 0.5f);
238 glNormal3f(0.0f, 1.0f, 0.5f);
243 glNormal3f(-1.0f, 0.0f, 0.5f);
252 glNormal3f(0.0f, 0.0f, -1.0f);
263 GLUquadricObj* qobj = gluNewQuadric();
264 glTranslatef(pPt->
_x, pPt->
_y, pPt->
_z);
265 gluSphere(qobj,
_size / 2.0f, 20, 20);
266 glTranslatef(-pPt->
_x, -pPt->
_y, -pPt->
_z);
267 gluDeleteQuadric(qobj);
272 glBegin(GL_TRIANGLES);
275 glNormal3f(0.0f, -1.0f, 0.5f);
280 glNormal3f(1.0f, 0.0f, 0.5f);
285 glNormal3f(0.0f, 1.0f, 0.5f);
290 glNormal3f(-1.0f, 0.0f, 0.5f);
296 glNormal3f(0.5f, -1.0f, 0.0f);
301 glNormal3f(0.5f, 0.0f, -1.0f);
306 glNormal3f(0.5f, 1.0f, 0.0f);
311 glNormal3f(0.5f, 0.0f, 1.0f);
317 glNormal3f(0.0f, 1.0f, 0.5f);
322 glNormal3f(-1.0f, 0.0f, 0.5f);
327 glNormal3f(0.0f, -1.0f, 0.5f);
332 glNormal3f(1.0f, 0.0f, 0.5f);
338 glNormal3f(0.5f, 1.0f, 0.0f);
343 glNormal3f(0.5f, 0.0f, 1.0f);
348 glNormal3f(0.5f, -1.0f, 0.0f);
353 glNormal3f(0.5f, 0.0f, -1.0f);
359 glNormal3f(0.0f, 0.5f, 1.0f);
364 glNormal3f(1.0f, 0.5f, 0.0f);
369 glNormal3f(0.0f, 0.5f, -1.0f);
374 glNormal3f(-1.0f, 0.5f, 0.0f);
380 glNormal3f(0.0f, 0.5f, -1.0f);
385 glNormal3f(-1.0f, 0.5f, 0.0f);
390 glNormal3f(0.0f, 0.5f, 1.0f);
395 glNormal3f(1.0f, 0.5f, 0.0f);
#define TYDIRPREFERENCEMANAGER
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'une source ponctuelle (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(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)
TYElement * _pElement
L'element metier auquel cet element graphique metier est associe.
void invalidateBoundingBox()
static void addElement(TYElement *pElt)
void drawCube(TYPoint *pPt) const
virtual void display(TYRenderContext &renderContext)
virtual OBox computeBoundingBox() const
calcul de la boite englobante
virtual void update(bool force=false)
Mise a jour.
void drawPyramid(TYPoint *pPt) const
float _size
Taille de la source.
void drawStar(TYPoint *pPt) const
virtual ~TYSourcePonctuelleGraphic()
TYSourcePonctuelleGraphic(TYSourcePonctuelle *pElement)
void drawSphere(TYPoint *pPt) const