genre | View3D |
author | Florian Link |
package | MeVisLab/Standard |
dll | SoViewers |
definition | SoViewers.def |
see also | SoCustomExaminerViewer, SoRenderArea |
keywords | rendering, scene, movie, recording, navigation, zoom, 3D |
The module SoExaminerViewer renders an Open Inventor scene and allows for interaction with and navigation of the scene.
It also offers facilities to generate movies.
This viewer uses a virtual trackball to rotate the scene. The point of rotation is by default the center of the scene bounding box, but can be placed anywhere in the scene. The viewer also allows you to translate in the screen plane, as well as dolly in and out (forward/backward movement).
On the right side, the viewer features the following buttons if decoration is turned on.
Viewer Button | Function |
---|---|
Selects object manipulation mode (and deselects viewer mode). The cursor shape will change to an arrow. In this mode, the user is manipulating objects in the scene. | |
Selects viewer mode (and deselects object manipulation mode). The cursor shape will change to a hand icon. In this mode, the user is moving a virtual camera in 3D space. | |
Returns the virtual camera to its home position (initial position if not reset). | |
Resets the home position to the current camera position. | |
Brings the entire scene into view. This functions is also available in the Action menu. | |
Allows the user to select a new center of rotation for the virtual camera. When clicked on (and in viewer mode) the cursor changes to a crosshair. The next left mouse-button press causes whatever is underneath the cursor to be selected as the new center of rotation. Once the button is released, the camera animates to its new position. | |
Selects the type of virtual camera used by the viewer. It toggles between the two available camera types -- perspective and orthographic. |
The following functions can be controlled by the mouse itself.
Mouse/Keyboard | Function |
---|---|
Left | Rotate virtual trackball. |
Middle / CTRL+Left | Translate up, down, left, right. |
CTRL+Middle / Left+Middle | Dolly in and out. |
'S' then click onto an object | Sets a new rotation center (Seek function). |
Right | Pop-up menu if activated. |
Defines the type of transparency used in the rendering.
Values:
Title | Name |
---|---|
Screen Door | SCREEN_DOOR |
Add | ADD |
Delayed Add | DELAYED_ADD |
Sorted Object Add | SORTED_OBJECT_ADD |
Blend | BLEND |
Delayed Blend | DELAYED_BLEND |
Sorted Object Blend | SORTED_OBJECT_BLEND |
Enables the usage of sample buffers for multi sample anti-aliasing (MSAA)
Sets the number of sample buffers to use. 0 means the maximum supported number of sample buffers is used.
If checked, the viewer grabs the key focus whenever the mouse cursor is moved over the viewer.
Otherwise, the use has to click onto the viewer to focus it.
Defines the format for snapshots.
Values:
Title | Name |
---|---|
RGB | SNAPSHOT_RGB |
Grey | SNAPSHOT_GREY |
If pressed, the recording of a movie is started.
If pressed, a recording in process is stopped.
If pressed, a recording in process is stopped and all saved images are being removed.
If pressed, the currently rendered image is saved to disc as a part of a movie.
If pressed, the recording of a movie is paused if running, or resumed if paused.
If pressed, a movie of the frames you have recorded after pressing the Start button is created.
Sets the name of the output movie file.
If no filename is given, the movies are automatically created in the screenshot gallery.
If checked, the scene is getting redrawn anew when recording even if the scene is not being changed.
Sets the refresh frame rate of the viewer.
Sets the frame rate for the target movie.
Sets the file name for the output snapshot file.
If checked, the filenames bear the frame count in their names.
If pressed, the output ML image to current viewer image is being updated.
If checked, the output ML image is being updated on each viewer change.
If pressed, a snapshot of the current rendering is saved.
However, better press F11 in a viewer to create a snapshot that is automatically saved to the screenshot gallery.
If checked, a newly created snapshot is opened with the system's default image viewer.
Sets a counter offset for consecutive snapshot file names.
If checked, the scene is illuminated with a default headlight.
If checked, the viewer's border are decorated with tool buttons.
If checked, the viewer is in navigation mode (rotating, panning). Otherwise, the viewer is in picking mode.
If checked, the viewer clips the scene automatically at the default (frontal) clipping plane.
Defines the drawing style for still images.
Values:
Title | Name |
---|---|
As Is | VIEW_AS_IS |
Hidden Line | VIEW_HIDDEN_LINE |
No Texture | VIEW_NO_TEXTURE |
Low Complexity | VIEW_LOW_COMPLEXITY |
Line | VIEW_LINE |
Point | VIEW_POINT |
Bbox | VIEW_BBOX |
Low Res Line | VIEW_LOW_RES_LINE |
Low Res Point | VIEW_LOW_RES_POINT |
Wireframe Overlay | VIEW_WIREFRAME_OVERLAY |
Same As Still | VIEW_SAME_AS_STILL |
Defines the drawing style for rendering while navigating.
Values:
Title | Name |
---|---|
As Is | VIEW_AS_IS |
Hidden Line | VIEW_HIDDEN_LINE |
No Texture | VIEW_NO_TEXTURE |
Low Complexity | VIEW_LOW_COMPLEXITY |
Line | VIEW_LINE |
Point | VIEW_POINT |
Bbox | VIEW_BBOX |
Low Res Line | VIEW_LOW_RES_LINE |
Low Res Point | VIEW_LOW_RES_POINT |
Wireframe Overlay | VIEW_WIREFRAME_OVERLAY |
Same As Still | VIEW_SAME_AS_STILL |
If pressed, the viewer centers on the bounding box of the attached scene.
If pressed, the current viewing direction and the focal point are being saved.
If pressed, a previously saved home viewing direction and focal point are being restored.
Defines how the camera should view the scene initially (on opening the viewer or on pressing View All).
Values:
Title | Name |
---|---|
Keep As Is | CAMERA_KEEP_AS_IS |
Axial | CAMERA_AXIAL |
Sagittal | CAMERA_SAGITTAL |
Coronal | CAMERA_CORONAL |
Head Profile | CAMERA_HEAD_PROFILE |
User Setting | CAMERA_USER_SETTING |
Defines how the camera should view the scene on setting a value here.
Values:
Title | Name |
---|---|
Keep As Is | CAMERA_KEEP_AS_IS |
Axial | CAMERA_AXIAL |
Sagittal | CAMERA_SAGITTAL |
Coronal | CAMERA_CORONAL |
Head Profile | CAMERA_HEAD_PROFILE |
User Setting | CAMERA_USER_SETTING |
Defines the type of the internal camera.
This is overwritten when using an external camera.
Values:
Title | Name |
---|---|
Perspective | CAMERA_PERSPECTIVE |
Orthographic | CAMERA_ORTHOGRAPHIC |
If checked, the viewing direction defined in Apply is set as soon as the value in User Orientation is changed.
Sets a user camera orientation.
If pressed, the current camera viewing direction is stored in User Orientation.
If checked, the viewer automatically shows the whole scene (computed on base of the bounding box) on opening the viewer or changing the attached scene.
If checked, the viewer stores the current state every tick of settings like using a headlight, the draw style, showing decoration.
If checked, the viewer saves if a perspective or an orthographic camera is used.
If checked, the mouse cursor over the viewer reflect the interaction/navigation state.
If checked, stereo viewing is enabled. Note that stereo viewing needs to be supported by your graphic card.
Sets an offset value for stereo viewing. This value describes how far the two alternating cameras are apart.
Deprecated, rather use field Mouse Interaction below.
Values:
Title | Name |
---|---|
Scene | TO_SCENE |
Viewer | TO_VIEWER |
Scene And Viewer | TO_SCENE_AND_VIEWER |
Scene Or Viewer | TO_SCENE_OR_VIEWER |
Deprecated, rather use field Mouse Interaction below.
Values:
Title | Name |
---|---|
Scene | TO_SCENE |
Viewer | TO_VIEWER |
Scene And Viewer | TO_SCENE_AND_VIEWER |
Scene Or Viewer | TO_SCENE_OR_VIEWER |
Deprecated, rather use field Mouse Interaction below.
Values:
Title | Name |
---|---|
Scene | TO_SCENE |
Viewer | TO_VIEWER |
Scene And Viewer | TO_SCENE_AND_VIEWER |
Scene Or Viewer | TO_SCENE_OR_VIEWER |
Defines whether the viewer or the scene (or both) should react on keyboard events.
Values:
Title | Name |
---|---|
Scene | TO_SCENE |
Viewer | TO_VIEWER |
Scene And Viewer | TO_SCENE_AND_VIEWER |
Scene Or Viewer | TO_SCENE_OR_VIEWER |
If checked, the scene will keep on turning if it is interactively turned and the mouse button is released in motion.
Sets a sequence of mouse interactions as a string.
Syntax: '(*);function1:combo1,combo2,...;function2:...'
A * at the beginning clears the default mouse functions.
Available functions: pick, spin, pan, dolly, seek
Combos are represented by characters '123sca'
(left, middle, right, shift, control, alt resp.)
Big letters 'SCA' mean 'don't care about this modifier'
Example: '* spin:1 pan:1s,1c,2 dolly:12,2c,1sc'
If pressed, a rotating animation is started.
If pressed, a rotating animation in progress is stopped.
Sets a rotation axis for a rotation animation.
Sets a rotation angle for a rotation animation.
Sets the number of steps for a rotation animation.