Blame view

src/ParamOutputImpl/Plot/ColorAxis.hh 912 Bytes
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
/*
 * 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;
	}

private :
	Color _minValColor;

	Color _maxValColor;
};

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