76 bool bverifieNaturePolylignes =
79 assert(bverifieNaturePolylignes);
103 if (isInfra0 != isInfra1 || isEcran0 != isEcran1)
108 if ((!isInfra0 && isEcran0) || (!isInfra1 && isEcran1))
130 }
while (PolyligneSuivante != NULL &&
this != PolyligneSuivante);
131 bool bFermee = (
this == PolyligneSuivante);
148 assert(IndexPointSuivant >= 0);
153 return IndexPointSuivant;
247 newPtrPoints[i] = this->
pointPtr(i);
Polylines path class used by the TYSetGeometriqueParcours class.
void ajoutePoint(int indexe, TYPointParcours *p)
Add a point.
TYPointParcours ** _PtrPoints
Array of pointers to points.
int indexePremierPoint()
Return point id of first point of the polyline.
int _nNbPoint
Number of points on the polyline.
TYPolyligneParcours * _PolyligneP1
Pointer to the next polyline (from P1 point)
bool verifieNaturePolylignes()
bool allouer(int nNbPoint)
Allocate nNbPoint points to the polyline.
void desallouer()
Delete list of points of the polyline.
void ajouteSegment(TYPointParcours *p1, TYPointParcours *p2)
Add a first polyline with two points p1 and p2.
bool extendPtrPoints(int nNouvelleTaille)
Extends the attribute array _PtrPoints.
bool estSurUnParcourFermee()
Return true if the polyline belongs to a closed path.
bool polylignesVoisinesPointentSurLaMemePolyligne()
Return true if _PolyligneP0 and _PolyligneP1 exist and are the same.
int indexeDernierPoint()
Return point id of last point of the polyline.
void setPoint(int indexe, TYPointParcours *p)
Change a point.
int indexePointSuivant(int IndexPoint, TYPolyligneParcours *&PolyligneSuivante)
Return the point id of the next point given by IndexPoint id.
bool estFermee()
Return true if the polyline is closed.
TYPointParcours * pointPtr(int indexe)
Return a pointer on the point Pi.
int autrePointDuSegment(int IndexPoint)
Return P0 if IndexPoint is the point id of P1, else P1 if it is the id of P0, else -1.
bool isEcran()
Return true if P0 and P1 are Ecran.
~TYPolyligneParcours()
Destructor.
TYPolyligneParcours * polyligneSuivante(int IndexPoint)
Return the next polyline pointed by the Point id IndexPoint.
TYPolyligneParcours * _PolyligneP0
Pointer to the previous polyline (from P0 point)
bool isInfra()
Return true if P0 and P1 are Infra.
void Copy(TYPolyligneParcours &p)
Copy operator.
TYPolyligneParcours()
Default constructor.
int indexePoint(int i)
Return point id of point i of the polyline.
int _nNbPointAlloue
Number of allocated points on the polyline.
#define SAFE_DELETE_LIST(_p)
bool isInfra
Flag set to indicate if the point is an infrastructure.
bool isEcran
Flag set to indicate if the point is a screen.