23 #ifndef TYCALCUL_PARCOURS_H
24 #define TYCALCUL_PARCOURS_H
26 #include <gtest/gtest_prod.h>
Class for computing path used by TYAcousticPathFinder.
TYSetGeometriqueParcours * _geoImporterDXF
TYSetGeometriqueParcours * _geoSR
std::vector< bool > _estUnPointIntersectant
void AjouterSegmentSR(double *ptA, double *ptB)
Add points A (source) and B (receptor)
void AjouterSegmentCoupe(double *ptA, double *ptB, bool isInfra, bool isEcran)
Add a segment defined by 2 points.
int _nNbSegMax
Number of segments (encountered faces)
void InitChangementVariable2D3D(bool bAxeXMoinsSignifiant)
Select the 2D plane and set _indexXInOut, _indexYInOut, _indexZInOut.
FRIEND_TEST(test_TYCalculParcours, PointTrajetGauche)
int Traite(TYSetGeometriqueParcours &geoDernierePasseGauche, TYSetGeometriqueParcours &geoDernierePasseDroite, TYSetGeometriqueParcours *&geoTrajetGauche, TYSetGeometriqueParcours *&geoTrajetDroite)
Handles the pathfinding for lateral and vertical paths.
TYSetGeometriqueParcours * _geoTrajetGauche
Paths list on the left.
FRIEND_TEST(test_TYCalculParcours, PointTrajetDroite)
~TYCalculParcours()
Destructor.
bool Traitement()
Build the left and right geometric paths.
FRIEND_TEST(test_TYCalculParcours, AjouterSegmentCoupe)
TYCalculParcours(int nNbSegMax, bool _bVertical)
Constructor.
void PointTrajetDroite(int i, double *pt)
Return the ith point of the right geometric path.
int NombrePointsTrajetDroite()
Return the points number of the left geometric path.
void PointTrajetGauche(int i, double *pt)
Return the ith point of the left geometric path.
int NombrePointsTrajetGauche()
Return the points number of the right geometric path.
FRIEND_TEST(test_TYCalculParcours, InitChangementVariable2D3D)
bool _bVertical
True if horizontal view.
void AjouterSegment(double *ptA, double *ptB, bool isInfra, bool isEcran, TYSetGeometriqueParcours *geo)
creates and add vector AB into geo
FRIEND_TEST(test_TYCalculParcours, Traitement)
FRIEND_TEST(test_TYCalculParcours, AjouterSegmentSR)
TYSetGeometriqueParcours _geoDernierePasseGauche
TYSetGeometriqueParcours * _geoTrajetDroite
Paths list on the right.
TYSetGeometriqueParcours _geoDernierePasseDroite
std::vector< TYPointParcours * > _vectorPoint
void PointTrajet(int i, double *pt, TYSetGeometriqueParcours *geo)
copy coordinates from the point of index i from the object geo into pt
bool CalculTrajet(TYSetGeometriqueParcours &geoCourant, bool bCoteGauche, bool *PointsAGauche, bool *PointsADroite, TYSetGeometriqueParcours &geoPremierePasse, TYSetGeometriqueParcours *&geoTrajet)
select the points that could be included in the path
Class to build a geometric path used by the TYCalculParcours class.