ColorAxis.hh 912 Bytes
/*
 * 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_ */