50 #ifndef INTEGER_WIDGET_HH
51 #define INTEGER_WIDGET_HH
53 #include "ui_IntegerWidget.hh"
55 #include "ACG/Utils/IColorCoder.hh"
56 #include "ACG/Utils/ColorCoder.hh"
57 #include "ACG/Utils/LinearTwoColorCoder.hh"
58 #include <ACG/Utils/ColorConversion.hh>
59 #include <ACG/Utils/SmartPointer.hh>
61 #if QT_VERSION >= 0x050000
85 if (intColorCoder->isChecked()) {
86 return ptr::make_unique<ACG::ColorCoder>();
88 return ptr::make_unique<ACG::LinearTwoColorCoder>(
89 ACG::to_Vec4f(intMin->color()),
90 ACG::to_Vec4f(intMax->color()));
99 void showEvent ( QShowEvent* ) {
104 #endif // INTEGER_WIDGET_HH
std::unique_ptr< ACG::IColorCoder > buildColorCoder()
Builds a color coder according to UI settings.