Code_TYMPAN  4.2.0
Industrial site acoustic simulation
TYPointCalcul.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_POINTCALCUL__
21 #define __TY_POINTCALCUL__
22 
23 
27 
33 class TYPointCalcul: public TYPoint
34 {
37 
38  // Methodes
39 public:
45  TYPointCalcul();
46 
52  TYPointCalcul(const TYPoint& other);
53 
59  TYPointCalcul(const TYPointCalcul& other);
60 
66  virtual ~TYPointCalcul();
67 
70 
72  TYPointCalcul& operator=(const TYPoint& other);
73 
75  bool operator==(const TYPointCalcul& other) const;
76 
78  bool operator!=(const TYPointCalcul& other) const;
79 
80  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
81 
83  //void copySpectres(TYPointCalcul* pOther);
84 
85 
86 
87  virtual std::string toString() const;
88 
89  virtual DOM_Element toXML(DOM_Element& domElement);
90 
91  virtual int fromXML(DOM_Element domElement);
92 
97  void setSpectre(const LPTYSpectre spectre) { _spectre = spectre; }
98 
103  virtual LPTYSpectre getSpectre() { return _spectre; };
104 
105  virtual bool etat() { return _etat; }
106  virtual bool etat(const TYUUID& id_calc) { return _etat; }
107  virtual bool etat(const TYCalcul* pCalc) { return _etat; }
108  virtual void setEtat(const bool& etat) { _etat = etat; };
109 
116  double getValA() { return _spectre->valGlobDBA(); }
117 
123  const double getValA() const { return _spectre->valGlobDBA(); }
124 
130  double getValLin() { return _spectre->valGlobDBLin(); }
131 
137  const double getValLin() const { return _spectre->valGlobDBLin(); }
138 
144 
153  {
156  };
157 
158  // Membres
159 protected:
161 
162 private:
163  bool _etat;
164 };
165 
166 
172 typedef std::vector<LPTYPointCalculGeoNode> TYTabPointCalculGeoNode;
173 
174 
175 #endif // __TY_POINTCALCUL__
virtual DOM_Element toXML(DOM_Element &domElement)
virtual std::string toString() const
Copie du map calcul-spectre.
QDomElement DOM_Element
Definition: QT2DOM.h:31
TYPointCalcul & operator=(TYPointCalcul &other)
Operateur =.
SmartPtr< TYPointCalculGeoNode > LPTYPointCalculGeoNode
Smart Pointer sur TYPointCalculGeoNode.
virtual ~TYPointCalcul()
Destructeur Destructeur de la classe TYPointCalcul.
bool operator==(const TYPointCalcul &other) const
Operateur ==.
const double getValA() const
Get de la valeur globale A au point.
double getValLin()
Get de la valeur globale Lin au point.
virtual bool etat(const TYUUID &id_calc)
virtual LPTYSpectre getSpectre()
Get du spectre resultat d&#39;un calcul donne.
std::vector< LPTYPointCalculGeoNode > TYTabPointCalculGeoNode
Collection de noeuds geometriques de type TYPointCalcul.
bool operator!=(const TYPointCalcul &other) const
Operateur !=.
Programme de calcul.
Definition: TYCalcul.h:49
TYPoint getCoordSIG()
Passage en coordonnees SIG.
void setSpectre(const LPTYSpectre spectre)
Set du spectre resultat d&#39;un calcul donne.
Definition: TYPointCalcul.h:97
#define OPROTODECL(classname)
Definition: TYElement.h:67
virtual void setEtat(const bool &etat)
virtual bool etat()
LPTYSpectre _spectre
virtual double valGlobDBA() const
Compute the global value dB[A] of a one-third Octave spectrum.
Definition: spectre.cpp:232
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:375
virtual int fromXML(DOM_Element domElement)
TYPointCalcul()
Constructeur par defaut Constructeur par defaut de la classe TYPointCalcul.
virtual double valGlobDBLin() const
Compute the global value dB[Lin] of a one-third Octave spectrum.
Definition: spectre.cpp:220
class OGenID TYUUID
Definition: TYDefines.h:63
Classe de definition d&#39;un point de calcul.C&#39;est une classe derivee a TYPoint avec en plus un spectrep...
Definition: TYPointCalcul.h:33
PointCalculState
Les differents etats possible pour un point de calcul.
double getValA()
Get de la valeur globale A au point.
virtual bool etat(const TYCalcul *pCalc)
TYGeometryNode TYPointCalculGeoNode
Noeud geometrique de type TYPointCalcul.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
const double getValLin() const
Get de la valeur globale Lin au point.