|
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 (TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER) |
| Display the object. More... | |
| virtual void | getChilds (TYListPtrTYElementGraphic &childs, bool recursive=true) |
| Set the children. More... | |
| virtual void | computeBoundingBox () |
| 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 () |
| void | updateTree () |
| 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 () |
| 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 |
Public Attributes | |
| enum TYBoundaryNoiseMapGraphic::RenderingMode | _Rendering |
Protected Member Functions | |
| virtual void | displayMixed (float opacity=1.f) |
| Display both the surface and the isocurve. More... | |
| virtual void | displaySurface (float opacity=1.f) |
| Display the surface of the mesh. More... | |
| virtual void | displayLines (float opacity=1.f, bool invertColors=false) |
| Display the isocurve. More... | |
| void | displayOnHighlight (int mode) |
| 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 | 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 | |
| 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 | |
| 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from TYElementGraphic | |
| 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... | |
Rendering class for the BoundaryNoiseMap entity.
Definition at line 44 of file TYBoundaryNoiseMapGraphic.h.
| Enumerator | |
|---|---|
| RENDER_SURF | |
| RENDER_LINES | |
| RENDER_MIXED | |
Definition at line 49 of file TYBoundaryNoiseMapGraphic.h.
| TYBoundaryNoiseMapGraphic::TYBoundaryNoiseMapGraphic | ( | TYBoundaryNoiseMap * | pElement | ) |
Constructor.
Definition at line 32 of file TYBoundaryNoiseMapGraphic.cpp.

|
inlinevirtual |
Destructor.
Definition at line 64 of file TYBoundaryNoiseMapGraphic.h.
|
virtual |
Compute the bounding box of the object.
Reimplemented from TYElementGraphic.
Definition at line 92 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 111 of file TYBoundaryNoiseMapGraphic.cpp.

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


|
protectedvirtual |
Display both the surface and the isocurve.
| opacity | The transparency |
Definition at line 105 of file TYBoundaryNoiseMapGraphic.cpp.


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


|
protectedvirtual |
Display the surface of the mesh.
| opacity | The transparency |
Definition at line 182 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 82 of file TYBoundaryNoiseMapGraphic.cpp.

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


|
protected |
The iso curve.
Definition at line 134 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The mesh.
Definition at line 131 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The height of the palette.
Definition at line 148 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The width of the palette.
Definition at line 145 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The position of the palette in x.
Definition at line 139 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The position of the palette in y.
Definition at line 142 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The height of the panel.
Definition at line 154 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The width of the panel.
Definition at line 151 of file TYBoundaryNoiseMapGraphic.h.
|
protected |
The polyline rendering.
Definition at line 128 of file TYBoundaryNoiseMapGraphic.h.
| enum TYBoundaryNoiseMapGraphic::RenderingMode TYBoundaryNoiseMapGraphic::_Rendering |