| 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 | { |
no test coverage detected