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

Default solver. More...

#include <TYSolver.h>

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

Public Member Functions

 TYSolver ()
 Constructor. More...
 
virtual ~TYSolver ()
 Destructor. More...
 
virtual bool solve (const tympan::AcousticProblemModel &aproblem, tympan::AcousticResultModel &aresult, tympan::LPSolverConfiguration configuration)
 Launch the resolution and get the results. More...
 
const std::vector< TYStructSurfIntersect > & getTabPolygon () const
 Get the array of polygons. More...
 
TYFaceSelectorgetFaceSelector ()
 Get the face selector. More...
 
TYAcousticPathFindergetAcousticPathFinder ()
 Get the acoustic path finder. More...
 
TYAcousticModelgetAcousticModel ()
 Get acoustic model. More...
 
const ScenegetScene () const
 Get the Scene. More...
 
- Public Member Functions inherited from SolverInterface
 SolverInterface ()
 
virtual ~SolverInterface ()
 
virtual void purge ()
 

Protected Member Functions

std::unique_ptr< TYFaceSelectormake_face_selector ()
 TYFaceSelector builder. More...
 
std::unique_ptr< TYAcousticPathFindermake_path_finder ()
 TYAcousticPathFinder builder. More...
 
std::unique_ptr< TYAcousticModelmake_acoustic_model ()
 TYAcousticModel builder. More...
 

Protected Attributes

std::unique_ptr< TYFaceSelector_faceSelector
 Pointer to the TYFaceSelector. More...
 
std::unique_ptr< TYAcousticPathFinder_acousticPathFinder
 Pointer to the TYAcousticPathFinder. More...
 
std::unique_ptr< TYAcousticModel_acousticModel
 Pointer to the TYAcousticModel. More...
 

Private Member Functions

bool buildCalcStruct (const tympan::AcousticProblemModel &aproblem)
 
bool appendTriangleToScene ()
 Convertion des triangles Tympan en primitives utilisables par ray tracer. More...
 

Private Attributes

std::vector< TYStructSurfIntersect_tabPolygon
 Vector of TYStructSurfIntersect. More...
 
std::vector< TYTrajet * > _tabTrajets
 Vector of TYTrajet. More...
 
OThreadPool_pool
 
std::unique_ptr< Scene_scene
 Pointer to the Scene. More...
 

Detailed Description

Default solver.

Definition at line 38 of file TYSolver.h.

Constructor & Destructor Documentation

◆ TYSolver()

TYSolver::TYSolver ( )

Constructor.

Definition at line 31 of file TYSolver.cpp.

Here is the call graph for this function:

◆ ~TYSolver()

TYSolver::~TYSolver ( )
virtual

Destructor.

Definition at line 50 of file TYSolver.cpp.

Member Function Documentation

◆ appendTriangleToScene()

bool TYSolver::appendTriangleToScene ( )
private

Convertion des triangles Tympan en primitives utilisables par ray tracer.

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

Definition at line 213 of file TYSolver.cpp.

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

◆ buildCalcStruct()

bool TYSolver::buildCalcStruct ( const tympan::AcousticProblemModel aproblem)
private

Definition at line 183 of file TYSolver.cpp.

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

◆ getAcousticModel()

TYAcousticModel* TYSolver::getAcousticModel ( )
inline

Get acoustic model.

Definition at line 60 of file TYSolver.h.

Here is the caller graph for this function:

◆ getAcousticPathFinder()

TYAcousticPathFinder* TYSolver::getAcousticPathFinder ( )
inline

Get the acoustic path finder.

Definition at line 58 of file TYSolver.h.

Here is the caller graph for this function:

◆ getFaceSelector()

TYFaceSelector* TYSolver::getFaceSelector ( )
inline

Get the face selector.

Definition at line 57 of file TYSolver.h.

Here is the caller graph for this function:

◆ getScene()

const Scene* TYSolver::getScene ( ) const
inline

Get the Scene.

Definition at line 62 of file TYSolver.h.

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

◆ getTabPolygon()

const std::vector<TYStructSurfIntersect>& TYSolver::getTabPolygon ( ) const
inline

Get the array of polygons.

Definition at line 55 of file TYSolver.h.

Here is the caller graph for this function:

◆ make_acoustic_model()

std::unique_ptr< TYAcousticModel > TYSolver::make_acoustic_model ( )
protected

TYAcousticModel builder.

Definition at line 178 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ make_face_selector()

std::unique_ptr< TYFaceSelector > TYSolver::make_face_selector ( )
protected

TYFaceSelector builder.

Definition at line 168 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ make_path_finder()

std::unique_ptr< TYAcousticPathFinder > TYSolver::make_path_finder ( )
protected

TYAcousticPathFinder builder.

Definition at line 173 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ solve()

bool TYSolver::solve ( const tympan::AcousticProblemModel aproblem,
tympan::AcousticResultModel aresult,
tympan::LPSolverConfiguration  configuration 
)
virtual

Launch the resolution and get the results.

Parameters
aproblemAcoustic problem
aresultResults
configurationSolver configuration
Returns
Always true

Implements SolverInterface.

Definition at line 66 of file TYSolver.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _acousticModel

std::unique_ptr<TYAcousticModel> TYSolver::_acousticModel
protected

Pointer to the TYAcousticModel.

Definition at line 71 of file TYSolver.h.

◆ _acousticPathFinder

std::unique_ptr<TYAcousticPathFinder> TYSolver::_acousticPathFinder
protected

Pointer to the TYAcousticPathFinder.

Definition at line 70 of file TYSolver.h.

◆ _faceSelector

std::unique_ptr<TYFaceSelector> TYSolver::_faceSelector
protected

Pointer to the TYFaceSelector.

Definition at line 69 of file TYSolver.h.

◆ _pool

OThreadPool* TYSolver::_pool
private

Definition at line 89 of file TYSolver.h.

◆ _scene

std::unique_ptr<Scene> TYSolver::_scene
private

Pointer to the Scene.

Definition at line 92 of file TYSolver.h.

◆ _tabPolygon

std::vector<TYStructSurfIntersect> TYSolver::_tabPolygon
private

Vector of TYStructSurfIntersect.

Definition at line 85 of file TYSolver.h.

◆ _tabTrajets

std::vector<TYTrajet*> TYSolver::_tabTrajets
private

Vector of TYTrajet.

Definition at line 87 of file TYSolver.h.


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