22 #ifndef __TY_ELEMENT_GRAPHIC__ 23 #define __TY_ELEMENT_GRAPHIC__ 28 #endif // _MSC_VER > 1000 31 #pragma warning( disable : 4284 ) 52 #define TY_DECL_METIER_GRAPHIC(classname) \ 54 inline classname * getElement() const { return (classname *) _pElement; } 101 virtual void update(
bool force =
false);
108 virtual void display(GLenum mode = GL_RENDER);
173 virtual void activateSignal() {};
178 virtual void connectUpdateSignal(QObject* pReceiver,
const char* member) {};
182 virtual void disconnectUpdateSignal(QObject* pReceiver,
const char* member) {};
199 GLdouble innerRadius,
200 GLdouble outerRadius,
210 GLdouble innerRadius,
211 GLdouble outerRadius,
215 GLdouble sweepAngle);
255 #endif // __TY_ELEMENT_GRAPHIC__
static bool _gDrawNormals
Indique si les normals doivent etre visible.
void drawLineBoundingBox()
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
bool _visible
Inique si l'element est visible.
bool _viewOnlyHighlight
Inique si on affiche la bounding box seule.
void gluCylinderAndEnlargeBB(GLUquadric *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)
void glVertex3dAndEnlargeBB(GLdouble x, GLdouble y, GLdouble z)
void viewOnlyHighlight(bool state=true)
virtual ~TYElementGraphic()
bool getModified(bool andReset=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
static OBox _globalBoundingBox
bool _highlight
Indique si le highlight est active pour cet element.
TYElement * getTYElement()
TYElementGraphic(TYElement *pElt)
bool _modified
Indique si l'element associe a ete modifie.
virtual void update(bool force=false)
void displayNormal(OVector3D normal, OPoint3D p1)
void setTexture(bool state=true)
void gluDiskAndEnlargeBB(GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)
void glVertex3fAndEnlargeBB(GLfloat x, GLfloat y, GLfloat z)
void setRecursiveVisible(bool visible=true)
void gluPartialDiskAndEnlargeBB(GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)
classe graphique pour un element de base
static bool _gDrawPlafond
Indique si les plafonds doivent etre visible.
virtual void computeBoundingBox()
void setElement(TYElement *pElt)
void setModified(bool modified=true)
void setVisible(bool visible=true)
TYElement * _pElement
L'element metier auquel cet element graphique metier est associe.
SmartPtr< TYElementGraphic > LPTYElementGraphic
Smart pointer sur TYElementGraphic.
bool _texture
Indique si le texturing est active pour cet element.
virtual void display(GLenum mode=GL_RENDER)
void highlight(bool state=true)