(viz): negato_3d does not respect initial or restore visibility setting
Description
The adaptor sight::viz::module::scene3d::negato_3d
does not respect the visible
configuration attribute, and it does not restore the visibility state properly when an image is modified.
Steps to reproduce
First issue
- Modify
tuto07_generic_scene/plugin.xml
to addvisible="false"
inside the<config>
tag of thenegatoAdp
service - Launch
tuto07_generic_scene
- Open an image
- Observe the image is displayed with the negato whereas it should not
Second issue
- Modify
tuto07_generic_scene/plugin.xml
with this patch - Launch
tuto07_generic_scene
- Open an image
- Observe the image is displayed
- Click on the snapshot button
- Observe the image is hidden
- Open an image again
- Observe the image is displayed with the negato whereas it should not
Functional specifications
- The adaptor
sight::viz::module::scene3d::negato_3d
must respect thevisible
configuration attribute. - The adaptor
sight::viz::module::scene3d::negato_3d
should keep the visibility state when the image is modified.
Technical specifications
Just fix it.
Test plan
Repeat steps to reproduce