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

Polylines path class used by the TYSetGeometriqueParcours class. More...

#include <TYPolyligneParcours.h>

Collaboration diagram for TYPolyligneParcours:
Collaboration graph
[legend]

Public Member Functions

 TYPolyligneParcours ()
 Default constructor. More...
 
 ~TYPolyligneParcours ()
 Destructor. More...
 
int indexePoint (int i)
 Return point id of point i of the polyline. More...
 
int indexePremierPoint ()
 Return point id of first point of the polyline. More...
 
int indexeDernierPoint ()
 Return point id of last point of the polyline. More...
 
int indexePoint1 ()
 Return point id of point P0. More...
 
int indexePoint2 ()
 Return point id of point P1. More...
 
int nombreDePoint ()
 Return the number of points. More...
 
void setPoint (int indexe, TYPointParcours *p)
 Change a point. More...
 
void ajoutePoint (int indexe, TYPointParcours *p)
 Add a point. More...
 
TYPointParcours point (int indexe)
 Return a copy the point Pi. More...
 
TYPointParcourspointPtr (int indexe)
 Return a pointer on the point Pi. More...
 
bool isInfra ()
 Return true if P0 and P1 are Infra. More...
 
bool isEcran ()
 Return true if P0 and P1 are Ecran. More...
 
void ajouteSegment (TYPointParcours *p1, TYPointParcours *p2)
 Add a first polyline with two points p1 and p2. More...
 
bool polylignesVoisinesPointentSurLaMemePolyligne ()
 Return true if _PolyligneP0 and _PolyligneP1 exist and are the same. More...
 
int indexePointSuivant (int IndexPoint, TYPolyligneParcours *&PolyligneSuivante)
 Return the point id of the next point given by IndexPoint id. More...
 
TYPolyligneParcourspolyligneSuivante (int IndexPoint)
 Return the next polyline pointed by the Point id IndexPoint. More...
 
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. More...
 
bool estSurUnParcourFermee ()
 Return true if the polyline belongs to a closed path. More...
 
bool estFermee ()
 Return true if the polyline is closed. More...
 
bool allouer (int nNbPoint)
 Allocate nNbPoint points to the polyline. More...
 
void desallouer ()
 Delete list of points of the polyline. More...
 
void Copy (TYPolyligneParcours &p)
 Copy operator. More...
 
int getnNbPointAlloue ()
 
bool extendPtrPoints (int nNouvelleTaille)
 Extends the attribute array _PtrPoints. More...
 

Public Attributes

TYPolyligneParcours_PolyligneP1
 Pointer to the next polyline (from P1 point) More...
 
TYPolyligneParcours_PolyligneP0
 Pointer to the previous polyline (from P0 point) More...
 

Private Member Functions

bool verifieNaturePolylignes ()
 

Private Attributes

int _nNbPoint
 Number of points on the polyline. More...
 
int _nNbPointAlloue
 Number of allocated points on the polyline. More...
 
TYPointParcours ** _PtrPoints
 Array of pointers to points. More...
 

Detailed Description

Polylines path class used by the TYSetGeometriqueParcours class.

Definition at line 32 of file TYPolyligneParcours.h.

Constructor & Destructor Documentation

◆ TYPolyligneParcours()

TYPolyligneParcours::TYPolyligneParcours ( )

Default constructor.

Definition at line 26 of file TYPolyligneParcours.cpp.

◆ ~TYPolyligneParcours()

TYPolyligneParcours::~TYPolyligneParcours ( )

Destructor.

Definition at line 35 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ ajoutePoint()

void TYPolyligneParcours::ajoutePoint ( int  indexe,
TYPointParcours p 
)

Add a point.

Definition at line 52 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ajouteSegment()

void TYPolyligneParcours::ajouteSegment ( TYPointParcours p1,
TYPointParcours p2 
)

Add a first polyline with two points p1 and p2.

Definition at line 67 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ allouer()

bool TYPolyligneParcours::allouer ( int  nNbPoint)

Allocate nNbPoint points to the polyline.

Definition at line 40 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ autrePointDuSegment()

int TYPolyligneParcours::autrePointDuSegment ( int  IndexPoint)

Return P0 if IndexPoint is the point id of P1, else P1 if it is the id of P0, else -1.

Definition at line 169 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ Copy()

void TYPolyligneParcours::Copy ( TYPolyligneParcours p)

Copy operator.

Definition at line 226 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ desallouer()

void TYPolyligneParcours::desallouer ( )

Delete list of points of the polyline.

Definition at line 47 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ estFermee()

bool TYPolyligneParcours::estFermee ( )

Return true if the polyline is closed.

Definition at line 201 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ estSurUnParcourFermee()

bool TYPolyligneParcours::estSurUnParcourFermee ( )

Return true if the polyline belongs to a closed path.

Definition at line 116 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:

◆ extendPtrPoints()

bool TYPolyligneParcours::extendPtrPoints ( int  nNouvelleTaille)

Extends the attribute array _PtrPoints.

Parameters
nNouvelleTailleNew size of the array
Returns
True if extension succeeds, false else

Definition at line 240 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getnNbPointAlloue()

int TYPolyligneParcours::getnNbPointAlloue ( )
inline

Definition at line 106 of file TYPolyligneParcours.h.

Here is the caller graph for this function:

◆ indexeDernierPoint()

int TYPolyligneParcours::indexeDernierPoint ( )

Return point id of last point of the polyline.

Definition at line 221 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ indexePoint()

int TYPolyligneParcours::indexePoint ( int  i)

Return point id of point i of the polyline.

Definition at line 210 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ indexePoint1()

int TYPolyligneParcours::indexePoint1 ( )
inline

Return point id of point P0.

Definition at line 50 of file TYPolyligneParcours.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ indexePoint2()

int TYPolyligneParcours::indexePoint2 ( )
inline

Return point id of point P1.

Definition at line 54 of file TYPolyligneParcours.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ indexePointSuivant()

int TYPolyligneParcours::indexePointSuivant ( int  IndexPoint,
TYPolyligneParcours *&  PolyligneSuivante 
)

Return the point id of the next point given by IndexPoint id.

Parameters
IndexPointThe current point id
PolyligneSuivanteThe next polyline
Returns
The next point id

Definition at line 137 of file TYPolyligneParcours.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ indexePremierPoint()

int TYPolyligneParcours::indexePremierPoint ( )

Return point id of first point of the polyline.

Definition at line 216 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ isEcran()

bool TYPolyligneParcours::isEcran ( )

Return true if P0 and P1 are Ecran.

Definition at line 88 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ isInfra()

bool TYPolyligneParcours::isInfra ( )

Return true if P0 and P1 are Infra.

Definition at line 82 of file TYPolyligneParcours.cpp.

◆ nombreDePoint()

int TYPolyligneParcours::nombreDePoint ( )
inline

Return the number of points.

Definition at line 59 of file TYPolyligneParcours.h.

Here is the caller graph for this function:

◆ point()

TYPointParcours TYPolyligneParcours::point ( int  indexe)
inline

Return a copy the point Pi.

Definition at line 65 of file TYPolyligneParcours.h.

Here is the caller graph for this function:

◆ pointPtr()

TYPointParcours* TYPolyligneParcours::pointPtr ( int  indexe)
inline

Return a pointer on the point Pi.

Definition at line 69 of file TYPolyligneParcours.h.

Here is the caller graph for this function:

◆ polyligneSuivante()

TYPolyligneParcours * TYPolyligneParcours::polyligneSuivante ( int  IndexPoint)

Return the next polyline pointed by the Point id IndexPoint.

Definition at line 187 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ polylignesVoisinesPointentSurLaMemePolyligne()

bool TYPolyligneParcours::polylignesVoisinesPointentSurLaMemePolyligne ( )

Return true if _PolyligneP0 and _PolyligneP1 exist and are the same.

Definition at line 156 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ setPoint()

void TYPolyligneParcours::setPoint ( int  indexe,
TYPointParcours p 
)

Change a point.

Definition at line 62 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

◆ verifieNaturePolylignes()

bool TYPolyligneParcours::verifieNaturePolylignes ( )
private

Definition at line 94 of file TYPolyligneParcours.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _nNbPoint

int TYPolyligneParcours::_nNbPoint
private

Number of points on the polyline.

Definition at line 34 of file TYPolyligneParcours.h.

◆ _nNbPointAlloue

int TYPolyligneParcours::_nNbPointAlloue
private

Number of allocated points on the polyline.

Definition at line 35 of file TYPolyligneParcours.h.

◆ _PolyligneP0

TYPolyligneParcours* TYPolyligneParcours::_PolyligneP0

Pointer to the previous polyline (from P0 point)

Definition at line 40 of file TYPolyligneParcours.h.

◆ _PolyligneP1

TYPolyligneParcours* TYPolyligneParcours::_PolyligneP1

Pointer to the next polyline (from P1 point)

Definition at line 39 of file TYPolyligneParcours.h.

◆ _PtrPoints

TYPointParcours** TYPolyligneParcours::_PtrPoints
private

Array of pointers to points.

Definition at line 36 of file TYPolyligneParcours.h.


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