enh(viz): add resetCamera_layer slot to SRender to reset specific layer camera
Description
The SRender service has a slot to reset a given layer, based on the layer id in the parameter.
However, this can not be called directly from a config as it is not possible to specify a parameter value in a slot call in a config.
Functional specifications
It should be possible to reset the Camera of a given layer, through a button call.
Technical specifications
In the SRender service configuring method:
- call newSlot with each layerId parsed.
- give the new slot the name resetCamera_$LAYER_ID
- link it to a lambda which calls the resetCameraCoordinates($LAYER_ID)
Test plan
run the sightviewer test
Additional test can be done by connecting a IAction in a config to a Srender service resetCamera_layerID slot.