-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefVal.h
90 lines (79 loc) · 3.45 KB
/
DefVal.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//****************************************************************************
//
// DefVal
//
//****************************************************************************
#ifndef __DefVal_H__
#define __DefVal_H__
// ===========================================================================
// Libraries
// ===========================================================================
#include <cstdio>
#include <cstdlib>
#include <string>
using std::string;
// ===========================================================================
// Struct declaration
// ===========================================================================
namespace DefVal {
const unsigned int WINDOW_WIDTH = 800;
const unsigned int WINDOW_HEIGHT = 500;
const unsigned int WINDOW_BORDER_WIDTH = 10;
const unsigned int WIDGETS_MARGIN_SIZE = 5;
const unsigned int GENERATION_NUMBER_MAX = 50;
const unsigned int HOST_NUMBER_MAX = 100;
const unsigned int PARASITE_NUMBER_MAX = 20;
const unsigned int PIC_WIDTH = 800;
const unsigned int PIC_HEIGHT = 500;
const unsigned int HOST_COMBOBOX_WRAP_WIDTH = 1;
const int N_TRIANGLES_HOST = 20;
const int N_TRIANGLES_PARASITE = 20;
const int HOST_WIDTH = 20; // For max width. To be given as a PERCENTAGE of the PIC_WIDTH. Here 10%
const int HOST_HEIGHT = 95; // PERCENTAGE of PIC_HEIGHT
const int PARASITE_WIDTH = 12; // PERCENTAGE
const int PARASITE_HEIGHT = 90; // PERCENTAGE
const unsigned int NB_HOSTS = 35;
const int HOST_EVO_X = 20;
const int HOST_EVO_W_MIN = 10;
const int HOST_EVO_W_MAX = 20;
const int HOST_EVO_H_MIN = 10;
const int HOST_EVO_H_MAX = 20;
const int PARA_EVO_X = 15;
const int PARA_EVO_W_MIN = 5;
const int PARA_EVO_W_MAX = 30;
const int PARA_EVO_H_MIN = 50;
const int PARA_EVO_H_MAX = 30;
const double FECONDITY_COEFF = 715044.3;
const double PARA_REP_IN = 0.95;
const double PARA_REP_OUT = 0.15;
const unsigned int HOST_NUMBER_DEFAULT = 15;
const unsigned int PARASITE_NUMBER_DEFAULT = 10;
const unsigned int GENERATION_NUMBER_DEFAULT = 1;
const string BUTTON1_LABEL = "Hummm, I like it when you click me!";
const string APP_NAME = "Host-parasite Evolution with red queen Dynamics In silico";
const string ICON = "icon.png";
const string START_BUTTON_LABEL = "Start";
const string GENERATION_NUMBER_LABEL_TEXT = "Number of generations:";
const string HOST_LABEL_TEXT = "Host:";
const string HOST_NUMBER_LABEL_TEXT = "Number of hosts:";
const string PARASITE_NUMBER_LABEL_TEXT = "Number of parasites per host:";
const string STATISTICS_LABEL_TEXT = "Statistics:\tFitness:\tFecondity:";
const string HOST_COMBOBOX_TITLE = "Choose Host";
const string DISPLAY_IMAGE_FILE_NAME = "host_2.ppm";
const string PIC_FORMAT = ".ppm";
const string LEGEND_1_IMAGE_FILE_NAME = "legend_1.ppm";
const string LEGEND_1_LABEL = "Environment";
const string LEGEND_2_IMAGE_FILE_NAME = "legend_2.ppm";
const string LEGEND_2_LABEL = "Host";
const string LEGEND_3_IMAGE_FILE_NAME = "legend_3.ppm";
const string LEGEND_3_LABEL = "Parasite";
const string LEGEND_4_IMAGE_FILE_NAME = "legend_4.ppm";
const string LEGEND_4_LABEL = "Environment, Host";
const string LEGEND_5_IMAGE_FILE_NAME = "legend_5.ppm";
const string LEGEND_5_LABEL = "Host, Parasite";
const string LEGEND_6_IMAGE_FILE_NAME = "legend_6.ppm";
const string LEGEND_6_LABEL = "Environment, Host, Parasite";
const unsigned int LEGEND_WIDGETS_MARGIN_SIZE = 2;
const unsigned int MAX_VAL_PICTURE= 255;
}
#endif // __DefVal_H__