Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYLinearMaillage.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  *
21  */
22 
23 #ifndef __TY_SEGMENT_MAILLAGE__
24 #define __TY_SEGMENT_MAILLAGE__
25 
27 #include "TYMaillage.h"
28 
39 {
43 
44  // Methodes
45 public:
52 
58  TYLinearMaillage(const TYLinearMaillage& other);
59 
65  virtual ~TYLinearMaillage();
66 
69 
71  bool operator==(const TYLinearMaillage& other) const;
72 
74  bool operator!=(const TYLinearMaillage& other) const;
75 
84  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
85 
86  virtual std::string toString() const;
87 
88  virtual DOM_Element toXML(DOM_Element& domElement);
89  virtual int fromXML(DOM_Element domElement);
90 
91  bool toXML(const std::string& sFilePath);
92  bool fromXML(const std::string& sFilePath);
93 
94  std::string toXMLString();
95  bool fromXMLString(const std::string& sXMLString);
96 
100  virtual void clearResult();
101 
108  virtual void make(LPTYSegment pSeg, double densite = TY_MAILLAGE_DEFAULT_DENSITE);
109 
116  {
117  return _pSeg;
118  }
119 
125  double getDensite()
126  {
127  return _densite;
128  }
129 
130  // Membres
131 protected:
134 
136  double _densite;
137 };
138 
141 
144 
147 
149 typedef std::vector<LPTYLinearMaillageGeoNode> TYTabLinearMaillageGeoNode;
150 
151 #endif // __TY_SEGMENT_MAILLAGE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#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
SmartPtr< TYLinearMaillageGeoNode > LPTYLinearMaillageGeoNode
Smart Pointer sur TYLinearMaillageGeoNode.
TYGeometryNode TYLinearMaillageGeoNode
Noeud geometrique de type TYLinearMaillage.
std::vector< LPTYLinearMaillageGeoNode > TYTabLinearMaillageGeoNode
Collection de noeuds geometriques de type TYLinearMaillage.
SmartPtr< TYLinearMaillage > LPTYLinearMaillage
Smart Pointer sur TYLinearMaillage.
Classe de definition d'un maillage lineaire.
bool operator!=(const TYLinearMaillage &other) const
Operateur !=.
virtual void clearResult()
LPTYSegment _pSeg
Le segment associe a ce maillage.
double getDensite()
Retourne la densite de points de calcul.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
TYLinearMaillage & operator=(const TYLinearMaillage &other)
Operateur =.
virtual void make(LPTYSegment pSeg, double densite=TY_MAILLAGE_DEFAULT_DENSITE)
Rempli la structure de points de calcul a partir d'un segment et d'une densite de points.
virtual DOM_Element toXML(DOM_Element &domElement)
bool fromXMLString(const std::string &sXMLString)
double _densite
La densite de points de calcul.
virtual ~TYLinearMaillage()
Destructeur. Destructeur de la classe TYLinearMaillage.
bool operator==(const TYLinearMaillage &other) const
Operateur ==.
LPTYSegment getSegment()
Retourne le segment associe a ce maillage.
TYLinearMaillage()
Constructeur. Constructeur de la classe TYLinearMaillage.
virtual std::string toString() const
std::string toXMLString()
virtual int fromXML(DOM_Element domElement)
Classe de definition d'un maillage.
Definition: TYMaillage.h:51