RigsofRods
Soft-body Physics Simulation
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
i
k
l
m
n
p
r
s
t
u
v
w
Typedefs
a
c
d
e
f
g
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
d
g
h
l
m
n
o
p
r
s
t
v
Enumerator
a
b
c
d
f
g
h
l
m
n
o
r
s
t
v
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
k
o
Macros
_
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
x
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
source
main
gui
panels
GUI_SimPerfStats.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2019 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
#include <string>
25
26
namespace
RoR
{
27
namespace
GUI {
28
29
class
SimPerfStats
30
{
31
public
:
32
void
SetVisible
(
bool
vis) {
m_is_visible
= vis; }
33
bool
IsVisible
()
const
{
return
m_is_visible
; }
34
35
void
Draw
();
36
37
private
:
38
bool
m_is_visible
=
false
;
39
std::string
Convert
(
const
float
f);
// converts const float to std::string with precision
40
};
41
42
}
// namespace GUI
43
}
// namespace RoR
RoR::GUI::SimPerfStats::Draw
void Draw()
Definition:
GUI_SimPerfStats.cpp:36
RoR::GUI::SimPerfStats::m_is_visible
bool m_is_visible
Definition:
GUI_SimPerfStats.h:38
RoR::GUI::SimPerfStats::IsVisible
bool IsVisible() const
Definition:
GUI_SimPerfStats.h:33
RoR::GUI::SimPerfStats::Convert
std::string Convert(const float f)
Definition:
GUI_SimPerfStats.cpp:86
RoR::GUI::SimPerfStats::SetVisible
void SetVisible(bool vis)
Definition:
GUI_SimPerfStats.h:32
RoR
Definition:
AppContext.h:36
RoR::GUI::SimPerfStats
Definition:
GUI_SimPerfStats.h:29
Generated by
1.8.17