|
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 () const |
| 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) |
| bool | getOnlyBoundingBox () const |
| virtual void | collectMeshInstances (std::vector< OGLMeshInstance > &meshInstances, TYRenderContext *renderContext) const |
| const TYGeometryNodeGraphic * | nearestGeoNode () const |
| QMatrix4x4 | globalMatrix () const |
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 65 of file TYElementGraphic.h.
|
virtual |
Destructeur.
Definition at line 60 of file TYElementGraphic.cpp.
|
protected |
Constructeur.
Definition at line 46 of file TYElementGraphic.cpp.
| OBox TYElementGraphic::boundingBox | ( | ) | const |
Get des extremites de la boite englobante de l'objet.
Definition at line 219 of file TYElementGraphic.cpp.


|
virtual |
Collect mesh instances
Reimplemented in TYTopographieGraphic, TYSiteNodeGraphic, TYCourbeNiveauGraphic, TYAltimetrieGraphic, TYAcousticRectangleGraphic, and TYPlanEauGraphic.
Definition at line 289 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, TYLinearMaillageGraphic, TYGeometryNodeGraphic, TYFaceSetGraphic, TYEtageGraphic, TYBoundaryNoiseMapGraphic, TYAltimetrieGraphic, TYAcousticVolumeNodeGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSemiCircleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticRectangleGraphic, TYAcousticPolygonGraphic, TYAcousticLineGraphic, TYAcousticFaceSetGraphic, TYAcousticCylinderGraphic, TYAcousticCircleGraphic, and TYAcousticBoxGraphic.
Definition at line 229 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 210 of file TYElementGraphic.cpp.

|
protected |
Definition at line 137 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 179 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 173 of file TYElementGraphic.h.

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

| bool TYElementGraphic::getOnlyBoundingBox | ( | ) | const |
Should we only show the bounding box
Definition at line 197 of file TYElementGraphic.cpp.
|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 154 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 82 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 91 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 139 of file TYElementGraphic.h.

| QMatrix4x4 TYElementGraphic::globalMatrix | ( | ) | const |
Get the global (relative to project root) matrix of this element
Definition at line 312 of file TYElementGraphic.cpp.


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


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

| const TYGeometryNodeGraphic * TYElementGraphic::nearestGeoNode | ( | ) | const |
Get the global the neareset geometry node parent up in the tree
Definition at line 292 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 114 of file TYElementGraphic.cpp.

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

| void TYElementGraphic::setModified | ( | bool | modified = true | ) |
Set/Get du flag indiquant si l'element associe a ete modifie.
Definition at line 321 of file TYElementGraphic.cpp.


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

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

|
mutableprivate |
Definition at line 270 of file TYElementGraphic.h.
|
mutableprivate |
Definition at line 261 of file TYElementGraphic.h.
|
static |
Indique si les normals doivent etre visible.
Definition at line 254 of file TYElementGraphic.h.
|
static |
Indique si les plafonds doivent etre visible.
Definition at line 257 of file TYElementGraphic.h.
|
protected |
Indique si le highlight est active pour cet element.
Definition at line 277 of file TYElementGraphic.h.
|
private |
Indique si l'element associe a ete modifie.
Definition at line 264 of file TYElementGraphic.h.
|
protected |
L'element metier auquel cet element graphique metier est associe.
Definition at line 274 of file TYElementGraphic.h.
|
protected |
Indique si le texturing est active pour cet element.
Definition at line 280 of file TYElementGraphic.h.
|
private |
Inique si on affiche la bounding box seule.
Definition at line 267 of file TYElementGraphic.h.
|
protected |
Inique si l'element est visible.
Definition at line 283 of file TYElementGraphic.h.