4 #include "opals/config.hpp"
24 bool isAutoScale()
const {
return type == TypeScalePal::autoScale; };
25 bool isScaleByFactor()
const {
return type == TypeScalePal::scaleByFactor; };
26 bool isScaleByRange()
const {
return type == TypeScalePal::scaleByRange; };
29 void setScaleFactor(
const float& scalefac );
30 void setScaleRange(
const std::vector<float>& range );
32 float getScaleFactor()
const {
return isScaleByFactor() ?
scale.front() : 0.f; };
33 float getScaleMin()
const {
return scale.front(); };
34 float getScaleMax()
const {
return scale.back(); };
35 const std::vector<float>& getScaleRange()
const {
return scale; }
38 TypeScalePal::Type type;
39 std::vector<float>
scale;
@ scale
scanner range scale (opalsStripAdjust)
scaling of palette nodes
Definition: ZColorScalePal.hpp:16
Type
Definition: ZColorScalePal.hpp:17
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
Class describing different scaling methods for palette entries.
Definition: ZColorScalePal.hpp:9
@ scaleByFactor
single scaling factor
Definition: ZColorScalePal.hpp:19