|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Polylines path class used by the TYSetGeometriqueParcours class. More...
#include <TYPolyligneParcours.h>

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... | |
| TYPointParcours * | pointPtr (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... | |
| TYPolyligneParcours * | polyligneSuivante (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... | |
Polylines path class used by the TYSetGeometriqueParcours class.
Definition at line 32 of file TYPolyligneParcours.h.
| TYPolyligneParcours::TYPolyligneParcours | ( | ) |
Default constructor.
Definition at line 26 of file TYPolyligneParcours.cpp.
| TYPolyligneParcours::~TYPolyligneParcours | ( | ) |
Destructor.
Definition at line 35 of file TYPolyligneParcours.cpp.

| void TYPolyligneParcours::ajoutePoint | ( | int | indexe, |
| TYPointParcours * | p | ||
| ) |
Add a point.
Definition at line 52 of file TYPolyligneParcours.cpp.


| 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.


| bool TYPolyligneParcours::allouer | ( | int | nNbPoint | ) |
Allocate nNbPoint points to the polyline.
Definition at line 40 of file TYPolyligneParcours.cpp.

| 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.

| void TYPolyligneParcours::Copy | ( | TYPolyligneParcours & | p | ) |
Copy operator.
Definition at line 226 of file TYPolyligneParcours.cpp.


| void TYPolyligneParcours::desallouer | ( | ) |
Delete list of points of the polyline.
Definition at line 47 of file TYPolyligneParcours.cpp.

| bool TYPolyligneParcours::estFermee | ( | ) |
Return true if the polyline is closed.
Definition at line 201 of file TYPolyligneParcours.cpp.


| bool TYPolyligneParcours::estSurUnParcourFermee | ( | ) |
Return true if the polyline belongs to a closed path.
Definition at line 116 of file TYPolyligneParcours.cpp.

| bool TYPolyligneParcours::extendPtrPoints | ( | int | nNouvelleTaille | ) |
Extends the attribute array _PtrPoints.
| nNouvelleTaille | New size of the array |
Definition at line 240 of file TYPolyligneParcours.cpp.


|
inline |
| int TYPolyligneParcours::indexeDernierPoint | ( | ) |
Return point id of last point of the polyline.
Definition at line 221 of file TYPolyligneParcours.cpp.

| int TYPolyligneParcours::indexePoint | ( | int | i | ) |
Return point id of point i of the polyline.
Definition at line 210 of file TYPolyligneParcours.cpp.

|
inline |
Return point id of point P0.
Definition at line 50 of file TYPolyligneParcours.h.


|
inline |
Return point id of point P1.
Definition at line 54 of file TYPolyligneParcours.h.


| int TYPolyligneParcours::indexePointSuivant | ( | int | IndexPoint, |
| TYPolyligneParcours *& | PolyligneSuivante | ||
| ) |
Return the point id of the next point given by IndexPoint id.
| IndexPoint | The current point id |
| PolyligneSuivante | The next polyline |
Definition at line 137 of file TYPolyligneParcours.cpp.


| int TYPolyligneParcours::indexePremierPoint | ( | ) |
Return point id of first point of the polyline.
Definition at line 216 of file TYPolyligneParcours.cpp.

| bool TYPolyligneParcours::isEcran | ( | ) |
Return true if P0 and P1 are Ecran.
Definition at line 88 of file TYPolyligneParcours.cpp.

| bool TYPolyligneParcours::isInfra | ( | ) |
Return true if P0 and P1 are Infra.
Definition at line 82 of file TYPolyligneParcours.cpp.
|
inline |
Return the number of points.
Definition at line 59 of file TYPolyligneParcours.h.

|
inline |
Return a copy the point Pi.
Definition at line 65 of file TYPolyligneParcours.h.

|
inline |
Return a pointer on the point Pi.
Definition at line 69 of file TYPolyligneParcours.h.

| TYPolyligneParcours * TYPolyligneParcours::polyligneSuivante | ( | int | IndexPoint | ) |
Return the next polyline pointed by the Point id IndexPoint.
Definition at line 187 of file TYPolyligneParcours.cpp.

| bool TYPolyligneParcours::polylignesVoisinesPointentSurLaMemePolyligne | ( | ) |
Return true if _PolyligneP0 and _PolyligneP1 exist and are the same.
Definition at line 156 of file TYPolyligneParcours.cpp.

| void TYPolyligneParcours::setPoint | ( | int | indexe, |
| TYPointParcours * | p | ||
| ) |
Change a point.
Definition at line 62 of file TYPolyligneParcours.cpp.

|
private |
|
private |
Number of points on the polyline.
Definition at line 34 of file TYPolyligneParcours.h.
|
private |
Number of allocated points on the polyline.
Definition at line 35 of file TYPolyligneParcours.h.
| TYPolyligneParcours* TYPolyligneParcours::_PolyligneP0 |
Pointer to the previous polyline (from P0 point)
Definition at line 40 of file TYPolyligneParcours.h.
| TYPolyligneParcours* TYPolyligneParcours::_PolyligneP1 |
Pointer to the next polyline (from P1 point)
Definition at line 39 of file TYPolyligneParcours.h.
|
private |
Array of pointers to points.
Definition at line 36 of file TYPolyligneParcours.h.