InstantSpectroProperties.hh
1.35 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
/*
* InstantSpectroProperties.hh
*
* Created on: 18 déc. 2014
* Author: AKKA
*/
#ifndef INSTANTSPECTROPROPERTIES_HH_
#define INSTANTSPECTROPROPERTIES_HH_
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include "SpectroProperties.hh"
namespace plot {
/**
* Instant Serie properties for InstantPlot
*/
class InstantSpectroProperties: public SpectroProperties {
public:
InstantSpectroProperties() :
SpectroProperties(),
_dimOnXAxis(0) {
}
InstantSpectroProperties(const SpectroProperties& ref_) :
SpectroProperties(ref_),
_dimOnXAxis(0)
{
}
InstantSpectroProperties(const InstantSpectroProperties& pParamDrawingProperties_) :
SpectroProperties(pParamDrawingProperties_),
_dimOnXAxis(pParamDrawingProperties_._dimOnXAxis)
{
}
InstantSpectroProperties& operator=(const InstantSpectroProperties& ref_) {
SpectroProperties::operator=(ref_);
_dimOnXAxis = ref_._dimOnXAxis;
return *this;
}
virtual ~InstantSpectroProperties() {
}
int getDimOnXAxis() const {
return _dimOnXAxis;
}
void setDimOnXAxis(int dimOnXAxis) {
_dimOnXAxis = dimOnXAxis;
}
/*
* Dumps properties for test.
*/
void dump(std::ostream& out_, std::string& prefix_);
private :
/**
* dimension to draw on X Axis
*/
int _dimOnXAxis;
};
} /* namespace plot */
#endif /* INSTANTSPECTROPROPERTIES_HH_ */