iCub-main
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 
29 {
30  // should never be accessed
31 }
32 
34 {
35  // should never be accessed
36 }
37 
38 void Settings::setFog(bool on)
39 {
40  m_fog=on;
41 }
42 
44 {
45  return m_fog;
46 }
47 
49 {
50  m_floorTranslucency=value;
51 }
52 
54 {
55  return m_floorTranslucency;
56 }
57 
59 {
60  m_easeIn=on;
61 }
62 
64 {
65  return m_easeIn;
66 }
67 
69 {
70  m_easeOut=on;
71 }
72 
74 {
75  return m_easeOut;
76 }
static void setEaseIn(bool on)
Definition: settings.cpp:58
static bool easeOut()
Definition: settings.cpp:73
~Settings()
Definition: settings.cpp:33
static void setFog(bool on)
Definition: settings.cpp:38
static bool easeIn()
Definition: settings.cpp:63
static void setEaseOut(bool on)
Definition: settings.cpp:68
static void setFloorTranslucency(int value)
Definition: settings.cpp:48
Settings()
Definition: settings.cpp:28
static bool fog()
Definition: settings.cpp:43
static int floorTranslucency()
Definition: settings.cpp:53
static int m_floorTranslucency
Definition: settings.cpp:23
static bool m_easeIn
Definition: settings.cpp:25
static bool m_fog
Definition: settings.cpp:22
static bool m_easeOut
Definition: settings.cpp:26
grid on
Definition: show_eyes_axes.m:5