1 #include "ScriptSettingsDouble.hh" 2 #include "ACG/Utils/ColorConversion.hh" 4 ScriptSettingsDouble::ScriptSettingsDouble()
11 ScriptSettingsDouble::ScriptSettingsDouble(
17 ScriptSettingsDouble::ScriptSettingsDouble(
20 widget_(other.widget_)
23 ScriptSettingsDouble::~ScriptSettingsDouble()
26 double ScriptSettingsDouble::rangeMin()
const 28 return widget_->doubleFixedRangeMin->value();
31 double ScriptSettingsDouble::rangeMax()
const 33 return widget_->doubleFixedRangeMax->value();
36 const Vector4 ScriptSettingsDouble::colorMin()
const 38 return ACG::to_Vec4d( widget_->doubleMin->color());
41 const Vector4 ScriptSettingsDouble::colorMax()
const 43 return ACG::to_Vec4d( widget_->doubleMax->color());
46 void ScriptSettingsDouble::setColorMin(
const Vector4 &color)
48 widget_->doubleMin->setColor(ACG::to_QColor(color));
51 void ScriptSettingsDouble::setColorMax(
const Vector4 &color)
53 widget_->doubleMax->setColor(ACG::to_QColor(color));
56 bool ScriptSettingsDouble::useFixedRange()
const 58 return widget_->doubleFixedRange->isChecked();
61 bool ScriptSettingsDouble::mapOutsideRange()
const 63 return widget_->doubleMapOutsideRange->isChecked();
66 bool ScriptSettingsDouble::absolute()
const 68 return widget_->doubleAbsolute->isChecked();
71 void ScriptSettingsDouble::setUseColorCoder(
bool useColorCoder)
73 return widget_->doubleColorCoder->setChecked(useColorCoder);
76 void ScriptSettingsDouble::setUseFixedRange(
bool useFixedRange)
78 return widget_->doubleFixedRange->setChecked(useFixedRange);
81 void ScriptSettingsDouble::setRangeMin(
double val)
83 return widget_->doubleFixedRangeMin->setValue(val);
86 void ScriptSettingsDouble::setRangeMax(
double val)
88 return widget_->doubleFixedRangeMax->setValue(val);
91 void ScriptSettingsDouble::setMapOutsideRange(
bool mapOutsideRange)
93 return widget_->doubleMapOutsideRange->setChecked(mapOutsideRange);
96 void ScriptSettingsDouble::setAbsolute(
bool absolute)
98 return widget_->doubleAbsolute->setChecked(absolute);
101 bool ScriptSettingsDouble::useColorCoder()
const 103 return widget_->doubleColorCoder->isChecked();