Cameras

Salome provides a simple way to store and retrieve a specific point of view corresponding to the scene really seen by user. This behaviour will be kept without any change for the project.

 

This command is activated by right clicking with the mouse on the 3D view. Then a popup menu is opened, and user can select the ‘Save view parameters’.

 

The selection of this command creates a new child node in the Study and is shown in the Study browser under the main entry ‘Post-Pro’ – i.e. nodes are located at the same levels as MED files.

 

From these nodes, 4 options are accessible through another contextual popup menu, as described in the following figure:

 

 

Fig. 37 : Popup menu from a ‘Camera’ item of the tree

 

Command

Purpose

Restore view parameters

Apply the current settings of the view parameter to the current 3D view.

Save view parameters

Save current parameters of the 3D view to the current entry of the tree (position, view point and focal distance).

Rename

Allows user to redefine the name of the element. A dialog is opened to realize the input.

Delete

Remove the element from the study browser.

 

Persistence of ‘View parameters’ is ensured as a standard Salome behavior and consists in storing/retrieving the corresponding SALOMEDS Study attribute.

 

Movement of the camera between 2 positions

In certain situation, the movement of camera is slow and smooth to allow user to understand the displacement. Situation concerned are:

 

 

The path between 2 positions will be interpolated by a number of steps computed by the system according to an angular step defined in the preferences.

 

The interpolated movement takes care about initial and final positions and orientations of the view point and the focal point.

 

 

Fig. 38 : Transformation between 2 cameras

 

Changing the view point to a predefined state

The user can also change the view point by any of the pre-defined icons of the 3D view (top, down, front, back, left, right, axo):