Newer
Older
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
#include <string>
#include <vector>
#include <Component.h>
using namespace std;
#ifndef _Profile
#define _Profile
enum argvOpt { PROJECTION, TRIANGLE };
class Profile
{
private:
string fileName_;
string title_;
vector <string> argvComps_; // this are the strings passed by argv to set the components of each projection
vector <argvOpt> argvType_; // this are the projections type determined by the option parameters -p ou -m
vector <Component *> components_;// components read from in file (generated by rcd or other software)
vector <string> argvColors_;
int nComps_; // number of uniq components including x
int nSteps_; // number of steps
int gridSize_; // grid size
int legendPos_;
bool decoration_;
bool grid_;
bool verbose_;
bool debug_;
int index_;
float border_;
float lineWidth_;
vector <string> frame_;
int extractComponents(void);
void extractColors(string);
int readFile(void);
public:
Profile(int argc, char **argv);
// Acessors
string fileName(void);
string title(void);
vector <Component *> components(void);
Component * component(int i);
string argvComp(int);
argvOpt argvType(int);
int nProjs(void);
int nComps(void);
int nSteps(void);
int gridSize(void);
int legendPos(void);
string legend(void);
bool decoration(void);
bool grid(void);
bool verbose(void);
bool debug(void);
int index(void);
float border(void);
float lineWidth(void);
// Mutators
void decoration(bool);
void grid(bool);
void index(int);
void border(float);
void lineWidth(float);
void toggleLegend(void);
void toggleDecoration(void);
void toggleGrid(void);
void toggleVerbose(void);
void printUsage(int);
string frame(int);
};
#endif