|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Rendering class for the BoundaryNoiseMap entity. More...
#include <TYBoundaryNoiseMapGraphic.h>


Public Types | |
| enum | RenderingMode { RENDER_SURF , RENDER_LINES , RENDER_MIXED } |
Public Member Functions | |
| TYBoundaryNoiseMapGraphic (TYBoundaryNoiseMap *pElement) | |
| Constructor. More... | |
| virtual | ~TYBoundaryNoiseMapGraphic () |
| Destructor. More... | |
| virtual void | update (bool force=false) |
| Update the mesh and the isocurve. More... | |
| virtual void | display (TYRenderContext &renderContext) |
| Display the object. More... | |
| virtual void | getChilds (TYListPtrTYElementGraphic &childs, bool recursive=true) |
| Set the children. More... | |
| virtual OBox | computeBoundingBox () const |
| Compute the bounding box of the object. More... | |
| virtual void | setRendering (int mode) |
| Set the rendering mode (surface, isocurve or both). More... | |
Public Member Functions inherited from TYElementGraphic | |
| virtual | ~TYElementGraphic () |
| void | setElement (TYElement *pElt) |
| TYElement * | getTYElement () |
| const TYElement * | getTYElement () const |
| void | updateTree () |
| 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 |
| 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 |
Public Attributes | |
| enum TYBoundaryNoiseMapGraphic::RenderingMode | _Rendering |
Protected Member Functions | |
| virtual void | displayMixed (float opacity=1.f, bool antialiasing=true) |
| Display both the surface and the isocurve. More... | |
| virtual void | displaySurface (float opacity=1.f, bool antialiasing=true) |
| Display the surface of the mesh. More... | |
| virtual void | displayLines (float opacity=1.f, bool invertColors=false) |
| Display the isocurve. More... | |
| void | displayOnHighlight (TYRenderContext &renderContext) |
| What we have to display when the entity is highlighted. More... | |
Protected Member Functions inherited from TYElementGraphic | |
| TYElementGraphic (TYElement *pElt) | |
| void | displayNormal (OVector3D normal, OPoint3D p1) |
| void | drawName (TYRenderContext &renderContext) |
| void | invalidateBoundingBox () |
Protected Attributes | |
| LPTYPolyLineGraphic | _pPolyLineGraphic |
| The polyline rendering. More... | |
| std::vector< MTriangle > | _mesh |
| The mesh. More... | |
| std::vector< MPoint > | _isoCurve |
| The iso curve. More... | |
| double | _paletteX |
| The position of the palette in x. More... | |
| double | _paletteY |
| The position of the palette in y. More... | |
| double | _paletteW |
| The width of the palette. More... | |
| double | _paletteH |
| The height of the palette. More... | |
| double | _panelW |
| The width of the panel. More... | |
| double | _panelH |
| The height of the panel. More... | |
Protected Attributes inherited from TYElementGraphic | |
| 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from TYElementGraphic | |
| static bool | _gDrawNormals = false |
| Indique si les normals doivent etre visible. More... | |
| static bool | _gDrawPlafond = true |
| Indique si les plafonds doivent etre visible. More... | |
Rendering class for the BoundaryNoiseMap entity.
Definition at line 43 of file TYBoundaryNoiseMapGraphic.h.
| Enumerator | |
|---|---|
| RENDER_SURF | |
| RENDER_LINES | |
| RENDER_MIXED | |
Definition at line 48 of file TYBoundaryNoiseMapGraphic.h.
| TYBoundaryNoiseMapGraphic::TYBoundaryNoiseMapGraphic | ( | TYBoundaryNoiseMap * | pElement | ) |
Constructor.
Definition at line 33 of file TYBoundaryNoiseMapGraphic.cpp.

|
inlinevirtual |
Destructor.
Definition at line 63 of file TYBoundaryNoiseMapGraphic.h.
|
virtual |
Compute the bounding box of the object.
Reimplemented from TYElementGraphic.
Definition at line 96 of file TYBoundaryNoiseMapGraphic.cpp.

|
virtual |
Display the object.
| pModelerElement | The element |
| mode | The mode (selection mode vs display mode) |
Reimplemented from TYElementGraphic.
Definition at line 115 of file TYBoundaryNoiseMapGraphic.cpp.

|
protectedvirtual |
Display the isocurve.
| opacity | The transparency |
| invertColors | If the color are inverted |
Definition at line 249 of file TYBoundaryNoiseMapGraphic.cpp.


|
protectedvirtual |
Display both the surface and the isocurve.
| opacity | The transparency |
| antialiasing | Whether the antialising is activated or not |
Definition at line 109 of file TYBoundaryNoiseMapGraphic.cpp.


|
protected |
What we have to display when the entity is highlighted.
| mode | The rendering mode |
Definition at line 279 of file TYBoundaryNoiseMapGraphic.cpp.


|
protectedvirtual |
Display the surface of the mesh.
| opacity | The transparency |
| antialiasing | Whether the antialising is activated or not |
Definition at line 189 of file TYBoundaryNoiseMapGraphic.cpp.


|
virtual |
Set the children.
| childs | The container that contains the children |
| recursive | If a recursive check is performed |
Reimplemented from TYElementGraphic.
Definition at line 86 of file TYBoundaryNoiseMapGraphic.cpp.

|
inlinevirtual |
Set the rendering mode (surface, isocurve or both).
| mode | The rendering mode |
Definition at line 94 of file TYBoundaryNoiseMapGraphic.h.
|
virtual |
Update the mesh and the isocurve.
| force | If we force the update |
Reimplemented from TYElementGraphic.
Definition at line 62 of file TYBoundaryNoiseMapGraphic.cpp.


|
protected |
The iso curve.
Definition at line 135 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The mesh.
Definition at line 132 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The height of the palette.
Definition at line 149 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The width of the palette.
Definition at line 146 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The position of the palette in x.
Definition at line 140 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The position of the palette in y.
Definition at line 143 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The height of the panel.
Definition at line 155 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The width of the panel.
Definition at line 152 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The polyline rendering.
Definition at line 129 of file TYBoundaryNoiseMapGraphic.h.
| enum TYBoundaryNoiseMapGraphic::RenderingMode TYBoundaryNoiseMapGraphic::_Rendering |