Code_TYMPAN  4.2.0
Industrial site acoustic simulation
OGLElement.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 
24 #ifndef __OGL_ELEMENT
25 #define __OGL_ELEMENT
26 
31 {
32 public:
37 
41  virtual ~OGLElement() {};
42 
43  void setDisplayPosition(double displayPositionX, double displayPositionY) {m_DisplayPositionX = displayPositionX; m_DisplayPositionY = displayPositionY; };
44  void setVisibility(bool bVisible) {m_bVisible = bVisible;};
45  bool getVisibility() {return m_bVisible;};
46  void setIs3D(bool bIs3D) {m_bIs3D = bIs3D;};
47  bool getIs3D() {return m_bIs3D;};
48 
49  virtual int render() {return 0;};
50 
51 protected:
52  double m_DisplayPositionX;
54  bool m_bVisible;
55  bool m_bIs3D;
56 };
57 
58 #endif //__OGL_ELEMENT
void setIs3D(bool bIs3D)
Definition: OGLElement.h:46
bool m_bVisible
Definition: OGLElement.h:54
virtual ~OGLElement()
Definition: OGLElement.h:41
virtual int render()
Definition: OGLElement.h:49
bool getVisibility()
Definition: OGLElement.h:45
double m_DisplayPositionX
Definition: OGLElement.h:49
void setDisplayPosition(double displayPositionX, double displayPositionY)
Definition: OGLElement.h:43
double m_DisplayPositionY
Definition: OGLElement.h:53
bool getIs3D()
Definition: OGLElement.h:47
bool m_bIs3D
Definition: OGLElement.h:55
void setVisibility(bool bVisible)
Definition: OGLElement.h:44