|
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 () |
| const TYElement * | getTYElement () const |
| void | updateTree () |
| virtual void | update (bool force=false) |
| virtual void | display (TYRenderContext &renderContext) |
| void | setModified (bool modified=true) |
| bool | getModified () const |
| void | setVisible (bool visible=true) |
| bool | getVisible () |
| void | setRecursiveVisible (bool visible=true) |
| void | setTexture (bool state=true) |
| bool | getTexture () |
| OBox | boundingBox () const |
| virtual OBox | computeBoundingBox () const |
| virtual void | getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true) |
| void | getChilds (TYListPtrConstTYElementGraphic &childs, bool recursif=true) const |
| void | setBoundingBoxVisible (bool state=true) |
| bool | isBoundingBoxVisible () const |
| void | setOnlyBoundingBox (bool state=true) |
Public Member Functions inherited from IRefCount | |
| IRefCount () | |
| virtual | ~IRefCount () |
| virtual int | incRef () |
| virtual int | decRef () |
| int | getRefCount () const |
Static Public Attributes | |
| 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 | drawName (TYRenderContext &renderContext) |
| void | invalidateBoundingBox () |
Protected Attributes | |
| 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... | |
Protected Attributes inherited from IRefCount | |
| int | m_refCount |
| The reference counter. More... | |
Private Attributes | |
| bool | _boundingBoxDirty |
| bool | _modified |
| Indique si l'element associe a ete modifie. More... | |
| bool | _viewOnlyHighlight |
| Inique si on affiche la bounding box seule. More... | |
| OBox | _boundingBox |
classe graphique pour un element de base
Definition at line 62 of file TYElementGraphic.h.
|
virtual |
Destructeur.
Definition at line 57 of file TYElementGraphic.cpp.
|
protected |
Constructeur.
Definition at line 43 of file TYElementGraphic.cpp.
| OBox TYElementGraphic::boundingBox | ( | ) | const |
Get des extremites de la boite englobante de l'objet.
Definition at line 227 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 237 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 TYAcousticBoxGraphic, 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, and TYAcousticCircleGraphic.
Definition at line 206 of file TYElementGraphic.cpp.

|
protected |
Definition at line 138 of file TYElementGraphic.cpp.


|
inline |
Store each child of the box in childs. If recursif is true, also store the children of each child.
Definition at line 187 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 181 of file TYElementGraphic.h.

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

|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 162 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 79 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 88 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 143 of file TYElementGraphic.h.
|
protected |
Definition at line 262 of file TYElementGraphic.cpp.


| bool TYElementGraphic::isBoundingBoxVisible | ( | ) | const |
Retourne true si la bounding box doit etre affiche
Definition at line 193 of file TYElementGraphic.cpp.

| void TYElementGraphic::setBoundingBoxVisible | ( | bool | state = true | ) |
Afficher ou non la bounding box de l'objet graphique de l'element metier ou de l'ensemble des objets graphiques le composant.
Definition at line 115 of file TYElementGraphic.cpp.

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

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


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

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

|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 155 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 136 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 83 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 64 of file TYElementGraphic.cpp.

|
mutableprivate |
Definition at line 257 of file TYElementGraphic.h.
|
mutableprivate |
Definition at line 248 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.
|
protected |
Indique si le highlight est active pour cet element.
Definition at line 264 of file TYElementGraphic.h.
|
private |
Indique si l'element associe a ete modifie.
Definition at line 251 of file TYElementGraphic.h.
|
protected |
L'element metier auquel cet element graphique metier est associe.
Definition at line 261 of file TYElementGraphic.h.
|
protected |
Indique si le texturing est active pour cet element.
Definition at line 267 of file TYElementGraphic.h.
|
private |
Inique si on affiche la bounding box seule.
Definition at line 254 of file TYElementGraphic.h.
|
protected |
Inique si l'element est visible.
Definition at line 270 of file TYElementGraphic.h.