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

Task of a thread collection for Tympan. More...

#include <TYTask9613Solver.h>

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

Public Member Functions

 TYTask9613Solver (TYSolver9613Solver &solver, const tympan::nodes_pool_t &nodes, const tympan::triangle_pool_t &triangles, const tympan::material_pool_t &materials, TYTrajet9613Solver &trajet, int nNbTrajets)
 Constructor. More...
 
- Public Member Functions inherited from TYTask
 TYTask (const tympan::nodes_pool_t &nodes, const tympan::triangle_pool_t &triangles, const tympan::material_pool_t &materials, int nNbTrajets)
 Constructor. More...
 
 ~TYTask ()
 Destructor. More...
 
void main ()
 Main procedure to run the task. More...
 
- Public Member Functions inherited from OTask
 OTask ()
 Default constructor. More...
 
virtual ~OTask ()
 Destructor : waits for the end of the task to destroy it. More...
 
bool isRunning () const
 Return true if the task is running, false otherwise. More...
 
bool isCompleted () const
 Return true if the task is completed, false otherwise. More...
 
bool isCanceled () const
 Return true if the task has been cancelled, false otherwise. More...
 
void reset ()
 Reset the task status (_running=false and _completed=false) More...
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Private Member Functions

virtual void getRayonFromTrajet (OSegment3D &rayon) override
 Build a ray from the source->receptor Trajet. More...
 
virtual void selectFaces (OSegment3D &rayon) override
 Delegate to solver the build of the intersecting faces between the scene and the ray. More...
 
virtual void computePath (TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) override
 Delegate to solver the computation of the intersecting top, left and right points between the scene and the ray. More...
 
void launchAcousticComputation (TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) override
 Delegate to solver the acoustic computation for this task. More...
 

Private Attributes

TYSolver9613Solver_solver
 Reference to the solver. More...
 
TYTrajet9613Solver_trajet
 Reference to the path. More...
 

Additional Inherited Members

- Protected Attributes inherited from TYTask
std::deque< TYSIntersection_tabIntersect
 Array of intersections. More...
 
- Protected Attributes inherited from OTask
bool _running
 Running flag. More...
 
bool _completed
 Completed flag. More...
 
bool _canceled
 Cancel flag. More...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Detailed Description

Task of a thread collection for Tympan.

Definition at line 29 of file TYTask9613Solver.h.

Constructor & Destructor Documentation

◆ TYTask9613Solver()

TYTask9613Solver::TYTask9613Solver ( TYSolver9613Solver solver,
const tympan::nodes_pool_t nodes,
const tympan::triangle_pool_t triangles,
const tympan::material_pool_t materials,
TYTrajet9613Solver trajet,
int  nNbTrajets 
)

Constructor.

Parameters
solver9613Solver solver object
nodesNodes
trianglesTriangles
materialsMaterials
trajetPath
nNbTrajetsPath number

Definition at line 21 of file TYTask9613Solver.cpp.

Member Function Documentation

◆ computePath()

void TYTask9613Solver::computePath ( TabPoint3D ptsTop,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
)
overrideprivatevirtual

Delegate to solver the computation of the intersecting top, left and right points between the scene and the ray.

Parameters
[out]ptsTopArray of points composing the intersection between plane EV and the scene false)
[out]ptsLeftArray of points composing the intersection betwwen plane EL, on the left, and the scene
[out]ptsRightArray of points composing the intersection betwwen plane EL, on the right, and the scene

Implements TYTask.

Definition at line 39 of file TYTask9613Solver.cpp.

Here is the call graph for this function:

◆ getRayonFromTrajet()

void TYTask9613Solver::getRayonFromTrajet ( OSegment3D rayon)
overrideprivatevirtual

Build a ray from the source->receptor Trajet.

Parameters
[out]rayonThe ray built

Implements TYTask.

Definition at line 29 of file TYTask9613Solver.cpp.

Here is the call graph for this function:

◆ launchAcousticComputation()

void TYTask9613Solver::launchAcousticComputation ( TabPoint3D ptsTop,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
)
overrideprivatevirtual

Delegate to solver the acoustic computation for this task.

Parameters
ptsTop[in] Top points
ptsLeft[in] Left points
ptsRight[in] Right points

Implements TYTask.

Definition at line 44 of file TYTask9613Solver.cpp.

Here is the call graph for this function:

◆ selectFaces()

void TYTask9613Solver::selectFaces ( OSegment3D rayon)
overrideprivatevirtual

Delegate to solver the build of the intersecting faces between the scene and the ray.

Parameters
rayonThe considered ray

Implements TYTask.

Definition at line 34 of file TYTask9613Solver.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _solver

TYSolver9613Solver& TYTask9613Solver::_solver
private

Reference to the solver.

Definition at line 67 of file TYTask9613Solver.h.

◆ _trajet

TYTrajet9613Solver& TYTask9613Solver::_trajet
private

Reference to the path.

Definition at line 69 of file TYTask9613Solver.h.


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