Blame view

src/ParamOutputImpl/Plot/DrawingProperties.hh 2.92 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
/*
 * DrawingProperties.hh
 *
 *  Created on: Dec 9, 2013
 *      Author: amdadev
 */

#ifndef DRAWINGPROPERTIES_HH_
#define DRAWINGPROPERTIES_HH_

#include <string>

#include "Color.hh"
#include "LineProperties.hh"
#include "SymbolProperties.hh"
#include "TimeTickProperties.hh"
#include "IntervalTickProperties.hh"
#include "ResamplingProperties.hh"
#include "ErrorBarProperties.hh"


namespace plot {
/**
 * base class holding properties used when drawing a paramter's dimensions.
 */
class DrawingProperties {
public:

	friend std::ostream& operator<<(std::ostream&, const DrawingProperties&);
	/*
	 * Dumps properties for test.
	 */
	void dump(std::ostream& out_, std::string& prefix_);

	DrawingProperties();
	DrawingProperties(const DrawingProperties& ref_);
	DrawingProperties& operator=(const DrawingProperties& ref_);
	virtual ~DrawingProperties();

	const Color& getColor() const;
	Color& getColor();
	void setColor(const Color& color);

	const LineProperties& getLineProperties() const;
	LineProperties& getLineProperties();
	void setLineProperties(const LineProperties& lineProperties);

	const SymbolProperties& getSymbolProperties() const;
	SymbolProperties& getSymbolProperties();
	void setSymbolProperties(const SymbolProperties& symbolProperties) ;

	const TimeTickProperties& getTimeTickProperties() const;
	TimeTickProperties& getTimeTickProperties();
	void setTimeTickProperties(const TimeTickProperties& _imeTickProperties) ;

	const IntervalTickProperties& getIntervalTickProperties() const;
	IntervalTickProperties& getIntervalTickProperties();
	void setIntervalTickProperties(const IntervalTickProperties& intervalTickProperties) ;

	const std::string& getXAxisId() const;
	void setXAxisId(const std::string& axisId);

	const std::string& getYAxisId() const;
	void setYAxisId(const std::string& axisId);
5f13f59c   Hacene SI HADJ MOHAND   in progress worki...
65
        
fbe3c2bb   Benjamin Renard   First commit
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
	const std::string& getZAxisId() const;
	void setZAxisId(const std::string& axisId);

	double getMax() const;
	void setMax(double max);

	double getMin() const;
	void setMin(double min);

	int getMaxResolution() const;
	void setMaxResolution(const int resolution);

	const ResamplingProperties& getResamplingProperties() const;
	ResamplingProperties& getResamplingProperties();
	void setResamplingProperties(const ResamplingProperties& resamplingProperties);

	const ErrorBarProperties& getErrorBarProperties() const;
	ErrorBarProperties& getErrorBarProperties();
	void setErrorBarProperties(const ErrorBarProperties& errorBarProperties);

private:
	LineProperties _lineProperties;
	SymbolProperties _symbolProperties;
	TimeTickProperties _timeTickProperties;
	IntervalTickProperties _intervalTickProperties;
	ResamplingProperties _resamplingProperties;
	ErrorBarProperties _errorBarProperties;
	std::string _xAxisId;
	std::string _yAxisId;
fbe3c2bb   Benjamin Renard   First commit
95
96
	std::string _zAxisId;
	Color _color;
5f13f59c   Hacene SI HADJ MOHAND   in progress worki...
97
98
	double _min;
	double _max;
fbe3c2bb   Benjamin Renard   First commit
99
100
101
102
103
104
105
106
107
108
109


	/**
	 * Max number of points per plot for this serie.
	 */
	int _maxResolution;
};

} /* namespace plot */

#endif /* DRAWINGPROPERTIES_HH_ */