(graphics): factorize visibility slots in Ogre3D renderer
Description
Many adaptor have same slots for the visibility, it should be good to factorise them.
Proposal
- Create two slots
updateVisibility(bool)
andtoggleVisibility()
in IAdaptor. - Add the protected boolean member
isVisible
inIAdaptor
. - Create the virtual method
updateVisibility(bool)
inIAdaptor
. - Create the method
toggleVisibility()
that call the virtual methodupdateVisibility(bool)
inIAdaptor
. - Override the method
updateVisibility(bool)
in all needed adaptors.