|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <TYSurfaceInterface.h>

Public Member Functions | |
Construction et Destruction | |
| TYSurfaceInterface () | |
| virtual | ~TYSurfaceInterface () |
Interface Surface | |
| virtual double | surface () const =0 |
| virtual OVector3D | normal () const =0 |
| OVector3D | normalInRefCoordSystem (const TYGeometryNode &refCoordSystem) const |
| Compute the normal to the surface in a given reference coordinate system. More... | |
| virtual OPlan | plan () const =0 |
| virtual TYTabPoint | getContour (int n=-1) const =0 |
| virtual TYTabPoint3D | getOContour (int n=-1) const =0 |
| virtual int | intersects (const OPoint3D &pt) const =0 |
| virtual int | intersects (const OSegment3D &seg, OPoint3D &pt) const =0 |
| virtual int | intersects (const TYSurfaceInterface *pSurf, OSegment3D &seg) const |
| virtual int | intersectsPlan (const OPlan &plan, OSegment3D &seg) const |
| virtual void | inverseNormale () |
| virtual void | exportMesh (std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const |
| Exports the surface as a triangular mesh in global reference coordinate system. More... | |
| virtual double | getVerticalExtensionInRefCoordSystem (const TYGeometryNode &refCoordSystem) const |
| Compute the vertical extension of the surface in a given reference coordinate system. The vertical extension is the height of the bounding box of the surface in the reference coordinate system. More... | |
| virtual double | getHorizontalExtensionInRefCoordSystem (const TYGeometryNode &refCoordSystem) const |
| Compute the horizontal extension of the surface in a given reference coordinate system. For a non-horizontal surface: the horizontal extension is the width of the surface in the horizontal tangential direction of the surface. For a horizontal surface: undefined. More... | |
Classe abstraite qui offre une interface utilisable par des composants ayant des proprietes geometriques surfaciques.
Definition at line 36 of file TYSurfaceInterface.h.
|
inline |
Constructeur par defaut.
Definition at line 48 of file TYSurfaceInterface.h.
|
inlinevirtual |
Destructeur.
Definition at line 52 of file TYSurfaceInterface.h.
|
virtual |
Exports the surface as a triangular mesh in global reference coordinate system.
NB : This function expect empty deques and will clear the deque passed.
This method is semantically PURE virtual and should actually be, but the OPROTO system does not permit that. This is a dirty workaround.
| points | output argument filled with the vertices of the triangulation |
| triangles | output argument filled with the faces of the triangulation |
| geonode | node associé |
Reimplemented in TYRectangle, TYPolygon, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
Definition at line 135 of file TYSurfaceInterface.cpp.
|
pure virtual |
Retourne un tableau de points correspondant au contour de cette surface.
| n | Le nombre de portion pour le decoupage. Si n=-1, n sera calcule a partir de la precision de distance definie par defaut. Pour certaine surface, le nombre de portion demande ne sera pas forcement le nombre de points obtenus. |
Implemented in TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
|
inlinevirtual |
Compute the horizontal extension of the surface in a given reference coordinate system. For a non-horizontal surface: the horizontal extension is the width of the surface in the horizontal tangential direction of the surface. For a horizontal surface: undefined.
| refCoordSystem | a geometry node representing the reference coordinate system |
Reimplemented in TYRectangle, TYPolygon, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
Definition at line 196 of file TYSurfaceInterface.h.
|
pure virtual |
Implemented in TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.

|
inlinevirtual |
Compute the vertical extension of the surface in a given reference coordinate system. The vertical extension is the height of the bounding box of the surface in the reference coordinate system.
| refCoordSystem | a geometry node representing the reference coordinate system |
Reimplemented in TYRectangle, TYPolygon, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
Definition at line 182 of file TYSurfaceInterface.h.
|
pure virtual |
Test si le point se trouve a l'interieur de la surface, sur le meme plan.
| pt | Le point pour lequel on effectue le test. |
Implemented in TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticPolygon, and TYAcousticCircle.

|
pure virtual |
Calcule le point d'intersection avec un segment.
| seg | Le segment dont on cherche l'intersection. |
| pt | Le point resultant de l'intersection. |
Implemented in TYMurElement, TYMur, TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
|
virtual |
Calcule le segment d'intersection avec une autre surface.
| pSurf | La surface dont on cherche l'intersection. |
| seg | Le segment resultant de l'intersection. |
Reimplemented in TYMurElement, TYMur, TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.
Definition at line 23 of file TYSurfaceInterface.cpp.

|
virtual |
Calcule le segment d'intersection entre cette surface et un plan.
| plan | La surface dont on cherche l'intersection. |
| seg | Le segment resultant de l'intersection. |
Definition at line 94 of file TYSurfaceInterface.cpp.

|
inlinevirtual |
Inverse la normale a la surface
Reimplemented in TYRectangle, TYPolygon, TYAcousticRectangle, and TYAcousticPolygon.
Definition at line 154 of file TYSurfaceInterface.h.

|
pure virtual |
Calcule la normale a cette surface.
Implemented in TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.

|
inline |
Compute the normal to the surface in a given reference coordinate system.
| refCoordSystem | a geometry node representing the reference coordinate system |
Definition at line 77 of file TYSurfaceInterface.h.


|
pure virtual |
Calcule le plan dans lequel cette surface est inscrit.
Implemented in TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.

|
pure virtual |
Calcule l'aire de la surface totale.
Implemented in TYMurElement, TYMur, TYRectangle, TYPolygon, TYAcousticSurfaceNode, TYAcousticSurface, TYAcousticSemiCircle, TYAcousticRectangle, TYAcousticPolygon, and TYAcousticCircle.