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

Method updateIntensityScale

src/openms_gui/source/VISUAL/Plot3DOpenGLCanvas.cpp:1081–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079 }
1080
1081 void Plot3DOpenGLCanvas::updateIntensityScale()
1082 {
1083 int_scale_.min_[0] = canvas_3d_.overall_data_range_.getMaxIntensity();
1084 int_scale_.max_[0] = canvas_3d_.overall_data_range_.getMinIntensity();
1085
1086 const auto area = canvas_3d_.visible_area_.getAreaUnit();
1087 for (Size i = 0; i < canvas_3d_.getLayerCount(); i++)
1088 {
1089 const auto& layer = dynamic_cast<const LayerDataPeak&>(canvas_3d_.getLayer(i));
1090 auto rt_begin_it = layer.getPeakData()->RTBegin(area.getMinRT());
1091 auto rt_end_it = layer.getPeakData()->RTEnd(area.getMaxRT());
1092
1093 for (auto spec_it = rt_begin_it; spec_it != rt_end_it; ++spec_it)
1094 {
1095 auto mz_end = spec_it->MZEnd(area.getMaxMZ());
1096 for (auto it = spec_it->MZBegin(area.getMinMZ()); it != mz_end; ++it)
1097 {
1098 Math::extendRange(int_scale_.min_[0], int_scale_.max_[0], (double)it->getIntensity());
1099 }
1100 }
1101 }
1102 }
1103
1104 void Plot3DOpenGLCanvas::recalculateDotGradient_(LayerDataBase& layer)
1105 {

Callers 1

update_Method · 0.80

Calls 15

extendRangeFunction · 0.85
getMinIntensityMethod · 0.80
getLayerCountMethod · 0.80
getLayerMethod · 0.80
getPeakDataMethod · 0.80
getMinRTMethod · 0.80
getMaxRTMethod · 0.80
getMaxMZMethod · 0.80
getMinMZMethod · 0.80
getMaxIntensityMethod · 0.45
RTBeginMethod · 0.45
RTEndMethod · 0.45

Tested by

no test coverage detected