GVRGeometryClipping

MacroModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition GVRGeometryClipping.def
see also SoGVRDepthPeel

Purpose

The GVRGeometryClipping module allows to clip the GVR volume rendering with arbitrary OpenGL geometry. The volume inside and outside of the geometry can be colored and can have a different alpha factor. If shading is enabled, the clipping surface is shaded consistently using the surface normals of the geometry.

Usage

Place in front of a SoGVRVolumeRenderer and make sure to add a SoGVRRayCastSettings module. If shading is desired, enable “Illuminated” render mode in SoGVRRayCastSettings. Connect your clipping geometry to the input of this module.

Tips

This module only works well together with the GVR ray caster SoGVRRayCastSettings.

Windows

Default Panel

../../../Modules/Macros/GVR/mhelp/Images/Screenshots/GVRGeometryClipping._default.png

Input Fields

inGeometryScene

name: inGeometryScene, type: SoNode

The input geometry that is used for clipping.

Output Fields

outScene

name: outScene, type: SoNode

A node that should be placed in front of a SoGVRVolumeRenderer.

Parameter Fields

Field Index

Inside Alpha: Float
Inside Color: Color
layers: Integer
Outside Alpha: Float
Outside Color: Color

Visible Fields

Inside Color

name: insideColor, type: Color, default: 1 1 1

The color factor for the inside volume.

Inside Alpha

name: insideAlpha, type: Float, default: 1, minimum: 0, maximum: 1

The alpha factor for the inside volume.

Outside Color

name: outsideColor, type: Color, default: 1 0.925490200519562 0.768627464771271

The color factor for the outside volume.

Outside Alpha

name: outsideAlpha, type: Float, default: 0, minimum: 0, maximum: 1

The alpha factor for the outside volume.

Hidden Fields

layers

name: layers, type: Integer, default: 4, minimum: 1, maximum: 8

The number of depth peeling layers.