| 256 | } |
| 257 | |
| 258 | void RenderOptionsWidget::ApplyImageColormap() { |
| 259 | std::unique_ptr<ImageColormapBase> image_color_map; |
| 260 | |
| 261 | switch (image_colormap_cb_->currentIndex()) { |
| 262 | case 0: { |
| 263 | auto uniform = std::make_unique<ImageColormapUniform>(); |
| 264 | uniform->uniform_plane_color = image_plane_color_; |
| 265 | uniform->uniform_frame_color = image_frame_color_; |
| 266 | image_color_map = std::move(uniform); |
| 267 | break; |
| 268 | } |
| 269 | case 1: |
| 270 | image_color_map = std::make_unique<ImageColormapNameFilter>( |
| 271 | image_colormap_name_filter_); |
| 272 | break; |
| 273 | default: |
| 274 | image_color_map = std::make_unique<ImageColormapUniform>(); |
| 275 | break; |
| 276 | } |
| 277 | |
| 278 | model_viewer_widget_->SetImageColormap(std::move(image_color_map)); |
| 279 | } |
| 280 | |
| 281 | void RenderOptionsWidget::ApplyBackgroundColor() { |
| 282 | model_viewer_widget_->SetBackgroundColor( |
nothing calls this directly
no test coverage detected