FillSerieSerie.hh
2.03 KB
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
/*
* FillSerieSerie.hh
*
* Created on: 14/08/2014
* Author: AKKA
*/
#ifndef FILLSERIESERIE_HH_
#define FILLSERIESERIE_HH_
#include <string>
#include "ParameterIndexesTool.hh"
#include "Color.hh"
namespace plot {
/**
* Class holding properties used when filling an area between a serie and a constant.
*/
class FillSerieSerie {
public:
friend std::ostream& operator<<(std::ostream&, const FillSerieSerie&);
/*
* Dumps properties for test.
*/
void dump(std::ostream& out_, std::string& prefix_);
FillSerieSerie();
FillSerieSerie(const FillSerieSerie& ref_);
FillSerieSerie& operator=(const FillSerieSerie& ref_);
virtual ~FillSerieSerie();
int getFirstSerieId() const;
void setFirstSerieId(int firstSerieId);
/*
* For the moment, not used.
* The index of the serie is using (so the serie definition must be a scalar)
*/
AMDA::Common::ParameterIndexComponent& getFirstSerieIndex();
void setFirstSerieIndex(AMDA::Common::ParameterIndexComponent& serieIndex);
int getSecondSerieId() const;
void setSecondSerieId(int secondSerieId);
/*
* For the moment, not used.
* The index of the serie is using (so the serie definition must be a scalar)
*/
AMDA::Common::ParameterIndexComponent& getSecondSerieIndex();
void setSecondSerieIndex(AMDA::Common::ParameterIndexComponent& serieIndex);
bool isColorGreaterSpecified() const;
void setColorGreaterSpecified(bool colorGreaterSpecified);
const Color& getColorGreater() const;
Color& getColorGreater();
void setColorGreater(const Color& colorGreater);
bool isColorLessSpecified() const;
void setColorLessSpecified(bool colorLessSpecified);
const Color& getColorLess() const;
Color& getColorLess();
void setColorLess(const Color& colorLess);
private:
int _firstSerieId;
AMDA::Common::ParameterIndexComponent _firstSerieIndex;
int _secondSerieId;
AMDA::Common::ParameterIndexComponent _secondSerieIndex;
bool _colorGreaterSpecified;
Color _colorGreater;
bool _colorLessSpecified;
Color _colorLess;
};
} /* namespace plot */
#endif /* FILLSERIESERIE_HH_ */