Version: 6.5.0
VTK 3D Viewer

Operations

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.

vtkviewer_toolbar.png

vtk_view_camera_dump.png

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


vtk_view_style_switch.png

Interaction style switch - allows to switch between standard and "keyboard free" interaction styles. "Keyboard free" style allows to process all view transformations without using keyboard (only by mouse) and perform selection in view by pressing "S" key. By default, rotation in this mode is performed by left mouse button, panning - by middle mouse button, zooming - by left and middle mouse buttons pressed simultaneously.


vtk_view_zooming_style_switch.png

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.


vtk_view_highlight.png

Dynamic pre-selection switch - allows to switch on/off dynamic pre-selection of objects. When the dynamic pre-selection is switched on, an objects can be selected by clicking the point/cell belonging to this object, with some performance loss. Switch dynamic pre-selection off to have a good performance on big objects (for example, huge meshes).


vtk_view_triedre.png

Show/Hide Trihedron - shows or hides coordinate axes.


vtk_view_fitall.png

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


vtk_view_fitarea.png

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


vtk_view_zoom.png

Zoom - allows to zoom in and out.


vtk_view_pan.png

Panning - if the represented objects are greater that the visible area and you don't wish to use Fit all functionality, click on this button and you'll be able to drag the scene to see its remote parts.


vtk_view_glpan.png

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


vtk_view_rotation_point.png

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

set_rotation_point_dialog1.png

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

set_rotation_point_dialog2.png

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

  • Set to Origin button restores the default rotation point coordinates.
  • Select Point from View button allows to select the rotation point in the 3D Viewer.

vtk_view_rotate.png

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


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

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


vtk_view_anticlockwise.png

Rotate counterclockwise - rotates view 90° counterclockwise.


vtk_view_clockwise.png

Rotate clockwise - rotates view 90° clockwise.


vtk_view_reset.png

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


vtk_view_update_rate.png

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

updaterate.png
  • 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

vtk_view_scaling.png

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


vtk_view_graduated_axes.png

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

graduatedaxes1.png
  • 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.

vtk_view_parameters.png

Change View Parameters - this button provides access to the dialog box allowing customization different parameters of the view.

vtk_view_parameters_dlg.png
  • Projection Mode - switchs to the Orthogonal / Perspective projection mode
  • 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 - either in absolute coordinates,
    • Relative to Focal Point - or 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 - the current zoom factor (available in the Orthogonal mode only)
  • View Angle - the current view angle (available in the Perspective mode only)

vtk_view_sync.png

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 the compatible 3d views. As soon as the user selects any view from 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 in the "checked" state, the dynamic synchronization of the views is performed, i.e. any zoom, pan, rotate or other view operation done in one view is automatically applied to the other view.


vtk_view_parallel.png

Orthogonal mode - Switches the view to the orthogonal mode.


vtk_view_perspective.png

Perspective mode - Switches the view to the perspective mode.


vtk_view_recording_start.png
vtk_view_recording_play.png
vtk_view_recording_pause.png
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.

Background

VTK Viewer background can be customized using the "Change background" popup menu command that opens the following dialog box:

change_background_dlg.png

The following types of the background are supported:

  • Single color: the background is colored with the solid color specified by the user in the dialog box.
  • Gradient background: the background is gradiently colored according to two colors and the gradient type specified in the dialog box. The following types of background are supported:

    • Horizontal
    • Vertical
    • First diagonal
    • Second diagonal
    • First corner
    • Second corner
    • Third corner
    • Fourth corner
  • Image: allows to set image as viewer background and define filling type:

    • Center: the image is located at the center of the viewer backgound
    • Tile: the image fills the entire viewer backgound one by one
    • Stretch: the image is stretched to the entire viewer backgound.

Default background for the viewer is specified via the application preferences.

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS