Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TYElementGraphic Class Reference

classe graphique pour un element de base More...

#include <TYElementGraphic.h>

Inheritance diagram for TYElementGraphic:
Inheritance graph
[legend]
Collaboration diagram for TYElementGraphic:
Collaboration graph
[legend]

Public Member Functions

virtual ~TYElementGraphic ()
 
void setElement (TYElement *pElt)
 
TYElementgetTYElement ()
 
void updateTree ()
 
virtual void update (bool force=false)
 
virtual void display (GLenum mode=GL_RENDER)
 
void setModified (bool modified=true)
 
bool getModified (bool andReset=false)
 
void setVisible (bool visible=true)
 
bool getVisible ()
 
void setRecursiveVisible (bool visible=true)
 
void setTexture (bool state=true)
 
bool getTexture ()
 
OBox GetBox ()
 
virtual void computeBoundingBox ()
 
virtual void getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true)
 
void highlight (bool state=true)
 
bool getHighlightState ()
 
void viewOnlyHighlight (bool state=true)
 
bool getOnlyHighlight ()
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Static Public Attributes

static OBox _globalBoundingBox
 
static bool _gDrawNormals = false
 Indique si les normals doivent etre visible. More...
 
static bool _gDrawPlafond = true
 Indique si les plafonds doivent etre visible. More...
 

Protected Member Functions

 TYElementGraphic (TYElement *pElt)
 
void displayNormal (OVector3D normal, OPoint3D p1)
 
void glVertex3fAndEnlargeBB (GLfloat x, GLfloat y, GLfloat z)
 
void glVertex3dAndEnlargeBB (GLdouble x, GLdouble y, GLdouble z)
 
void gluDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)
 
void gluCylinderAndEnlargeBB (GLUquadric *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)
 
void gluPartialDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)
 
void drawBoundingBox ()
 
void drawLineBoundingBox ()
 
void drawName ()
 

Protected Attributes

OBox _boundingBox
 
TYElement_pElement
 L'element metier auquel cet element graphique metier est associe. More...
 
bool _highlight
 Indique si le highlight est active pour cet element. More...
 
bool _texture
 Indique si le texturing est active pour cet element. More...
 
bool _visible
 Inique si l'element est visible. More...
 
bool _bFirstDisp
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Private Attributes

bool _modified
 Indique si l'element associe a ete modifie. More...
 
bool _viewOnlyHighlight
 Inique si on affiche la bounding box seule. More...
 

Detailed Description

classe graphique pour un element de base

Definition at line 69 of file TYElementGraphic.h.

Constructor & Destructor Documentation

◆ ~TYElementGraphic()

TYElementGraphic::~TYElementGraphic ( )
virtual

Destructeur.

Definition at line 59 of file TYElementGraphic.cpp.

◆ TYElementGraphic()

TYElementGraphic::TYElementGraphic ( TYElement pElt)
protected

Constructeur.

Definition at line 45 of file TYElementGraphic.cpp.

Member Function Documentation

◆ computeBoundingBox()

void TYElementGraphic::computeBoundingBox ( )
virtual

◆ display()

void TYElementGraphic::display ( GLenum  mode = GL_RENDER)
virtual

◆ displayNormal()

void TYElementGraphic::displayNormal ( OVector3D  normal,
OPoint3D  p1 
)
protected

Definition at line 132 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ drawBoundingBox()

void TYElementGraphic::drawBoundingBox ( )
protected

Definition at line 252 of file TYElementGraphic.cpp.

◆ drawLineBoundingBox()

void TYElementGraphic::drawLineBoundingBox ( )
protected

Definition at line 149 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ drawName()

void TYElementGraphic::drawName ( )
protected

Definition at line 210 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBox()

OBox TYElementGraphic::GetBox ( )
inline

Get des extremites de la boite englobante de l'objet.

Definition at line 144 of file TYElementGraphic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChilds()

virtual void TYElementGraphic::getChilds ( TYListPtrTYElementGraphic childs,
bool  recursif = true 
)
inlinevirtual

◆ getHighlightState()

bool TYElementGraphic::getHighlightState ( )

Retourne l'etat du Highlight.

Definition at line 346 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ getModified()

bool TYElementGraphic::getModified ( bool  andReset = false)

Set/Get du flag indiquant si l'element associe a ete modifie.

Definition at line 114 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOnlyHighlight()

bool TYElementGraphic::getOnlyHighlight ( )
inline

Retourn l'etat d'affichage de la bounding box seule.

Definition at line 167 of file TYElementGraphic.h.

◆ getTexture()

bool TYElementGraphic::getTexture ( )
inline

Set/Get du flag indiquant si l'element est texture.

Definition at line 139 of file TYElementGraphic.h.

◆ getTYElement()

TYElement* TYElementGraphic::getTYElement ( )
inline

Renvoie l'element associe a cet objet (la methode getElement n'est pas membre de la classe de base TYElementGraphic!).

Definition at line 85 of file TYElementGraphic.h.

Here is the call graph for this function:

◆ getVisible()

bool TYElementGraphic::getVisible ( )
inline

Set/Get du flag indiquant si l'element est visible.

Definition at line 126 of file TYElementGraphic.h.

Here is the call graph for this function:

◆ gluCylinderAndEnlargeBB()

void TYElementGraphic::gluCylinderAndEnlargeBB ( GLUquadric *  qobj,
GLdouble  baseRadius,
GLdouble  topRadius,
GLdouble  height,
GLint  slices,
GLint  stacks 
)
protected

Definition at line 322 of file TYElementGraphic.cpp.

◆ gluDiskAndEnlargeBB()

void TYElementGraphic::gluDiskAndEnlargeBB ( GLUquadric *  qobj,
GLdouble  innerRadius,
GLdouble  outerRadius,
GLint  slices,
GLint  loops 
)
protected

Definition at line 312 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ gluPartialDiskAndEnlargeBB()

void TYElementGraphic::gluPartialDiskAndEnlargeBB ( GLUquadric *  qobj,
GLdouble  innerRadius,
GLdouble  outerRadius,
GLint  slices,
GLint  loops,
GLdouble  startAngle,
GLdouble  sweepAngle 
)
protected

Definition at line 333 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ glVertex3dAndEnlargeBB()

void TYElementGraphic::glVertex3dAndEnlargeBB ( GLdouble  x,
GLdouble  y,
GLdouble  z 
)
protected

Definition at line 306 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glVertex3fAndEnlargeBB()

void TYElementGraphic::glVertex3fAndEnlargeBB ( GLfloat  x,
GLfloat  y,
GLfloat  z 
)
protected

Definition at line 300 of file TYElementGraphic.cpp.

Here is the call graph for this function:

◆ highlight()

void TYElementGraphic::highlight ( bool  state = true)

Highlight la bounding box de l'objet graphique de l'element metier ou de l'ensemble des objets graphiques le composant.

Definition at line 126 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ setElement()

void TYElementGraphic::setElement ( TYElement pElt)

Definit l'element associe a cet objet.

Definition at line 63 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ setModified()

void TYElementGraphic::setModified ( bool  modified = true)
inline

Set/Get du flag indiquant si l'element associe a ete modifie.

Definition at line 113 of file TYElementGraphic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRecursiveVisible()

void TYElementGraphic::setRecursiveVisible ( bool  visible = true)

Set/Get du flag indiquant si l'element est visible recursivement.

Definition at line 370 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTexture()

void TYElementGraphic::setTexture ( bool  state = true)
inline

Set/Get du flag indiquant si l'element est texture.

Definition at line 135 of file TYElementGraphic.h.

◆ setVisible()

void TYElementGraphic::setVisible ( bool  visible = true)
inline

Set/Get du flag indiquant si l'element est visible.

Definition at line 122 of file TYElementGraphic.h.

Here is the caller graph for this function:

◆ update()

void TYElementGraphic::update ( bool  force = false)
virtual

◆ updateTree()

void TYElementGraphic::updateTree ( )

Mets a jour le graph de scene. Si l'element a un parent l'update est propage dans le graph.

Definition at line 68 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewOnlyHighlight()

void TYElementGraphic::viewOnlyHighlight ( bool  state = true)

Affiche uniquement la bounding box.

Definition at line 351 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _bFirstDisp

bool TYElementGraphic::_bFirstDisp
protected

Definition at line 247 of file TYElementGraphic.h.

◆ _boundingBox

OBox TYElementGraphic::_boundingBox
protected

Definition at line 234 of file TYElementGraphic.h.

◆ _gDrawNormals

bool TYElementGraphic::_gDrawNormals = false
static

Indique si les normals doivent etre visible.

Definition at line 222 of file TYElementGraphic.h.

◆ _gDrawPlafond

bool TYElementGraphic::_gDrawPlafond = true
static

Indique si les plafonds doivent etre visible.

Definition at line 225 of file TYElementGraphic.h.

◆ _globalBoundingBox

OBox TYElementGraphic::_globalBoundingBox
static

Definition at line 185 of file TYElementGraphic.h.

◆ _highlight

bool TYElementGraphic::_highlight
protected

Indique si le highlight est active pour cet element.

Definition at line 239 of file TYElementGraphic.h.

◆ _modified

bool TYElementGraphic::_modified
private

Indique si l'element associe a ete modifie.

Definition at line 229 of file TYElementGraphic.h.

◆ _pElement

TYElement* TYElementGraphic::_pElement
protected

L'element metier auquel cet element graphique metier est associe.

Definition at line 236 of file TYElementGraphic.h.

◆ _texture

bool TYElementGraphic::_texture
protected

Indique si le texturing est active pour cet element.

Definition at line 242 of file TYElementGraphic.h.

◆ _viewOnlyHighlight

bool TYElementGraphic::_viewOnlyHighlight
private

Inique si on affiche la bounding box seule.

Definition at line 232 of file TYElementGraphic.h.

◆ _visible

bool TYElementGraphic::_visible
protected

Inique si l'element est visible.

Definition at line 245 of file TYElementGraphic.h.


The documentation for this class was generated from the following files: