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