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

Method updateMaximum

gui/DataColorOptions.cxx:170–191  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

168
169//-----------------------------------------------------------------------------
170void DataColorOptions::updateMaximum()
171{
172 QTE_D();
173
174 if (d->UI.autoMaximum->isChecked())
175 {
176 auto const softLimit =
177 (d->UI.autoMinimum->isChecked() ? -qInf() : d->UI.minimum->value());
178 d->UI.maximum->setValue(qMax(softLimit, d->autoUpper));
179 }
180
181 auto const limit = d->UI.maximum->value();
182 if (d->UI.minimum->value() > limit)
183 {
184 d->UI.minimum->setValue(limit);
185 }
186
187 d->scalarsToGradient->SetRange(d->UI.minimum->value(),
188 d->UI.maximum->value());
189
190 emit this->modified();
191}

Callers 1

setAvailableRangeMethod · 0.95

Calls 3

valueMethod · 0.80
setValueMethod · 0.80
SetRangeMethod · 0.80

Tested by

no test coverage detected