VTK 3D Viewer


The functionalities of VTK viewer are available via its Viewer Toolbar. Buttons marked with small downward triangles have extended functionality, which can be accessed by locking on them with left mouse button.


Dump View - exports an object snap-shot from the viewer in bmp, png or jpeg image format.


Interaction style switch - allows to switch between “Salome standard controls” and “Keyboard free” Navigation modes.


Zooming style switch - allows to switch between standard (zooming at the center of the view) and advanced (zooming at the current cursor position) zooming styles. The second mode is available only for parallel (non-perspective) view’s mode.

_images/vtk_view_highlight_std.png _images/vtk_view_highlight_dyn.png _images/vtk_view_highlight_off.png

These buttons allow switching between three pre-selection (highlighting) modes:

  • Static pre-selection mode - pre-selection is done in terms of bounding boxes;

  • Dynamic pre-selection mode - pre-selection is done in terms of cells, i.e. an object can be selected by clicking the point/cell belonging to this object. This mode causes some performance loss. It is advisable to switch dynamic pre-selection off to have a good performance on big objects (for example, huge meshes);

  • Disable pre-selection - pre-selection is disabled.


Enable/Disable selection - enables or disables selection in the view.


Show/Hide Trihedron - shows or hides coordinate axes.


Fit all - scales the presentation so that it could fit within the Viewer boundaries.


Fit area - resizes the view to place in the visible area only the contents of a frame drawn with pressed left mouse button.


Fit selection - fits view contents to the current selection.


Zoom - allows to zoom in and out.


Panning - if the represented objects are greater that the visible area and you do not wish to use Fit all functionality, click on this button to drag the scene to see its remote parts.


Global panning - allows to select a point to be the center of the presentation showing all displayed objects in the visible area.


Change rotation point - allows to to choose the point around which the rotation is performed.


By default the rotation point is located in the Center of the bounding box of an object.


Unchecking Use Bounding Box Center check-box allows you to define the coordinates of the rotation point manually.

  • Set to Origin button restores the default rotation point coordinates.

  • Gravity Center of Selected Object button allows using the gravity center of the object selected in the viewer as the center of the rotation point. When you click this button, you should first choose the type of selectable object: Point, Edge, Face or Solid and only then proceed with selection in the viewer.


Rotation - allows to rotate the selected object using the mouse.

_images/vtk_view_front.png _images/vtk_view_back.png _images/vtk_view_top.png _images/vtk_view_bottom.png _images/vtk_view_left.png _images/vtk_view_right.png

These buttons orientate the scene strictly about coordinate axes: Front, Back, Top, Bottom, Left or Right side.


Rotate counter-clockwise - rotates view 90 @htmlonly ° @endhtmlonly counter-clockwise.


Rotate clockwise - rotates view 90 @htmlonly ° @endhtmlonly clockwise.


Reset - restores the default position (isometric) of objects in the scene.


Update Rate - allows to define the Update Rate for the presentations displayed in the viewer.

  • Desired Update Rate, FPS - allows to set the target Update Rate

  • Still Update Rate, FPS - allows to set the Update Rate for the periods when both the user and the application do not perform any actions in the viewer

  • Current Update Rate, FPS - shows the Update Rate currently available on your configuration

  • Number of Cells - shows the number of cells currently in display


Scaling - represents objects deformed (stretched or stuffed) along the axes of coordinates.


Graduated axes - allows to define parameters of axes and graduate them.

  • Axis name - if checked the axis name is displayed in the viewer.

    • Name - allows to redefine the name of the axis.

    • Font - allows to define color and properties of the font of axis name.

  • Labels - if checked the labels are displayed in the viewer.

    • Number - allows to define the number of labels.

    • Offset - allows to define the distance between labels.

    • Font - allows to define color and properties of the font of labels names.

  • Tick marks - if checked the tick marks are displayed in the viewer.

    • Length - allows to define the length of tick marks.

  • Is visible - if checked the axis is displayed in the viewer.


Change View Parameters - this button gives access to the dialog for customization of various view parameters.

  • Projection Mode - switches between the Orthogonal and Perspective projection modes.

  • Focal Point - allows to specify the focal point of the view

    • Set to Bounding Box Center - chooses the center of the bounding box of the current scene as the focal point;

    • Set to Origin - chooses the global coordinates system origin as the focal point;

    • Select Point from View - allows to specify the focal point by the direct selection of a point in the view window;

    • X, Y, Z - allows to input the coordinates of the focal point directly.

  • Camera Position - allows to specify the position of the view camera:

    • Absolute Coordinates - in absolute coordinates;

    • Relative to Focal Point - as a offset to the focal point;

    • Projection Direction - allows specify the direction of the projection vector;

    • Focal Distance - the focal distance value.

  • View Up Direction - direction of the “view up” vector.

  • Zooming

    • Scale - the current zoom factor (available in the Orthogonal mode only);

    • View Angle - the current view angle (available in the Perspective mode only).


Synchronize view - allows to synchronize 3d view parameters. This button has two states - checked and unchecked. Clicking on this button opens a drop-down menu listing compatible 3d views. When a view is selected in the list , the parameters (view point, position, zoom coefficient, etc.) of the current view are synchronized with the selected view (static synchronization).

In addition, when this button is “checked”, the views are synchronized dynamically, i.e. any zoom, pan, rotate or other view operation done in one view is automatically applied to the other view.


Orthogonal mode - Switches the view to the orthogonal mode.


Perspective mode - Switches the view to the perspective mode.

_images/vtk_view_recording_start.png _images/vtk_view_recording_play.png _images/vtk_view_recording_pause.png _images/vtk_view_recording_stop.png

These buttons allow recording viewing operations as a video file in the AVI format using external software (jpeg2yuv):

  • Start recording - specify parameters and start recording;

  • Pause recording - suspend recording;

  • Continue recording - resume recording;

  • Stop recording - stop recording.