Code_TYMPAN  4.4.0
Industrial site acoustic simulation
OGLRectangleElement.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
16 /*
17  *
18  *
19  *
20  *
21  */
22 
23 #ifndef __OGL_RECTANGLE_ELEMENT
24 #define __OGL_RECTANGLE_ELEMENT
25 
26 #include "OGLElement.h"
27 #include "Tympan/core/color.h"
29 
30 #include <qstring.h>
31 #include <qvector3d.h>
32 
33 class OGLRectangle;
34 
39 {
40 public:
45 
49  virtual ~OGLRectangleElement();
50 
51  virtual int render();
52 
53  void setColor(const OColor& oColor);
54 
55  void setPoint0(const QVector3D& point0)
56  {
57  m_oPoint0 = point0;
58  };
59  void setPoint1(const QVector3D& point1)
60  {
61  m_oPoint1 = point1;
62  };
63  void setPoint2(const QVector3D& point2)
64  {
65  m_oPoint2 = point2;
66  };
67  void setPoint3(const QVector3D& point3)
68  {
69  m_oPoint3 = point3;
70  };
71 
72  const QVector3D& getPoint0()
73  {
74 
75  return m_oPoint0;
76  };
77  const QVector3D& getPoint1()
78  {
79  return m_oPoint1;
80  };
81  const QVector3D& getPoint2()
82  {
83  return m_oPoint2;
84  };
85  const QVector3D& getPoint3()
86  {
87  return m_oPoint3;
88  };
89 
90  void setFull(bool bFull)
91  {
92  m_bFull = bFull;
93  };
94 
95 protected:
97  QVector3D m_oPoint0;
98  QVector3D m_oPoint1;
99  QVector3D m_oPoint2;
100  QVector3D m_oPoint3;
101  bool m_bFull;
103 };
104 
105 #endif //__OGL_RECTANGLE_ELEMENT
All base classes related to 3D manipulation.
Definition: color.h:31
OGLRectangle * m_pOGLRectangleToDisplay
void setFull(bool bFull)
void setPoint2(const QVector3D &point2)
void setColor(const OColor &oColor)
void setPoint3(const QVector3D &point3)
void setPoint0(const QVector3D &point0)
void setPoint1(const QVector3D &point1)
const QVector3D & getPoint1()
const QVector3D & getPoint0()
const QVector3D & getPoint2()
const QVector3D & getPoint3()