fix(viz): SCamera generates error in hidden scenes with virtual cameras
Description
The SCamera adaptor requires a calibration step. This calibration can be provided through an input to the service (CameraSet, cameraCalibration). However, for virtual camera in classical 3Dscene, no calibration is provided, and the calibration is computed based on the viewport size. This set is only called at the service start, and, if the viewport is hidden, or deffined with visibility=false, its height and with are null or negativ. This leads to an error which stops the application in debug.
Steps to reproduce
Add a SCamera in a 3dscene. Define the scene as visible=false in the view declaration. Run your application in debug.
Proposal
Allow to calibrate later than on start.
Functional specifications
An application with a SCamera should not crash, even if the scene is not visible at start.
Technical specifications
Add a state boolean in SCamera which indicates if the calibration has been done. Call calibrate at each update if it has not been done before.
Test plan
Test in applications