Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRepere.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_REPERE__
21 #define __TY_REPERE__
22 
25 #include "TYPoint.h"
26 
30 class TYRepere : public TYElement, public ORepere3D
31 {
34 
35  // Methodes
36 public:
40  TYRepere();
44  TYRepere(const TYRepere& other);
53  TYRepere(const OPoint3D& origin, const OVector3D& vecX, const OVector3D& vecY, const OVector3D& vecZ);
54 
60  TYRepere(const ORepere3D& repere);
61 
65  virtual ~TYRepere();
66 
68  TYRepere& operator=(const TYRepere& other);
70  bool operator==(const TYRepere& other) const;
72  bool operator!=(const TYRepere& other) const;
73 
82  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
83 
84  virtual std::string toString() const;
85 
86  virtual DOM_Element toXML(DOM_Element& domElement);
87  virtual int fromXML(DOM_Element domElement);
88 
89  // Membres
90 protected:
91 private:
92  bool isRepereValid();
93 };
94 
95 #endif // __TY_REPERE__
All base classes related to 3D manipulation.
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
The 3D point class.
Definition: 3d.h:487
3D frame with a point and 3 vectors.
Definition: 3d.h:1211
The 3D vector class.
Definition: 3d.h:298
virtual DOM_Element toXML(DOM_Element &domElement)
Definition: TYRepere.cpp:102
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
Definition: TYRepere.cpp:85
virtual int fromXML(DOM_Element domElement)
Definition: TYRepere.cpp:133
TYRepere()
Definition: TYRepere.cpp:30
virtual ~TYRepere()
Definition: TYRepere.cpp:52
virtual std::string toString() const
Definition: TYRepere.cpp:97
bool isRepereValid()
Definition: TYRepere.cpp:185
bool operator!=(const TYRepere &other) const
Operateur !=.
Definition: TYRepere.cpp:80
bool operator==(const TYRepere &other) const
Operateur ==.
Definition: TYRepere.cpp:64
TYRepere & operator=(const TYRepere &other)
Operateur =.
Definition: TYRepere.cpp:54