1 #ifndef OPALS_ZCOLOR_SCALE_PAL_HPP_INCLUDED
2 #define OPALS_ZCOLOR_SCALE_PAL_HPP_INCLUDED
7 #include "opals/config.hpp"
27 bool isAutoScale()
const {
return type == TypeScalePal::autoScale; };
28 bool isScaleByFactor()
const {
return type == TypeScalePal::scaleByFactor; };
29 bool isScaleByRange()
const {
return type == TypeScalePal::scaleByRange; };
32 void setScaleFactor(
const float& scalefac );
33 void setScaleRange(
const std::vector<float>& range );
35 float getScaleFactor()
const {
return isScaleByFactor() ? scale.front() : 0.f; };
36 float getScaleMin()
const {
return scale.front(); };
37 float getScaleMax()
const {
return scale.back(); };
38 const std::vector<float>& getScaleRange()
const {
return scale; }
41 TypeScalePal::Type type;
42 std::vector<float> scale;
46 #endif //OPALS_ZCOLOR_SCALE_PAL_HPP_INCLUDED