VTKRemoteRendering

MLModule
author MeVis Medical Solutions AG
package MeVisLab/VTK
dll MLVTKRemoteRendering
definition MLVTKRemoteRendering.def
see also RemoteRendering
keywords offscreen

Purpose

The VTKRemoteRendering module allows to render a VTK visualization (represented as a vtkRenderer) using the MeVisLab remote rendering protocol.

In addition to the single vtkRenderer input, the module is also scriptable to:

  • access the render window and interactor
  • set the interactor style
  • add multiple renderers

To access the scripting API, just do:

API = ctx.object()

e.g. to add a renderer dynamically:

import vtk

ren = vtk.vtkRenderer()
ctx.object().GetRenderWindow().AddRenderer(ren)

Note: VTK cursor shapes are currently not supported, since vtkRenderWindow.SetCurrentCursor() seems to be used seldomly. If you require VTK cursors, please send a feature request.

Input Fields

inputVtkRenderer

name: inputVtkRenderer, type: MLBase

A vtkRenderer is expected.

Output Fields

output

name: output, type: MLBase

The remote rendering base object.

Parameter Fields

Visible Fields

Supported

name: supported, type: Bool, default: TRUE

Shows if the module is supported by the hardware (requires Pbuffers or framebuffer objects).

Use stencil buffer

name: stencilBuffer, type: Bool, default: FALSE

Enable/Disable the stencil buffer.

Enable Multi Sampling

name: enableMultiSampling, type: Bool, default: FALSE

Enable the usage of a MSAA buffer.

Multi Sampling

name: multiSampling, type: Integer, default: 16

Defines the multi sampling for MSAA buffers.

Suppress render updates

name: suppressUpdates, type: Bool, default: FALSE

If enabled, no render updates are propagated.

Intercept double-clicks

name: interceptDoubleClicks, type: Bool, default: FALSE

Defines if double clicks are to be intercepted.

<Double-click intercepted>

name: doubleClickIntercepted, type: Trigger

Is triggered if a double click was intercepted.

Hidden Fields

storeTransparency

name: storeTransparency, type: Bool, default: FALSE

imageRendered

name: imageRendered, type: Trigger