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

Detailed Description

Rendering class for the BoundaryNoiseMap entity.

Definition at line 44 of file TYBoundaryNoiseMapGraphic.h.

Member Enumeration Documentation

◆ RenderingMode

Enumerator
RENDER_SURF 
RENDER_LINES 
RENDER_MIXED 

Definition at line 49 of file TYBoundaryNoiseMapGraphic.h.

Constructor & Destructor Documentation

◆ TYBoundaryNoiseMapGraphic()

TYBoundaryNoiseMapGraphic::TYBoundaryNoiseMapGraphic ( TYBoundaryNoiseMap pElement)

Constructor.

Definition at line 32 of file TYBoundaryNoiseMapGraphic.cpp.

Here is the call graph for this function:

◆ ~TYBoundaryNoiseMapGraphic()

virtual TYBoundaryNoiseMapGraphic::~TYBoundaryNoiseMapGraphic ( )
inlinevirtual

Destructor.

Definition at line 64 of file TYBoundaryNoiseMapGraphic.h.

Member Function Documentation

◆ computeBoundingBox()

void TYBoundaryNoiseMapGraphic::computeBoundingBox ( )
virtual

Compute the bounding box of the object.

Reimplemented from TYElementGraphic.

Definition at line 92 of file TYBoundaryNoiseMapGraphic.cpp.

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

◆ display()

void TYBoundaryNoiseMapGraphic::display ( TYElement pModelerElement = nullptr,
GLenum  mode = GL_RENDER 
)
virtual

Display the object.

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

Reimplemented from TYElementGraphic.

Definition at line 111 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 209 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)
protectedvirtual

Display both the surface and the isocurve.

Parameters
opacityThe transparency

Definition at line 105 of file TYBoundaryNoiseMapGraphic.cpp.

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

◆ displayOnHighlight()

void TYBoundaryNoiseMapGraphic::displayOnHighlight ( int  mode)
protected

What we have to display when the entity is highlighted.

Parameters
modeThe rendering mode

Definition at line 239 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)
protectedvirtual

Display the surface of the mesh.

Parameters
opacityThe transparency

Definition at line 182 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 82 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 95 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 61 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 134 of file TYBoundaryNoiseMapGraphic.h.

◆ _mesh

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

The mesh.

Definition at line 131 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteH

double TYBoundaryNoiseMapGraphic::_paletteH
protected

The height of the palette.

Definition at line 148 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteW

double TYBoundaryNoiseMapGraphic::_paletteW
protected

The width of the palette.

Definition at line 145 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteX

double TYBoundaryNoiseMapGraphic::_paletteX
protected

The position of the palette in x.

Definition at line 139 of file TYBoundaryNoiseMapGraphic.h.

◆ _paletteY

double TYBoundaryNoiseMapGraphic::_paletteY
protected

The position of the palette in y.

Definition at line 142 of file TYBoundaryNoiseMapGraphic.h.

◆ _panelH

double TYBoundaryNoiseMapGraphic::_panelH
protected

The height of the panel.

Definition at line 154 of file TYBoundaryNoiseMapGraphic.h.

◆ _panelW

double TYBoundaryNoiseMapGraphic::_panelW
protected

The width of the panel.

Definition at line 151 of file TYBoundaryNoiseMapGraphic.h.

◆ _pPolyLineGraphic

LPTYPolyLineGraphic TYBoundaryNoiseMapGraphic::_pPolyLineGraphic
protected

The polyline rendering.

Definition at line 128 of file TYBoundaryNoiseMapGraphic.h.

◆ _Rendering

enum TYBoundaryNoiseMapGraphic::RenderingMode TYBoundaryNoiseMapGraphic::_Rendering

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