iCub-main
Loading...
Searching...
No Matches
icub-main
src
tools
iCubGui
src
settings.cpp
Go to the documentation of this file.
1
/*
2
* settings.cpp
3
*/
4
5
/*
6
* Copyright (C) 2009 RobotCub Consortium
7
* Author: Alessandro Scalzo alessandro.scalzo@iit.it
8
* CopyPolicy: Released under the terms of the GNU GPL v2.0.
9
*
10
* Based on:
11
*
12
* Qavimator
13
* Copyright (C) 2006 by Zi Ree *
14
* Zi Ree @ SecondLife *
15
* Released under the terms of the GNU GPL v2.0.
16
*/
17
18
#include <iostream>
19
20
#include "
settings.h
"
21
22
static
bool
m_fog
=
true
;
23
static
int
m_floorTranslucency
=25;
24
25
static
bool
m_easeIn
=
false
;
26
static
bool
m_easeOut
=
false
;
27
28
Settings::Settings
()
29
{
30
// should never be accessed
31
}
32
33
Settings::~Settings
()
34
{
35
// should never be accessed
36
}
37
38
void
Settings::setFog
(
bool
on
)
39
{
40
m_fog
=
on
;
41
}
42
43
bool
Settings::fog
()
44
{
45
return
m_fog
;
46
}
47
48
void
Settings::setFloorTranslucency
(
int
value)
49
{
50
m_floorTranslucency
=value;
51
}
52
53
int
Settings::floorTranslucency
()
54
{
55
return
m_floorTranslucency
;
56
}
57
58
void
Settings::setEaseIn
(
bool
on
)
59
{
60
m_easeIn
=
on
;
61
}
62
63
bool
Settings::easeIn
()
64
{
65
return
m_easeIn
;
66
}
67
68
void
Settings::setEaseOut
(
bool
on
)
69
{
70
m_easeOut
=
on
;
71
}
72
73
bool
Settings::easeOut
()
74
{
75
return
m_easeOut
;
76
}
Settings::setEaseIn
static void setEaseIn(bool on)
Definition
settings.cpp:58
Settings::easeOut
static bool easeOut()
Definition
settings.cpp:73
Settings::~Settings
~Settings()
Definition
settings.cpp:33
Settings::setFog
static void setFog(bool on)
Definition
settings.cpp:38
Settings::easeIn
static bool easeIn()
Definition
settings.cpp:63
Settings::setEaseOut
static void setEaseOut(bool on)
Definition
settings.cpp:68
Settings::setFloorTranslucency
static void setFloorTranslucency(int value)
Definition
settings.cpp:48
Settings::Settings
Settings()
Definition
settings.cpp:28
Settings::fog
static bool fog()
Definition
settings.cpp:43
Settings::floorTranslucency
static int floorTranslucency()
Definition
settings.cpp:53
m_floorTranslucency
static int m_floorTranslucency
Definition
settings.cpp:23
m_easeIn
static bool m_easeIn
Definition
settings.cpp:25
m_fog
static bool m_fog
Definition
settings.cpp:22
m_easeOut
static bool m_easeOut
Definition
settings.cpp:26
settings.h
on
grid on
Definition
show_eyes_axes.m:5
Generated on Wed Dec 18 2024 16:34:48 for iCub-main by
1.9.8