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

Method intensityModeChange_

src/openms_gui/source/VISUAL/Plot2DCanvas.cpp:140–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140 void Plot2DCanvas::intensityModeChange_()
141 {
142 String gradient_str;
143 if (intensity_mode_ == IM_LOG)
144 {
145 gradient_str = MultiGradient::getDefaultGradientLogarithmicIntensityMode().toString();
146 }
147 else // linear
148 {
149 gradient_str = linear_gradient_.toString();
150 }
151 if (layers_.empty())
152 {
153 return;
154 }
155 layers_.getCurrentLayer().param.setValue("dot:gradient", gradient_str);
156 for (Size i = 0; i < layers_.getLayerCount(); ++i)
157 {
158 recalculateDotGradient_(i);
159 }
160
161 PlotCanvas::intensityModeChange_();
162 }
163
164 void Plot2DCanvas::recalculateDotGradient_(Size layer)
165 {

Callers

nothing calls this directly

Calls 5

getCurrentLayerMethod · 0.80
getLayerCountMethod · 0.80
toStringMethod · 0.45
emptyMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected