MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / remove

Method remove

src/openms_gui/source/VISUAL/MultiGradient.cpp:247–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 }
246
247 bool MultiGradient::remove(double position)
248 {
249 if (position < 0 + std::numeric_limits<double>::epsilon() || position > 100 - std::numeric_limits<double>::epsilon())
250 {
251 return false;
252 }
253
254 map<double, QColor>::iterator it = pos_col_.find(position);
255 if (it != pos_col_.end())
256 {
257 pos_col_.erase(it);
258 return true;
259 }
260 return false;
261 }
262
263 // static
264 MultiGradient MultiGradient::getDefaultGradientLinearIntensityMode()

Callers 15

foreachFunction · 0.45
hideColumnsMethod · 0.45
getOutputDirMethod · 0.45
mouseMoveEventMethod · 0.45
keyPressEventMethod · 0.45
hideColumnsMethod · 0.45
foreachFunction · 0.45
writeParam_Method · 0.45
preferencesDialogMethod · 0.45
foreachFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 1

calculateSpectrum_Method · 0.36