Skip to content

enh(viz): add resetCamera_layer slot to SRender to reset specific layer camera

Description

The reset camera slot is connected, on the SRender service, to all layouts of the service. However, when several layouts are present, it can be expected to reset only a given layout's camera.

To do this, a dedicated slot is created at the service configuration. The slot name contains the layoutId, and call the resetCameraCoordinates which is specified for the layoutId provided in parameter.

Closes #1066 (closed)

How to test it?

connect a Saction to a resetCamera_LAYER_ID of a SRender service, with "LAYER_ID" is the id of the layer you expect to reset.

Check that the camera of the appropriate layer is reset, while the other ones aren't.

Edited by Michaël KUGLER

Merge request reports