23 #ifndef TYSET_GEOMETRIQUE_PARCOURS_H 24 #define TYSET_GEOMETRIQUE_PARCOURS_H 32 #define MAX_POINTS 32767 38 #define INDENTIFIANT_SOURCE MAX_POINTS 39 #define INDENTIFIANT_RECEPTEUR (MAX_POINTS-1) 60 int _nNbPolylineAllouee;
77 _nNbPolylineAllouee = nNbPolylineAllouee;
81 bool PolylignesInfraFermees();
83 int MergePointsDoubles();
87 int SupressionPolylignesRedondantes();
105 void RamenerPointsTraversantLaFrontiere(
TYPointParcours& Srce,
TYPointParcours& Dest,
int* IndexePointsFrontiere,
int& NbPointsFrontiere,
bool* EstUnPointIntersectant,
bool bCoteGauche,
bool* PointsAGauche,
bool* PointsADroite);
110 bool ListerPointsConnexes(
Connexite *& Connexes);
139 int AjouteLesPointsComprisEntre(
TYSetGeometriqueParcours& geoPolySource,
int nIndexePoly,
int nIndexeNbPremierPointAAjouter,
int nIndexeDernierPointAAjouter);
170 static int EnveloppeConvexeLes2PremiersPointsEtant(
TYPointParcours** TableauDePoints,
int nNbPoints,
TYPointParcours** TableauDePointsECOut,
bool bPremiersPointsLesPlusHauts);
180 void CreerTrajetAPartirDuneListeDePointsTriee(
TYPointParcours** TableauDePoints,
int nNbPoints,
bool bSens,
bool bGardeIdentifiant);
187 void SwapPolyligne(
int i,
int j);
203 _ListePolylines = NULL;
207 _nNbPolylineAllouee = 0;
214 static void InverseOrdreDesPoints(
TYPointParcours** ListeDePointsAInverser,
int nNbPointsDeLaListe);
218 #endif// TYSET_GEOMETRIQUE_PARCOURS_H Polylines path class used by the TYSetGeometriqueParcours class.
Connectivity between points and segments.
void AllouerPolylignes(int nNbPolylineAllouee)
Allocation of the polylines list.
void Init()
Initialize data.
int IndexesSegment[2]
Two indexes of the segment.
~TYSetGeometriqueParcours()
Destructor.
Class to build a geometric path used by the TYCalculParcours class.
void Clean()
Delete polylines list and points list.
#define SAFE_DELETE_LIST(_p)
int NbSegmentsConnexes
Related segments number.