1 .. _vtk_3d_viewer_page:
10 The functionalities of VTK viewer are available via its Viewer
11 Toolbar. Buttons marked with small downward triangles have extended
12 functionality, which can be accessed by locking on them with left mouse
15 .. image:: ../images/vtkviewer_toolbar.png
22 .. image:: ../../../../src/VTKViewer/resources/vtk_view_camera_dump.png
25 **Dump View** - exports an object snap-shot from the viewer in bmp, png or jpeg image format.
30 .. image:: ../../../../src/SVTK/resources/vtk_view_style_switch.png
33 **Interaction style switch** - allows to switch between "Salome
34 standard controls" and "Keyboard free" :ref:`viewer_navigation_modes`.
40 .. image:: ../../../../src/SVTK/resources/vtk_view_zooming_style_switch.png
43 **Zooming style switch** - allows to switch between standard
44 (zooming at the center of the view) and advanced (zooming at the
45 current cursor position) zooming styles. The second mode is available
46 only for parallel (non-perspective) view's mode.
51 .. image:: ../../../../src/SVTK/resources/vtk_view_highlight.png
54 These buttons allow switching between three pre-selection (highlighting) modes:
56 - **Static pre-selection mode** - pre-selection is done in terms of bounding boxes;
57 - **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);
58 - **Disable pre-selection** - pre-selection is disabled.
64 .. image:: ../../../../src/SVTK/resources/vtk_view_selection.png
67 **Enable/Disable selection** - enables or disables selection in the view.
72 .. image:: ../../../../src/VTKViewer/resources/vtk_view_triedre.png
75 **Show/Hide Trihedron** - shows or hides coordinate axes.
80 .. image:: ../../../../src/VTKViewer/resources/vtk_view_fitall.png
83 **Fit all** - scales the presentation so that it could fit within
84 the Viewer boundaries.
89 .. image:: ../../../../src/VTKViewer/resources/vtk_view_fitarea.png
92 **Fit area** - resizes the view to place in the visible area only
93 the contents of a frame drawn with pressed left mouse button.
98 .. image:: ../../../../src/VTKViewer/resources/vtk_view_fitselection.png
101 **Fit selection** - fits view contents to the current selection.
106 .. image:: ../../../../src/VTKViewer/resources/vtk_view_zoom.png
109 **Zoom** - allows to zoom in and out.
114 .. image:: ../../../../src/VTKViewer/resources/vtk_view_pan.png
117 **Panning** - if the represented objects are greater that the
118 visible area and you do not wish to use **Fit all** functionality,
119 click on this button to drag the scene to see its remote parts.
124 .. image:: ../../../../src/VTKViewer/resources/vtk_view_glpan.png
127 **Global panning** - allows to select a point to be the center of
128 the presentation showing all displayed objects in the visible area.
133 .. image:: ../../../../src/SVTK/resources/vtk_view_rotation_point.png
136 **Change rotation point** - allows to to choose the point around
137 which the rotation is performed.
139 .. image:: ../images/set_rotation_point_dialog1.png
142 By default the rotation point is located in the Center of the bounding
145 .. image:: ../images/set_rotation_point_dialog3.png
148 Unchecking **Use Bounding Box Center** check-box allows you to
149 define the coordinates of the rotation point manually.
151 - **Set to Origin** button restores the default rotation point coordinates.
153 - **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.
159 .. image:: ../../../../src/VTKViewer/resources/vtk_view_rotate.png
162 **Rotation** - allows to rotate the selected object using the
168 .. image:: ../../../../src/VTKViewer/resources/vtk_view_front.png
171 .. image:: ../../../../src/VTKViewer/resources/vtk_view_back.png
174 .. image:: ../../../../src/VTKViewer/resources/vtk_view_top.png
177 .. image:: ../../../../src/VTKViewer/resources/vtk_view_bottom.png
180 .. image:: ../../../../src/VTKViewer/resources/vtk_view_left.png
183 .. image:: ../../../../src/VTKViewer/resources/vtk_view_right.png
186 These buttons orientate the scene strictly about coordinate axes:
187 **Front**, **Back**, **Top**, **Bottom**, **Left** or **Right** side.
192 .. image:: ../../../../src/VTKViewer/resources/vtk_view_anticlockwise.png
195 **Rotate counter-clockwise** - rotates view 90 @htmlonly ° @endhtmlonly counter-clockwise.
200 .. image:: ../../../../src/VTKViewer/resources/vtk_view_clockwise.png
203 **Rotate clockwise** - rotates view 90 @htmlonly ° @endhtmlonly clockwise.
208 .. image:: ../../../../src/VTKViewer/resources/vtk_view_reset.png
211 **Reset** - restores the default position (isometric) of objects in
217 .. image:: ../../../../src/SVTK/resources/vtk_view_update_rate.png
220 **Update Rate** - allows to define the Update Rate for the
221 presentations displayed in the viewer.
223 .. image:: ../images/updaterate.png
226 - **Desired Update Rate, FPS** - allows to set the target Update Rate
228 - **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
230 - **Current Update Rate, FPS** - shows the Update Rate currently available on your configuration
232 - **Number of Cells** - shows the number of cells currently in display
238 .. image:: ../../../../src/SVTK/resources/vtk_view_scaling.png
241 **Scaling** - represents objects deformed (stretched or stuffed) along the axes of coordinates.
246 .. image:: ../../../../src/SVTK/resources/vtk_view_graduated_axes.png
249 **Graduated axes** - allows to define parameters of axes and graduate them.
251 .. image:: ../images/graduatedaxes1.png
254 - **Axis name** - if checked the axis name is displayed in the viewer.
256 - **Name** - allows to redefine the name of the axis.
258 - **Font** - allows to define color and properties of the font of axis name.
260 - **Labels** - if checked the labels are displayed in the viewer.
262 - **Number** - allows to define the number of labels.
264 - **Offset** - allows to define the distance between labels.
266 - **Font** - allows to define color and properties of the font of labels names.
268 - **Tick marks** - if checked the tick marks are displayed in the viewer.
270 - **Length** - allows to define the length of tick marks.
272 - **Is visible** - if checked the axis is displayed in the viewer.
278 .. image:: ../../../../src/SVTK/resources/vtk_view_parameters.png
281 **Change View Parameters** - this button gives access to the
282 dialog for customization of various view parameters.
284 .. image:: ../images/vtk_view_parameters_dlg.png
287 - **Projection Mode** - switches between the **Orthogonal** and **Perspective** projection modes.
289 - **Focal Point** - allows to specify the focal point of the view
291 - **Set to Bounding Box Center** - chooses the center of the bounding box of the current scene as the focal point;
292 - **Set to Origin** - chooses the global coordinates system origin as the focal point;
293 - **Select Point from View** - allows to specify the focal point by the direct selection of a point in the view window;
294 - **X**, **Y**, **Z** - allows to input the coordinates of the focal point directly.
296 - **Camera Position** - allows to specify the position of the view camera:
298 - **Absolute Coordinates** - in absolute coordinates;
299 - **Relative to Focal Point** - as a offset to the focal point;
300 - **Projection Direction** - allows specify the direction of the projection vector;
301 - **Focal Distance** - the focal distance value.
303 - **View Up Direction** - direction of the "view up" vector.
307 - **Scale** - the current zoom factor (available in the **Orthogonal mode** only);
308 - **View Angle** - the current view angle (available in the **Perspective mode** only).
314 .. image:: ../images/vtk_view_sync.png
317 **Synchronize view** - allows to synchronize 3d view
318 parameters. This button has two states - checked and
319 unchecked. Clicking on this button opens a drop-down menu listing
320 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
323 In addition, when this button is "checked", the
324 views are synchronized dynamically, i.e. any zoom, pan, rotate
325 or other view operation done in one view is automatically applied to the other view.
330 .. image:: ../../../../src/SVTK/resources/vtk_view_parallel.png
333 **Orthogonal mode** - Switches the view to the orthogonal mode.
338 .. image:: ../../../../src/SVTK/resources/vtk_view_perspective.png
341 **Perspective mode** - Switches the view to the perspective mode.
346 .. image:: ../../../../src/SVTK/resources/vtk_view_recording_start.png
349 .. image:: ../../../../src/SVTK/resources/vtk_view_recording_play.png
352 .. image:: ../../../../src/SVTK/resources/vtk_view_recording_pause.png
355 .. image:: ../../../../src/SVTK/resources/vtk_view_recording_stop.png
358 These buttons allow recording viewing operations as a video file in
359 the AVI format using external software (jpeg2yuv):
361 - **Start recording** - specify parameters and start recording;
363 - **Pause recording** - suspend recording;
365 - **Continue recording** - resume recording;
367 - **Stop recording** - stop recording.