Class for computing path used by TYAcousticPathFinder.
More...
#include <TYCalculParcours.h>
|
| | TYCalculParcours (int nNbSegMax, bool _bVertical) |
| | Constructor. More...
|
| |
| | TYCalculParcours (TYSetGeometriqueParcours *geoImporterDXF, TYSetGeometriqueParcours *geoSR, bool _bVertical) |
| | Other constructor. More...
|
| |
| | ~TYCalculParcours () |
| | Destructor. More...
|
| |
| void | InitChangementVariable2D3D (bool bAxeXMoinsSignifiant) |
| | Select the 2D plane and set _indexXInOut, _indexYInOut, _indexZInOut. More...
|
| |
| void | AjouterSegmentCoupe (double *ptA, double *ptB, bool isInfra, bool isEcran) |
| | Add a segment defined by 2 points. More...
|
| |
| void | AjouterSegmentSR (double *ptA, double *ptB) |
| | Add points A (source) and B (receptor) More...
|
| |
| void | PointTrajetGauche (int i, double *pt) |
| | Return the ith point of the left geometric path. More...
|
| |
| void | PointTrajetDroite (int i, double *pt) |
| | Return the ith point of the right geometric path. More...
|
| |
| int | NombrePointsTrajetDroite () |
| | Return the points number of the left geometric path. More...
|
| |
| int | NombrePointsTrajetGauche () |
| | Return the points number of the right geometric path. More...
|
| |
| bool | Traitement () |
| | Build the left and right geometric paths. More...
|
| |
|
| | FRIEND_TEST (test_TYCalculParcours, InitChangementVariable2D3D) |
| |
| | FRIEND_TEST (test_TYCalculParcours, AjouterSegmentSR) |
| |
| | FRIEND_TEST (test_TYCalculParcours, AjouterSegmentCoupe) |
| |
| | FRIEND_TEST (test_TYCalculParcours, PointTrajetGauche) |
| |
| | FRIEND_TEST (test_TYCalculParcours, PointTrajetDroite) |
| |
| | FRIEND_TEST (test_TYCalculParcours, Traitement) |
| |
| void | PointTrajet (int i, double *pt, TYSetGeometriqueParcours *geo) |
| | copy coordinates from the point of index i from the object geo into pt More...
|
| |
| void | AjouterSegment (double *ptA, double *ptB, bool isInfra, bool isEcran, TYSetGeometriqueParcours *geo) |
| | creates and add vector AB into geo More...
|
| |
| bool | CalculTrajet (TYSetGeometriqueParcours &geoCourant, bool bCoteGauche, bool *PointsAGauche, bool *PointsADroite, TYSetGeometriqueParcours &geoPremierePasse, TYSetGeometriqueParcours *&geoTrajet) |
| | select the points that could be included in the path More...
|
| |
| int | Traite (TYSetGeometriqueParcours &geoDernierePasseGauche, TYSetGeometriqueParcours &geoDernierePasseDroite, TYSetGeometriqueParcours *&geoTrajetGauche, TYSetGeometriqueParcours *&geoTrajetDroite) |
| | Handles the pathfinding for lateral and vertical paths. More...
|
| |
Class for computing path used by TYAcousticPathFinder.
Definition at line 35 of file TYCalculParcours.h.
◆ TYCalculParcours() [1/2]
| TYCalculParcours::TYCalculParcours |
( |
int |
nNbSegMax, |
|
|
bool |
_bVertical |
|
) |
| |
Constructor.
- Parameters
-
| nNbSegMax | Max number of segments for the path |
| _bVertical | True if vertical paths are computed, false if horizontal paths are computed |
Definition at line 29 of file TYCalculParcours.cpp.
◆ TYCalculParcours() [2/2]
◆ ~TYCalculParcours()
| TYCalculParcours::~TYCalculParcours |
( |
| ) |
|
◆ AjouterSegment()
| void TYCalculParcours::AjouterSegment |
( |
double * |
ptA, |
|
|
double * |
ptB, |
|
|
bool |
isInfra, |
|
|
bool |
isEcran, |
|
|
TYSetGeometriqueParcours * |
geo |
|
) |
| |
|
private |
creates and add vector AB into geo
- Parameters
-
| double* | ptA |
| double* | ptB |
| bool | isInfra |
| bool | isEcran |
| TYSetGeometriqueParcours* | geo |
Definition at line 104 of file TYCalculParcours.cpp.
◆ AjouterSegmentCoupe()
| void TYCalculParcours::AjouterSegmentCoupe |
( |
double * |
ptA, |
|
|
double * |
ptB, |
|
|
bool |
isInfra, |
|
|
bool |
isEcran |
|
) |
| |
Add a segment defined by 2 points.
- Parameters
-
| ptA | Point A |
| ptB | Point B |
| isInfra | Boolean true if infra |
| isEcran | Boolean trie if screen |
Definition at line 220 of file TYCalculParcours.cpp.
◆ AjouterSegmentSR()
| void TYCalculParcours::AjouterSegmentSR |
( |
double * |
ptA, |
|
|
double * |
ptB |
|
) |
| |
◆ CalculTrajet()
select the points that could be included in the path
- Parameters
-
| TYSetGeometriqueParcours& | geoCourant |
| bool | bCoteGauche |
| bool* | PointsAGauche |
| bool* | PointsADroite |
| TYSetGeometriqueParcours& | geoPremierePasse |
| TYSetGeometriqueParcours*& | geoTrajet |
- Returns
- true if there is a valid path, false if there isn't
Definition at line 297 of file TYCalculParcours.cpp.
◆ FRIEND_TEST() [1/6]
◆ FRIEND_TEST() [2/6]
◆ FRIEND_TEST() [3/6]
◆ FRIEND_TEST() [4/6]
◆ FRIEND_TEST() [5/6]
◆ FRIEND_TEST() [6/6]
| TYCalculParcours::FRIEND_TEST |
( |
test_TYCalculParcours |
, |
|
|
Traitement |
|
|
) |
| |
|
private |
◆ InitChangementVariable2D3D()
| void TYCalculParcours::InitChangementVariable2D3D |
( |
bool |
bAxeXMoinsSignifiant | ) |
|
Select the 2D plane and set _indexXInOut, _indexYInOut, _indexZInOut.
- Parameters
-
| bAxeXMoinsSignifiant | True for horizontal view if Source-Receptor is more Y oriented than X oriented |
Definition at line 59 of file TYCalculParcours.cpp.
◆ NombrePointsTrajetDroite()
| int TYCalculParcours::NombrePointsTrajetDroite |
( |
| ) |
|
◆ NombrePointsTrajetGauche()
| int TYCalculParcours::NombrePointsTrajetGauche |
( |
| ) |
|
◆ PointTrajet()
copy coordinates from the point of index i from the object geo into pt
- Parameters
-
| int | i |
| double* | pt |
| TYSetGeometriqueParcours* | geo |
Definition at line 248 of file TYCalculParcours.cpp.
◆ PointTrajetDroite()
| void TYCalculParcours::PointTrajetDroite |
( |
int |
i, |
|
|
double * |
pt |
|
) |
| |
◆ PointTrajetGauche()
| void TYCalculParcours::PointTrajetGauche |
( |
int |
i, |
|
|
double * |
pt |
|
) |
| |
◆ Traite()
Handles the pathfinding for lateral and vertical paths.
- Parameters
-
| TYSetGeometriqueParcours& | geoDernierePasseGauche |
| TYSetGeometriqueParcours& | geoDernierePasseDroite |
| TYSetGeometriqueParcours*& | geoTrajetGauche |
| TYSetGeometriqueParcours*& | geoTrajetDroite |
- Returns
- -1 if the segment SR doesn't exist, 0 otherwise //FIXME : why is this not a bool ?
Definition at line 352 of file TYCalculParcours.cpp.
◆ Traitement()
| bool TYCalculParcours::Traitement |
( |
| ) |
|
◆ _bVertical
| bool TYCalculParcours::_bVertical |
|
private |
◆ _estUnPointIntersectant
| std::vector<bool> TYCalculParcours::_estUnPointIntersectant |
|
private |
◆ _geoDernierePasseDroite
◆ _geoDernierePasseGauche
◆ _geoImporterDXF
◆ _geoSR
◆ _geoTrajetDroite
◆ _geoTrajetGauche
◆ _indexXInOut
| int TYCalculParcours::_indexXInOut |
|
private |
◆ _indexYInOut
| int TYCalculParcours::_indexYInOut |
|
private |
◆ _indexZInOut
| int TYCalculParcours::_indexZInOut |
|
private |
◆ _nNbSegMax
| int TYCalculParcours::_nNbSegMax |
|
private |
◆ _vectorPoint
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/ConvexHullFinder/TYCalculParcours.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/ConvexHullFinder/TYCalculParcours.cpp