Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAcousticCircle.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_ACOUSTICCIRCLE__
21 #define __TY_ACOUSTICCIRCLE__
22 
23 class OSegment3D;
24 class OPoint3D;
25 
27 #include "TYAcousticSurface.h"
28 
33 {
37 
38  // Methodes
39 public:
47  TYAcousticCircle(const TYAcousticCircle& other);
51  virtual ~TYAcousticCircle();
52 
56  bool operator==(const TYAcousticCircle& other) const;
58  bool operator!=(const TYAcousticCircle& other) const;
59 
73  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
74 
75  virtual std::string toString() const;
76 
77  virtual DOM_Element toXML(DOM_Element& domElement);
78  virtual int fromXML(DOM_Element domElement);
79 
80  virtual TYTabSourcePonctuelleGeoNode getSrcs() const;
81  virtual TYSourcePonctuelle srcPonctEquiv() const;
82  virtual void distriSrcs();
83  virtual bool setSrcsLw();
84 
85  virtual double surface() const;
86  virtual OVector3D normal() const;
87  virtual OPlan plan() const;
88  virtual TYTabPoint getContour(int n = -1) const;
89  virtual TYTabPoint3D getOContour(int n = -1) const;
90  virtual int intersects(const TYSurfaceInterface* pSurf, OSegment3D& seg) const;
91  virtual int intersects(const OSegment3D& seg, OPoint3D& pt) const;
92  virtual int intersects(const OPoint3D& pt) const;
93 
99  TYPoint getCenter() const;
100 
106  double getDiameter() const;
107 
113  void setDiameter(double diameter);
114 
119  {
120  return getBoundingRect();
121  }
122 
132  virtual void exportMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
133  const TYGeometryNode& geonode) const;
134 
135  // Membres
136 protected:
137 };
138 
144 typedef std::vector<LPTYAcousticCircleGeoNode> TYTabAcousticCircleGeoNode;
145 
146 #endif // __TY_ACOUSTICCIRCLE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
TYGeometryNode TYAcousticCircleGeoNode
Noeud geometrique de type TYAcousticCircle.
std::vector< LPTYAcousticCircleGeoNode > TYTabAcousticCircleGeoNode
Collection de noeuds geometriques de type TYAcousticCircle.
SmartPtr< TYAcousticCircleGeoNode > LPTYAcousticCircleGeoNode
Smart Pointer sur TYAcousticCircleGeoNode.
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 TYSourcePonctuelle srcPonctEquiv() const
virtual OVector3D normal() const
TYRectangle * getShape()
virtual std::string toString() const
virtual ~TYAcousticCircle()
virtual OPlan plan() const
virtual void exportMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
Export the surface as a triangular mesh.
TYAcousticCircle & operator=(const TYAcousticCircle &other)
Operateur =.
virtual double surface() const
virtual TYTabSourcePonctuelleGeoNode getSrcs() const
void setDiameter(double diameter)
bool operator==(const TYAcousticCircle &other) const
Operateur ==.
TYPoint getCenter() const
virtual TYTabPoint3D getOContour(int n=-1) const
virtual void distriSrcs()
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
virtual DOM_Element toXML(DOM_Element &domElement)
virtual int fromXML(DOM_Element domElement)
bool operator!=(const TYAcousticCircle &other) const
Operateur !=.
virtual TYTabPoint getContour(int n=-1) const
double getDiameter() const
virtual bool setSrcsLw()
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
TYRectangle * getBoundingRect()