MCPcopy Create free account
hub / github.com/Kitware/TeleSculptor / updateMinimum

Method updateMinimum

gui/DataColorOptions.cxx:146–167  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

144
145//-----------------------------------------------------------------------------
146void DataColorOptions::updateMinimum()
147{
148 QTE_D();
149
150 if (d->UI.autoMinimum->isChecked())
151 {
152 auto const softLimit =
153 (d->UI.autoMaximum->isChecked() ? +qInf() : d->UI.maximum->value());
154 d->UI.minimum->setValue(qMin(softLimit, d->autoLower));
155 }
156
157 auto const limit = d->UI.minimum->value();
158 if (d->UI.maximum->value() < limit)
159 {
160 d->UI.maximum->setValue(limit);
161 }
162
163 d->scalarsToGradient->SetRange(d->UI.minimum->value(),
164 d->UI.maximum->value());
165
166 emit this->modified();
167}
168
169//-----------------------------------------------------------------------------
170void DataColorOptions::updateMaximum()

Callers 1

setAvailableRangeMethod · 0.95

Calls 3

valueMethod · 0.80
setValueMethod · 0.80
SetRangeMethod · 0.80

Tested by

no test coverage detected