-
Notifications
You must be signed in to change notification settings - Fork 1
/
AppParams.h
68 lines (55 loc) · 1.92 KB
/
AppParams.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#define MIN_TRANSP 0
#define MAX_TRANSP 10
#define MIN_SPEED 10
#define MAX_SPEED 40
#define MIN_GLOSS 0
#define MAX_GLOSS 10
#define MIN_DISTANCE 2
#define MAX_DISTANCE 30
#define DEF_TRANSPARENCY 1
#define DEF_DETAIL_LEVEL 1 /* valid values are 0 to 4. 4 is most detail & slowest */
#define DEF_ROTATION_SPEED 25
#define DEF_LIGHT_SOURCE LIGHT_RANDOM
#define DEF_LIGHT_DISTANCE 10
#define DEF_2_SIDED_LIGHT true
#define DEF_GLOSS_LEVEL MIN_GLOSS
#define DEF_SHUFFLE NO
#define DEF_PALETTE PALETTE_RANDOM
#define DEF_INTERVAL INTERVAL_45 // how often images change, in seconds
class AppParams
{
private:
static char * getImageKey (const int index);
public:
static void resetToDefaults();
static int getDetailLevel();
static void setDetailLevel (int value);
static int getIntervalOption();
static void setIntervalOption (int v);
static void setTransparencyLevel (const int value);
static int getTransparencyLevel ();
static float getTransparency ();
static void setRotationSpeed (int value);
static float getRotationSpeed ();
static float getDetailValue();
static void setLight2Sides (bool value);
static bool getLight2Sides();
static void setLightDistance(float value);
static float getLightDistance();
static void setLightSource (int);
static int getLightSource();
static void setPalette (int index);
static int getPalette();
static bool isPaletteAlternative();
static bool getLightMoving();
static float getIntervalInSecs();
static void setGlossLevel (const int value);
static float getGlossLevel (void);
static void setGlossRandom (const bool value);
static bool getGlossRandom();
static bool getShuffle();
static void setShuffle (bool value);
static void setImageSelected (const int index, bool selected);
static bool getImageSelected (const int i);
};