Beginner Tutorial Visualization 2D 3D Open Inventor Snapshots Movies

Example 4: Display images converted to Open Inventor scene objects

Introduction

In the previous example you learned how to use the module SoView2DOverlay together with a View2D. MeVisLab provides a whole family of SoView2D* modules (SoView2DOverlay, SoView2DRectangle, SoView2DGrid, …). All these modules create or interact with scene objects and are based on the module SoView2D, which can convert a voxel-image into a scene object. In this example, you will get to know some members of the SoView2D-family.

Steps to do

Develop your network

We will start the example by creating an overlay again. Add the following modules and connect them as shown. Select a Threshold and a Comparison Operator for the module Threshold as in the previous example. The module SoView2D converts the image into a scene-object. The image as well as the overlay is rendered and displayed by the module SoRenderArea.

SoRenderArea

SoRenderArea

Add Extension

You may have noticed, that you are not able to scroll through the slices. This functionality is not yet implemented in the viewer SoRenderArea. To add a set of functionalities and viewer extensions, which are commonly used in conjunction with a 2D viewer, add the module View2DExtensions to the workspace and connect it as shown below. Now, additional information of the image can be displayed in the viewer and you can navigate and scroll through the slices.

View2DExtensions

View2DExtensions

With the help of the module SoRenderArea you can record screenshots and movies. Before we do that, open [ View → Views → Screenshot Gallery ], to add the Screenshot Gallery to your viewing area.

Screenshot Gallery

Screenshot Gallery

Create screenshots and movies

If you now select your favorite slice of the bone in the Viewer SoRenderArea and press F11 , a screenshot is taken and displayed in the Screenshot Gallery. For recording a movie, press F9 to start the movie and F10 to stop recording. You can find the movie in the Screenshot Gallery.

Record Movies and Snapshots

Record Movies and Snapshots

Exercises

  1. Create movies of a 3D Scene

Summary

  • Modules of the SoView2D-family create or interact with scene objects and are based on the module SoView2D, which can convert a voxel-image into a scene object
  • The SoRenderArea module provides functionalities for screenshots and movie generation