(ui): add a slider to change the opacity of the transfer function
Description
To simplify the usage of transfer functions, it would be useful to add the possibility to change the opacity of the transfer function with a slider. It should be possible to change either the opacity of the whole transfer function or one of its piece, according to the XML configuration.
Proposal
Optional section to give some functional or technical hints
Functional specifications
- Add a new service to adjust the opacity of a transfer function or one of its piece.
- For negatoscope views, allow to switch between slice/windowing/opacity sliders
Technical specifications
- Here is the configuration of the new service:
<service uid="..." type="sight::module::ui::qt::image::STransferFunctionOpacity" autoConnect="true">
<inout key="tf" uid="..." />
<config piece="3" />
</service>
- Add it to the imageSlider XML configuration, and provide an optional parameter to set the
piece
parameter. - Add radio button to switch between the three sliders.
Test plan
Describe how you will verify that the implementation fulfils the specifications