| 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 | { |
nothing calls this directly
no test coverage detected