Blame view

src/ParamOutputImpl/Plot/FillSerieSerie.cc 4.52 KB
fbe3c2bb   Benjamin Renard   First commit
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
 * FillSerieSerie.cc
 *
 *  Created on: 14/08/2014
 *      Author: AKKA
 */

#include "FillSerieSerie.hh"


namespace plot {

FillSerieSerie::FillSerieSerie() :
	_firstSerieId(-1),
	_firstSerieIndex(AMDA::Common::ParameterIndexComponent(-1,-1)),
	_secondSerieId(-1),
	_secondSerieIndex(AMDA::Common::ParameterIndexComponent(-1,-1)),
	_colorGreaterSpecified(false),
	_colorGreater(),
	_colorLessSpecified(false),
	_colorLess()
{
}

FillSerieSerie::FillSerieSerie(const FillSerieSerie& ref_) :
	_firstSerieId(ref_._firstSerieId),
	_firstSerieIndex(ref_._firstSerieIndex),
	_secondSerieId(ref_._secondSerieId),
	_secondSerieIndex(ref_._secondSerieIndex),
	_colorGreaterSpecified(ref_._colorGreaterSpecified),
	_colorGreater(ref_._colorGreater),
	_colorLessSpecified(ref_._colorLessSpecified),
	_colorLess(ref_._colorLess)
{
}

FillSerieSerie& FillSerieSerie::operator=(const FillSerieSerie& ref_) {
	_firstSerieId		= ref_._firstSerieId;
	_firstSerieIndex    = ref_._firstSerieIndex;
	_secondSerieId		= ref_._secondSerieId;
	_secondSerieIndex   = ref_._secondSerieIndex;
	_colorGreaterSpecified	= ref_._colorGreaterSpecified;
	_colorGreater				= ref_._colorGreater;
	_colorLessSpecified	= ref_._colorLessSpecified;
	_colorLess				= ref_._colorLess;
	return *this;
}

FillSerieSerie::~FillSerieSerie() {

}

const Color& FillSerieSerie::getColorGreater() const {
	return _colorGreater;
}
Color& FillSerieSerie::getColorGreater() {
	return _colorGreater;
}
void FillSerieSerie::setColorGreater(const Color& colorGreater) {
	_colorGreater = colorGreater;
}

const Color& FillSerieSerie::getColorLess() const {
	return _colorLess;
}
Color& FillSerieSerie::getColorLess() {
	return _colorLess;
}
void FillSerieSerie::setColorLess(const Color& colorLess) {
	_colorGreater = colorLess;
}

int FillSerieSerie::getSecondSerieId() const {
	return _secondSerieId;
}

void FillSerieSerie::setSecondSerieId(int secondSerieId) {
	_secondSerieId = secondSerieId;
}

AMDA::Common::ParameterIndexComponent& FillSerieSerie::getSecondSerieIndex()
{
	return _secondSerieIndex;
}

void FillSerieSerie::setSecondSerieIndex(AMDA::Common::ParameterIndexComponent& serieIndex)
{
	_secondSerieIndex = serieIndex;
}

int FillSerieSerie::getFirstSerieId() const {
	return _firstSerieId;
}

void FillSerieSerie::setFirstSerieId(int firstSerieId) {
	_firstSerieId = firstSerieId;
}

AMDA::Common::ParameterIndexComponent& FillSerieSerie::getFirstSerieIndex()
{
	return _firstSerieIndex;
}

void FillSerieSerie::setFirstSerieIndex(AMDA::Common::ParameterIndexComponent& serieIndex)
{
	_firstSerieIndex = serieIndex;
}

bool FillSerieSerie::isColorGreaterSpecified() const {
	return _colorGreaterSpecified;
}

void FillSerieSerie::setColorGreaterSpecified(bool colorGreaterSpecified) {
	_colorGreaterSpecified = colorGreaterSpecified;
}

bool FillSerieSerie::isColorLessSpecified() const {
	return _colorLessSpecified;
}

void FillSerieSerie::setColorLessSpecified(bool colorLessSpecified) {
	_colorLessSpecified = colorLessSpecified;
}

void FillSerieSerie::dump (std::ostream& out_, std::string& prefix_){
	out_ << prefix_ << "firstSerieId="<< _firstSerieId << std::endl;
	out_ << prefix_ << "firstSerieIndex=["<< _firstSerieIndex.getDim1Index() << "," << _firstSerieIndex.getDim2Index() << "]" << std::endl;
	out_ << prefix_ << "secondSerieId="<< _secondSerieId << std::endl;
	out_ << prefix_ << "secondSerieIndex=["<< _secondSerieIndex.getDim1Index() << "," << _secondSerieIndex.getDim2Index() << "]" << std::endl;
	out_ << prefix_ << "colorGreaterSpecified="<< _colorGreaterSpecified << std::endl;
	_colorGreater.dump(out_, prefix_);
	out_ << prefix_ << "colorLessSpecified="<< _colorLessSpecified << std::endl;
	_colorLess.dump(out_, prefix_);
}

std::ostream& operator<<(std::ostream& out_, const FillSerieSerie& prop_){
	out_ << "[FILL SERIE SERIE]" << std::endl;
	out_ << "{" << std::endl;
	out_ << "  firstSerieId = "<< prop_._firstSerieId << std::endl;
	out_ << "  firstSerieIndex = ["<< prop_._firstSerieIndex.getDim1Index() << "," << prop_._firstSerieIndex.getDim2Index() << "]" << std::endl;
	out_ << "  secondSerieId = "<< prop_._secondSerieId << std::endl;
	out_ << "  secondSerieIndex = ["<< prop_._secondSerieIndex.getDim1Index() << "," << prop_._secondSerieIndex.getDim2Index() << "]" << std::endl;
	out_ << "  colorGreaterSpecified = "<<prop_._colorGreaterSpecified << std::endl;
	out_ << "  colorGreater = "<<prop_._colorGreater << std::endl;
	out_ << "  colorLessSpecified = "<<prop_._colorLessSpecified << std::endl;
	out_ << "  colorLess = "<<prop_._colorLess << std::endl;
	out_ << "}" << std::endl;
	return out_;
}

} /* namespace plot */