genre | View3D |
author | Felix Ritter |
package | MeVisLab/Standard |
dll | SoCustomViewer |
definition | SoCustomViewer.def |
see also | SoExaminerViewer, SoSpacemouseAccess, SoPowerMateAccess, SoAppleRemoteAccess |
keywords | customizable, rendering, scene, movie, recording, navigation, zoom, 3D |
The module SoCustomExaminerViewer provides additional camera control buttons for axial, sagittal, and coronal views and allows to customize the display of all viewer buttons.
Furthermore, it adds camera control to the picking mode by taking advantage of an six degrees of freedom input device and the user's bi-manual control skills.
Connect an Open Inventor scene graph to the viewer.
The display of the following button groups can be customized:
Buttons | Function |
---|---|
Picking and Viewing mode | |
Home and Set Home camera parameters | |
View entire scene (View All) | |
Seek | |
Axial, Sagittal, Coronal, and Opposite Side View | |
Projection Type (perspective, orthographic) | |
Display 'Dolly' instead of 'Zoom' for perspective projection type |
A Spacemouse or Spaceball can be used to control the virtual camera of the SoCustomExaminerViewer by using the less-dominant hand of the user. The camera is positioned on a virtual sphere surrounding the displayed scene whereby an automatic reorientation maintains the focal point. The distance of the virtual camera to the focal point can be changed by moving the cap or ball of the input device to or away from the screen in front of the user. The position of the virtual camera on the sphere is controlled by the rotation of the cap or ball.
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 |
If checked, the viewer renders polygons with anti-aliasing (MSAA).
Sets the number of sample points for anti-aliasing (MSAA).
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 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.
If checked, a newly created snapshot is opened with the system's default image viewer.
Sets a counter offset for consecutive snapshot file names.
Sets the device class names separated by spaces.
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.
Shows the current rotation animation step.
If checked, the rotation animation is recorded once it has started.
If checked, buttons for toggling picking/viewing mode are shown.
If checked, buttons for set/go to home are shown/
If checked, a view all button is shown.
If checked, a seeking button is shown.
If checked, buttons for axial, sagittal, coronal and opposite viewing are shown.
If checked, a button for toggling perspective/orthographic view is shown.
If checked, a button for dolly is shown instead of a zoom button.
If checked, the viewer evaluates SoMotion3 events emitted by device drivers (e.g. by a SoQtSpacemouse).
Defines a predefined view.
Note that this works only if the scene's camera has already been located by the viewer.
Values:
Title | Name |
---|---|
Anterior | VIEW_ANTERIOR |
Posterior | VIEW_POSTERIOR |
Left | VIEW_LEFT |
Right | VIEW_RIGHT |
Superior | VIEW_SUPERIOR |
Inferior | VIEW_INFERIOR |