Blame view

src/ParamOutputImpl/Plot/ColorAxis.hh 1.29 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
/*
 * ColorAxis.hh
 *
 *  Created on: 30 jun. 2014
 *      Author: AKKA
 */

#ifndef COLORAXIS_HH_
#define COLORAXIS_HH_

#include "DigitalAxis.hh"
#include "ColormapManager.hh"

namespace plot {

class ColorAxis: public plot::DigitalAxis {

public:

	ColorAxis() :
			DigitalAxis() {//Axis(true /* isZAxis */) {
		_isZAxis       = true;
		_position 	   = PlotCommon::Position::POS_RIGHT;
		_color._colorMapIndex = ColormapManager::getInstance()._defaultColorAxis;
	}

	virtual Format getFormat();

	virtual std::string getPlotOpt();

	void setMinValColor(Color minValColor)
	{
		_minValColor = minValColor;
	}

	void setMaxValColor(Color maxValColor)
	{
		_maxValColor = maxValColor;
	}

	Color getMinValColor(void)
	{
		return _minValColor;
	}

	Color getMaxValColor(void)
	{
		return _maxValColor;
	}

ee9a5027   Erdogan Furkan   Kernel part to ge...
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
	// Getter function to retrieve the colorsList
	const std::vector<std::array<int, 3>>& getColorsList() const {
		return _colorsList;
	}

	// Setter function to set the colorsList
	void setColorsList(const std::vector<std::array<int, 3>>& newList) {
		_colorsList = newList;
	}

	/**
	 * @brief Write axis context
	 */
	void writeContext(ContextFileWriter& writer);

fbe3c2bb   Benjamin Renard   First commit
66
67
68
69
private :
	Color _minValColor;

	Color _maxValColor;
ee9a5027   Erdogan Furkan   Kernel part to ge...
70
71

	std::vector<std::array<int, 3>> _colorsList;
fbe3c2bb   Benjamin Renard   First commit
72
73
74
75
};

} /* namespace plot */
#endif /* COLORAXIS_HH_ */