|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
classe graphique pour un element de base More...
#include <TYElementGraphic.h>


Public Member Functions | |
| virtual | ~TYElementGraphic () |
| void | setElement (TYElement *pElt) |
| TYElement * | getTYElement () |
| void | updateTree () |
| virtual void | update (bool force=false) |
| virtual void | display (TYElement *pModelerElement=nullptr, 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 (TYElement *pModelerElement=nullptr) |
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... | |
classe graphique pour un element de base
Definition at line 69 of file TYElementGraphic.h.
|
virtual |
Destructeur.
Definition at line 55 of file TYElementGraphic.cpp.
|
protected |
Constructeur.
Definition at line 41 of file TYElementGraphic.cpp.
|
virtual |
Build the bounding box, with the min and max of each coordinate
Reimplemented in TYTerrainGraphic, TYSourceSurfacicGraphic, TYSourcePonctuelleGraphic, TYSourceLineicGraphic, TYSegmentGraphic, TYRectangularMaillageGraphic, TYRectangleGraphic, TYRayGraphic, TYPolyLineGraphic, TYPolygonGraphic, TYPointGraphic, TYPointControlGraphic, TYPlanEauGraphic, TYLinearMaillageGraphic, TYGeometryNodeGraphic, TYFaceSetGraphic, TYEtageGraphic, TYCourbeNiveauGraphic, TYBoundaryNoiseMapGraphic, TYAltimetrieGraphic, TYAcousticVolumeNodeGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSemiCircleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticRectangleGraphic, TYAcousticPolygonGraphic, TYAcousticLineGraphic, TYAcousticFaceSetGraphic, TYAcousticCylinderGraphic, TYAcousticCircleGraphic, and TYAcousticBoxGraphic.
Definition at line 373 of file TYElementGraphic.cpp.


|
virtual |
Effectue le trace openGL de l'objet graphique
| pModelerElement | element du modeleur a afficher |
| mode | Gere les modes rendu et select pour le picking. |
Reimplemented in TYTopographieGraphic, TYTerrainGraphic, TYSourceSurfacicGraphic, TYSourcePonctuelleGraphic, TYSourceLineicGraphic, TYSiteNodeGraphic, TYSegmentGraphic, TYResultatGraphic, TYRectangularMaillageGraphic, TYRectangleGraphic, TYRayGraphic, TYProjetGraphic, TYPolyLineGraphic, TYPolygonGraphic, TYPointGraphic, TYPointControlGraphic, TYPlanEauGraphic, TYPanelGraphic, TYPaletteGraphic, TYLinearMaillageGraphic, TYInfrastructureGraphic, TYGeometryNodeGraphic, TYFaceSetGraphic, TYEtageGraphic, TYEcranGraphic, TYCourbeNiveauGraphic, TYCalculGraphic, TYBoundaryNoiseMapGraphic, TYAltimetrieGraphic, TYAcousticVolumeNodeGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSemiCircleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticRectangleGraphic, TYAcousticPolygonGraphic, TYAcousticLineGraphic, TYAcousticFaceSetGraphic, TYAcousticCylinderGraphic, TYAcousticCircleGraphic, and TYAcousticBoxGraphic.
Definition at line 350 of file TYElementGraphic.cpp.

|
protected |
Definition at line 258 of file TYElementGraphic.cpp.
|
protected |
|
protected |
Definition at line 204 of file TYElementGraphic.cpp.


|
inline |
Get des extremites de la boite englobante de l'objet.
Definition at line 164 of file TYElementGraphic.h.

|
inlinevirtual |
Store each child of the box in childs. If recursif is true, also store the children of each child
Reimplemented in TYBoundaryNoiseMapGraphic, TYTopographieGraphic, TYTerrainGraphic, TYSourceSurfacicGraphic, TYSourceLineicGraphic, TYSiteNodeGraphic, TYProjetGraphic, TYPlanEauGraphic, TYInfrastructureGraphic, TYGeometryNodeGraphic, TYEtageGraphic, TYCourbeNiveauGraphic, TYCalculGraphic, TYAltimetrieGraphic, TYAcousticVolumeNodeGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticSemiCylinderGraphic, TYAcousticRectangleGraphic, TYAcousticPolygonGraphic, TYAcousticLineGraphic, TYAcousticCylinderGraphic, and TYAcousticBoxGraphic.
Definition at line 178 of file TYElementGraphic.h.

| bool TYElementGraphic::getHighlightState | ( | ) |
Retourne l'etat du Highlight.
Definition at line 337 of file TYElementGraphic.cpp.

| bool TYElementGraphic::getModified | ( | bool | andReset = false | ) |
Set/Get du flag indiquant si l'element associe a ete modifie.
Definition at line 108 of file TYElementGraphic.cpp.


|
inline |
Retourn l'etat d'affichage de la bounding box seule.
Definition at line 198 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 156 of file TYElementGraphic.h.
|
inline |
Renvoie l'element associe a cet objet (la methode getElement n'est pas membre de la classe de base TYElementGraphic!).
Definition at line 86 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 137 of file TYElementGraphic.h.
|
protected |
Definition at line 324 of file TYElementGraphic.cpp.
|
protected |
|
protected |
|
protected |
Definition at line 312 of file TYElementGraphic.cpp.


|
protected |
| 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 120 of file TYElementGraphic.cpp.

| void TYElementGraphic::setElement | ( | TYElement * | pElt | ) |
Definit l'element associe a cet objet.
Definition at line 57 of file TYElementGraphic.cpp.

|
inline |
Set/Get du flag indiquant si l'element associe a ete modifie.
Definition at line 118 of file TYElementGraphic.h.

| void TYElementGraphic::setRecursiveVisible | ( | bool | visible = true | ) |
Set/Get du flag indiquant si l'element est visible recursivement.
Definition at line 361 of file TYElementGraphic.cpp.

|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 149 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 130 of file TYElementGraphic.h.

|
virtual |
Mets a jour l'objet 3D associe a cet objet graphique metier. Remarque : Lorsque cette methode est surchargee, un appel de l'implementation parent (TYElementGraphic::update()) doit etre fait a la fin.
| force | Outrepasse l'etat du flag 'modified' et effectue la mise a jour. |
Reimplemented in TYTopographieGraphic, TYTerrainGraphic, TYSourceSurfacicGraphic, TYSourcePonctuelleGraphic, TYSourceLineicGraphic, TYSiteNodeGraphic, TYSegmentGraphic, TYResultatGraphic, TYRectangularMaillageGraphic, TYRectangleGraphic, TYRayGraphic, TYProjetGraphic, TYPolyLineGraphic, TYPolygonGraphic, TYPointGraphic, TYPointControlGraphic, TYPlanEauGraphic, TYPanelGraphic, TYPaletteGraphic, TYLinearMaillageGraphic, TYInfrastructureGraphic, TYGeometryNodeGraphic, TYFaceSetGraphic, TYEtageGraphic, TYCourbeNiveauGraphic, TYCalculGraphic, TYBoundaryNoiseMapGraphic, TYAltimetrieGraphic, TYAcousticVolumeNodeGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSemiCircleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticRectangleGraphic, TYAcousticPolygonGraphic, TYAcousticLineGraphic, TYAcousticFaceSetGraphic, TYAcousticCylinderGraphic, TYAcousticCircleGraphic, and TYAcousticBoxGraphic.
Definition at line 80 of file TYElementGraphic.cpp.


| 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 62 of file TYElementGraphic.cpp.

| void TYElementGraphic::viewOnlyHighlight | ( | bool | state = true | ) |
Affiche uniquement la bounding box.
Definition at line 342 of file TYElementGraphic.cpp.

|
protected |
Definition at line 267 of file TYElementGraphic.h.
|
protected |
Definition at line 254 of file TYElementGraphic.h.
|
static |
Indique si les normals doivent etre visible.
Definition at line 241 of file TYElementGraphic.h.
|
static |
Indique si les plafonds doivent etre visible.
Definition at line 244 of file TYElementGraphic.h.
|
static |
Definition at line 217 of file TYElementGraphic.h.
|
protected |
Indique si le highlight est active pour cet element.
Definition at line 259 of file TYElementGraphic.h.
|
private |
Indique si l'element associe a ete modifie.
Definition at line 248 of file TYElementGraphic.h.
|
protected |
L'element metier auquel cet element graphique metier est associe.
Definition at line 256 of file TYElementGraphic.h.
|
protected |
Indique si le texturing est active pour cet element.
Definition at line 262 of file TYElementGraphic.h.
|
private |
Inique si on affiche la bounding box seule.
Definition at line 251 of file TYElementGraphic.h.
|
protected |
Inique si l'element est visible.
Definition at line 265 of file TYElementGraphic.h.