Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
tools
OGLElement.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_ELEMENT
24
#define __OGL_ELEMENT
25
29
class
OGLElement
30
{
31
public
:
35
OGLElement
()
36
{
37
m_DisplayPositionX
=
m_DisplayPositionY
= 0;
38
m_bVisible
=
false
;
39
};
40
44
virtual
~OGLElement
(){};
45
46
void
setDisplayPosition
(
double
displayPositionX,
double
displayPositionY)
47
{
48
m_DisplayPositionX
= displayPositionX;
49
m_DisplayPositionY
= displayPositionY;
50
};
51
void
setVisibility
(
bool
bVisible)
52
{
53
m_bVisible
= bVisible;
54
};
55
bool
getVisibility
()
56
{
57
return
m_bVisible
;
58
};
59
void
setIs3D
(
bool
bIs3D)
60
{
61
m_bIs3D
= bIs3D;
62
};
63
bool
getIs3D
()
64
{
65
return
m_bIs3D
;
66
};
67
68
virtual
int
render
()
69
{
70
return
0;
71
};
72
73
protected
:
74
double
m_DisplayPositionX
;
75
double
m_DisplayPositionY
;
76
bool
m_bVisible
;
77
bool
m_bIs3D
;
78
};
79
80
#endif
//__OGL_ELEMENT
OGLElement
Definition:
OGLElement.h:30
OGLElement::m_DisplayPositionX
double m_DisplayPositionX
Definition:
OGLElement.h:71
OGLElement::getVisibility
bool getVisibility()
Definition:
OGLElement.h:55
OGLElement::m_DisplayPositionY
double m_DisplayPositionY
Definition:
OGLElement.h:75
OGLElement::setVisibility
void setVisibility(bool bVisible)
Definition:
OGLElement.h:51
OGLElement::getIs3D
bool getIs3D()
Definition:
OGLElement.h:63
OGLElement::setIs3D
void setIs3D(bool bIs3D)
Definition:
OGLElement.h:59
OGLElement::render
virtual int render()
Definition:
OGLElement.h:68
OGLElement::~OGLElement
virtual ~OGLElement()
Definition:
OGLElement.h:44
OGLElement::m_bVisible
bool m_bVisible
Definition:
OGLElement.h:76
OGLElement::setDisplayPosition
void setDisplayPosition(double displayPositionX, double displayPositionY)
Definition:
OGLElement.h:46
OGLElement::m_bIs3D
bool m_bIs3D
Definition:
OGLElement.h:77
OGLElement::OGLElement
OGLElement()
Definition:
OGLElement.h:35
Generated on Wed May 13 2026 12:41:17 for Code_TYMPAN by
1.9.1