42 #include "DoubleWidget.hh" 44 #include <ACG/Utils/LinearTwoColorCoder.hh> 45 #include <ACG/Utils/ColorConversion.hh> 48 DoubleWidget::DoubleWidget(QWidget * parent)
60 std::unique_ptr<ACG::IColorCoder> cc;
61 if (doubleColorCoder->isChecked()) {
62 cc = ptr::make_unique<ACG::ColorCoder>();
64 cc = ptr::make_unique<ACG::LinearTwoColorCoder>(
65 ACG::to_Vec4f(doubleMin->color()),
66 ACG::to_Vec4f(doubleMax->color()));
68 cc->setMapOutsideRangeToAlpha0(doubleMapOutsideRange->isChecked());
73 void DoubleWidget::showEvent ( QShowEvent* ) {