Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAcousticSemiCircle.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
16 /*
17  *
18  */
19 
20 #ifndef __TY_ACOUSTICSEMICIRCLE__
21 #define __TY_ACOUSTICSEMICIRCLE__
22 
23 class OPoint3D;
24 class OSegment3D;
25 
27 #include "TYAcousticSurface.h"
28 
38 {
42 
43  // Methodes
44 public:
56  virtual ~TYAcousticSemiCircle();
57 
61  bool operator==(const TYAcousticSemiCircle& other) const;
63  bool operator!=(const TYAcousticSemiCircle& other) const;
64 
78  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
79 
80  virtual std::string toString() const;
81 
82  virtual DOM_Element toXML(DOM_Element& domElement);
83  virtual int fromXML(DOM_Element domElement);
84 
85  virtual TYTabSourcePonctuelleGeoNode getSrcs() const;
86  virtual TYSourcePonctuelle srcPonctEquiv() const;
87  virtual void distriSrcs();
88  virtual bool setSrcsLw();
89 
90  virtual double surface() const;
91  virtual OVector3D normal() const;
92  virtual OPlan plan() const;
93  virtual TYTabPoint getContour(int n = -1) const;
94  virtual TYTabPoint3D getOContour(int n = -1) const;
95  virtual int intersects(const TYSurfaceInterface* pSurf, OSegment3D& seg) const;
96  virtual int intersects(const OSegment3D& seg, OPoint3D& pt) const;
97  virtual int intersects(const OPoint3D& pt) const;
98 
105  TYPoint getCenter() const;
106 
112  double getDiameter() const;
118  void setDiameter(double diameter);
119 
124  {
125  return getBoundingRect();
126  }
127 
137  virtual void exportMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
138  const TYGeometryNode& geonode) const;
139 
140  // Membres
141 protected:
142 };
143 
149 typedef std::vector<LPTYAcousticSemiCircleGeoNode> TYTabAcousticSemiCircleGeoNode;
150 
151 #endif // __TY_ACOUSTICSEMICIRCLE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
std::vector< LPTYAcousticSemiCircleGeoNode > TYTabAcousticSemiCircleGeoNode
Collection de noeuds geometriques de type TYAcousticSemiCircle.
SmartPtr< TYAcousticSemiCircleGeoNode > LPTYAcousticSemiCircleGeoNode
Smart Pointer sur TYAcousticSemiCircleGeoNode.
TYGeometryNode TYAcousticSemiCircleGeoNode
Noeud geometrique de type TYAcousticSemiCircle.
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
Definition: TYDefines.h:340
std::deque< OPoint3D > TYTabPoint3D
Collection de OPoint3D.
Definition: TYDefines.h:403
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
Definition: TYElement.h:432
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
std::vector< LPTYSourcePonctuelleGeoNode > TYTabSourcePonctuelleGeoNode
Collection de noeuds geometriques de type TYSourcePonctuelle.
Plan defined by its equation : ax+by+cz+d=0.
Definition: plan.h:31
The 3D point class.
Definition: 3d.h:487
Class to define a segment.
Definition: 3d.h:1089
The 3D vector class.
Definition: 3d.h:298
virtual TYTabPoint3D getOContour(int n=-1) const
bool operator!=(const TYAcousticSemiCircle &other) const
Operateur !=.
virtual std::string toString() const
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
virtual void exportMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
Export the surface as a triangular mesh.
virtual double surface() const
virtual TYTabSourcePonctuelleGeoNode getSrcs() const
virtual DOM_Element toXML(DOM_Element &domElement)
virtual OPlan plan() const
void setDiameter(double diameter)
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual int fromXML(DOM_Element domElement)
TYAcousticSemiCircle & operator=(const TYAcousticSemiCircle &other)
Operateur =.
virtual TYSourcePonctuelle srcPonctEquiv() const
virtual TYTabPoint getContour(int n=-1) const
bool operator==(const TYAcousticSemiCircle &other) const
Operateur ==.
virtual OVector3D normal() const
TYRectangle * getBoundingRect()