Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TYANIME3DAcousticPathFinder Class Reference

Research of acoustic paths for the ANIME3D method. More...

#include <TYANIME3DAcousticPathFinder.h>

Collaboration diagram for TYANIME3DAcousticPathFinder:
Collaboration graph
[legend]

Public Member Functions

 TYANIME3DAcousticPathFinder (TYStructSurfIntersect *tabPolygon, const size_t &tabPolygonSize, const tympan::AcousticProblemModel &aproblem_, tab_acoustic_path &tabTYRays, AtmosphericConditions &atmos)
 Constructor. More...
 
virtual ~TYANIME3DAcousticPathFinder ()
 Destructor. More...
 
bool exec ()
 Launch the research of acoustic paths. More...
 
SimulationgetRayTracer ()
 Get ray tracing object. More...
 
IGeometryModifierget_geometry_modifier ()
 Get the geometry modifier. More...
 

Private Member Functions

unsigned int getTabsSAndR (vector< vec3 > &sources, vector< vec3 > &recepteurs, vector< tympan::VolumeFaceDirectivity *> &directivities)
 Contruit la liste des points sources et des points recepteurs en fonction du parametre de sens de propa (S -> R) ou (R -> S) More...
 
bool appendTriangleToScene ()
 Convertion des triangles Tympan en primitives utilisables par le lancer de rayons. More...
 
void appendRecepteurToSimulation (vector< vec3 > &recepteurs)
 Ajoute les recepteurs a la simulation. More...
 
void appendSourceToSimulation (vector< vec3 > &sources, vector< tympan::VolumeFaceDirectivity *> &directivities)
 Ajoute les sources ponctuelles actives a la simulation. More...
 
void convert_Rays_to_acoustic_path (const unsigned int &sens)
 convertion des rayons en rayons TYMPAN More...
 
void sampleAndCorrection ()
 Computes angle and length correction \ by calling the three previous functions \ Creates two matrix which have corrected lengths and angles. More...
 
void set_source_idx_and_receptor_idx_to_acoustic_path (int sens, Ray *ray, acoustic_path *tyRay)
 
void build_geometry_transformer (const vector< vec3 > &sources)
 Method to build the transformer of the scene geometry according to different parameters. More...
 
void configure_raytracer ()
 Configure parameters of the AcousticRayTracer. More...
 

Private Attributes

Simulation _rayTracing
 Object _rayTracing for the straigth-line ray tracer. More...
 
std::unique_ptr< IGeometryModifiertransformer
 Object _curveRayTracing for the curved ray tracer. More...
 
TYStructSurfIntersect_tabPolygon
 Array containing all the informations relative to a site geometry and associated material to each face. More...
 
const size_t & _tabPolygonSize
 Polygons number in _tabPolygon. More...
 
tab_acoustic_path_tabTYRays
 Array containing all the Code_Tympan rays. More...
 
AtmosphericConditions_atmos
 Atmospheric conditions. More...
 
const tympan::AcousticProblemModel_aproblem
 

Detailed Description

Research of acoustic paths for the ANIME3D method.

Definition at line 29 of file TYANIME3DAcousticPathFinder.h.

Constructor & Destructor Documentation

◆ TYANIME3DAcousticPathFinder()

TYANIME3DAcousticPathFinder::TYANIME3DAcousticPathFinder ( TYStructSurfIntersect tabPolygon,
const size_t &  tabPolygonSize,
const tympan::AcousticProblemModel aproblem_,
tab_acoustic_path tabTYRays,
AtmosphericConditions atmos 
)

Constructor.

Parameters
tabPolygonArray containing all the informations relative to a site geometry and associated material to each face
tabPolygonSizeSize of the previous array
aproblem_Acoustic problem
tabTYRaysArray containing the acoustic paths for the rays
atmosAtmospheric conditions object

Definition at line 45 of file TYANIME3DAcousticPathFinder.cpp.

◆ ~TYANIME3DAcousticPathFinder()

TYANIME3DAcousticPathFinder::~TYANIME3DAcousticPathFinder ( )
virtual

Destructor.

Definition at line 58 of file TYANIME3DAcousticPathFinder.cpp.

Member Function Documentation

◆ appendRecepteurToSimulation()

void TYANIME3DAcousticPathFinder::appendRecepteurToSimulation ( vector< vec3 > &  recepteurs)
private

Ajoute les recepteurs a la simulation.

Definition at line 230 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ appendSourceToSimulation()

void TYANIME3DAcousticPathFinder::appendSourceToSimulation ( vector< vec3 > &  sources,
vector< tympan::VolumeFaceDirectivity *> &  directivities 
)
private

Ajoute les sources ponctuelles actives a la simulation.

Definition at line 245 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ appendTriangleToScene()

bool TYANIME3DAcousticPathFinder::appendTriangleToScene ( )
private

Convertion des triangles Tympan en primitives utilisables par le lancer de rayons.

Returns
Renvoie vrai si l'ensemble des primitives a bien pu etre importe dans la simulation.

Definition at line 180 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ build_geometry_transformer()

void TYANIME3DAcousticPathFinder::build_geometry_transformer ( const vector< vec3 > &  sources)
private

Method to build the transformer of the scene geometry according to different parameters.

Definition at line 372 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ configure_raytracer()

void TYANIME3DAcousticPathFinder::configure_raytracer ( )
private

Configure parameters of the AcousticRayTracer.

Definition at line 429 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ convert_Rays_to_acoustic_path()

void TYANIME3DAcousticPathFinder::convert_Rays_to_acoustic_path ( const unsigned int &  sens)
private

convertion des rayons en rayons TYMPAN

Definition at line 299 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ exec()

bool TYANIME3DAcousticPathFinder::exec ( )

Launch the research of acoustic paths.

Definition at line 62 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ get_geometry_modifier()

IGeometryModifier* TYANIME3DAcousticPathFinder::get_geometry_modifier ( )
inline

Get the geometry modifier.

Definition at line 62 of file TYANIME3DAcousticPathFinder.h.

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

◆ getRayTracer()

Simulation& TYANIME3DAcousticPathFinder::getRayTracer ( )
inline

Get ray tracing object.

Definition at line 59 of file TYANIME3DAcousticPathFinder.h.

Here is the caller graph for this function:

◆ getTabsSAndR()

unsigned int TYANIME3DAcousticPathFinder::getTabsSAndR ( vector< vec3 > &  sources,
vector< vec3 > &  recepteurs,
vector< tympan::VolumeFaceDirectivity *> &  directivities 
)
private

Contruit la liste des points sources et des points recepteurs en fonction du parametre de sens de propa (S -> R) ou (R -> S)

Returns
Renvoie 0 pour le sens S->R et 1 pour le sens R->S

Definition at line 113 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ sampleAndCorrection()

void TYANIME3DAcousticPathFinder::sampleAndCorrection ( )
private

Computes angle and length correction \ by calling the three previous functions \ Creates two matrix which have corrected lengths and angles.

Definition at line 324 of file TYANIME3DAcousticPathFinder.cpp.

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

◆ set_source_idx_and_receptor_idx_to_acoustic_path()

void TYANIME3DAcousticPathFinder::set_source_idx_and_receptor_idx_to_acoustic_path ( int  sens,
Ray ray,
acoustic_path tyRay 
)
private

Definition at line 350 of file TYANIME3DAcousticPathFinder.cpp.

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

Member Data Documentation

◆ _aproblem

const tympan::AcousticProblemModel& TYANIME3DAcousticPathFinder::_aproblem
private

Definition at line 134 of file TYANIME3DAcousticPathFinder.h.

◆ _atmos

AtmosphericConditions& TYANIME3DAcousticPathFinder::_atmos
private

Atmospheric conditions.

Definition at line 132 of file TYANIME3DAcousticPathFinder.h.

◆ _rayTracing

Simulation TYANIME3DAcousticPathFinder::_rayTracing
private

Object _rayTracing for the straigth-line ray tracer.

Definition at line 117 of file TYANIME3DAcousticPathFinder.h.

◆ _tabPolygon

TYStructSurfIntersect* TYANIME3DAcousticPathFinder::_tabPolygon
private

Array containing all the informations relative to a site geometry and associated material to each face.

Definition at line 123 of file TYANIME3DAcousticPathFinder.h.

◆ _tabPolygonSize

const size_t& TYANIME3DAcousticPathFinder::_tabPolygonSize
private

Polygons number in _tabPolygon.

Definition at line 126 of file TYANIME3DAcousticPathFinder.h.

◆ _tabTYRays

tab_acoustic_path& TYANIME3DAcousticPathFinder::_tabTYRays
private

Array containing all the Code_Tympan rays.

Definition at line 129 of file TYANIME3DAcousticPathFinder.h.

◆ transformer

std::unique_ptr<IGeometryModifier> TYANIME3DAcousticPathFinder::transformer
private

Object _curveRayTracing for the curved ray tracer.

Definition at line 120 of file TYANIME3DAcousticPathFinder.h.


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