Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
TYBoundaryNoiseMapGraphic Class Reference

Rendering class for the BoundaryNoiseMap entity. More...

#include <TYBoundaryNoiseMapGraphic.h>

Inheritance diagram for TYBoundaryNoiseMapGraphic:
Inheritance graph
[legend]
Collaboration diagram for TYBoundaryNoiseMapGraphic:
Collaboration graph
[legend]

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)
 
TYElementgetTYElement ()
 
const TYElementgetTYElement () 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 TYGeometryNodeGraphicnearestGeoNode () 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...
 

Detailed Description

Rendering class for the BoundaryNoiseMap entity.

Definition at line 43 of file TYBoundaryNoiseMapGraphic.h.

Member Enumeration Documentation

◆ RenderingMode

Enumerator
RENDER_SURF 
RENDER_LINES 
RENDER_MIXED 

Definition at line 48 of file TYBoundaryNoiseMapGraphic.h.

Constructor & Destructor Documentation

◆ TYBoundaryNoiseMapGraphic()

TYBoundaryNoiseMapGraphic::TYBoundaryNoiseMapGraphic ( TYBoundaryNoiseMap pElement)

Constructor.

Definition at line 33 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:

◆ ~TYBoundaryNoiseMapGraphic()

virtual TYBoundaryNoiseMapGraphic::~TYBoundaryNoiseMapGraphic ( )
inlinevirtual

Destructor.

Definition at line 63 of file TYBoundaryNoiseMapGraphic.h.

Member Function Documentation

◆ computeBoundingBox()

OBox TYBoundaryNoiseMapGraphic::computeBoundingBox ( ) const
virtual

Compute the bounding box of the object.

Reimplemented from TYElementGraphic.

Definition at line 96 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:

◆ display()

void TYBoundaryNoiseMapGraphic::display ( TYRenderContext renderContext)
virtual

Display the object.

Parameters
pModelerElementThe element
modeThe mode (selection mode vs display mode)

Reimplemented from TYElementGraphic.

Definition at line 115 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:

◆ displayLines()

void TYBoundaryNoiseMapGraphic::displayLines ( float  opacity = 1.f,
bool  invertColors = false 
)
protectedvirtual

Display the isocurve.

Parameters
opacityThe transparency
invertColorsIf the color are inverted

Definition at line 249 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayMixed()

void TYBoundaryNoiseMapGraphic::displayMixed ( float  opacity = 1.f,
bool  antialiasing = true 
)
protectedvirtual

Display both the surface and the isocurve.

Parameters
opacityThe transparency
antialiasingWhether the antialising is activated or not

Definition at line 109 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayOnHighlight()

void TYBoundaryNoiseMapGraphic::displayOnHighlight ( TYRenderContext renderContext)
protected

What we have to display when the entity is highlighted.

Parameters
modeThe rendering mode

Definition at line 279 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displaySurface()

void TYBoundaryNoiseMapGraphic::displaySurface ( float  opacity = 1.f,
bool  antialiasing = true 
)
protectedvirtual

Display the surface of the mesh.

Parameters
opacityThe transparency
antialiasingWhether the antialising is activated or not

Definition at line 189 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChilds()

void TYBoundaryNoiseMapGraphic::getChilds ( TYListPtrTYElementGraphic childs,
bool  recursive = true 
)
virtual

Set the children.

Parameters
childsThe container that contains the children
recursiveIf a recursive check is performed

Reimplemented from TYElementGraphic.

Definition at line 86 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:

◆ setRendering()

virtual void TYBoundaryNoiseMapGraphic::setRendering ( int  mode)
inlinevirtual

Set the rendering mode (surface, isocurve or both).

Parameters
modeThe rendering mode

Definition at line 94 of file TYBoundaryNoiseMapGraphic.h.

◆ update()

void TYBoundaryNoiseMapGraphic::update ( bool  force = false)
virtual

Update the mesh and the isocurve.

Parameters
forceIf we force the update

Reimplemented from TYElementGraphic.

Definition at line 62 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _isoCurve

std::vector<MPoint> TYBoundaryNoiseMapGraphic::_isoCurve
protected

The iso curve.

Definition at line 135 of file TYBoundaryNoiseMapGraphic.h.

◆ _mesh

std::vector<MTriangle> TYBoundaryNoiseMapGraphic::_mesh
protected

The mesh.

Definition at line 132 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteH

double TYBoundaryNoiseMapGraphic::_paletteH
protected

The height of the palette.

Definition at line 149 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteW

double TYBoundaryNoiseMapGraphic::_paletteW
protected

The width of the palette.

Definition at line 146 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteX

double TYBoundaryNoiseMapGraphic::_paletteX
protected

The position of the palette in x.

Definition at line 140 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteY

double TYBoundaryNoiseMapGraphic::_paletteY
protected

The position of the palette in y.

Definition at line 143 of file TYBoundaryNoiseMapGraphic.h.

◆ _panelH

double TYBoundaryNoiseMapGraphic::_panelH
protected

The height of the panel.

Definition at line 155 of file TYBoundaryNoiseMapGraphic.h.

◆ _panelW

double TYBoundaryNoiseMapGraphic::_panelW
protected

The width of the panel.

Definition at line 152 of file TYBoundaryNoiseMapGraphic.h.

◆ _pPolyLineGraphic

LPTYPolyLineGraphic TYBoundaryNoiseMapGraphic::_pPolyLineGraphic
protected

The polyline rendering.

Definition at line 129 of file TYBoundaryNoiseMapGraphic.h.

◆ _Rendering

enum TYBoundaryNoiseMapGraphic::RenderingMode TYBoundaryNoiseMapGraphic::_Rendering

The documentation for this class was generated from the following files: