VTKCopyPolyData

MLModule
genre VTKAdapters
author MeVis Medical Solutions AG
package MeVisLab/VTK
dll MLVTKAdapters
definition VTKAdapters.def
keywords renderwindow, render, polydata, surface, copy, displayed

Purpose

When Copy is pressed then the connected input is checked whether it contains valid vtkPolyData. If possible a copy of that vtkPolyData is created and passed to the output, otherwise the output is cleared.

If multiple objects with polydata are available (for example if collections are connected), then currently the polydata is searched/copied only from the first ones.

Checked input class types are vtkRenderWindow, vtkRenderer, vtkActor, vtkMapper, or vtkDataSet or classes derived from them.

After creating a copy the connected input can be disconnected and the created copy remains until the module is deleted or Copy is pressed again to create a new copy or on open inputs to clear the current copy.

Windows

Default Panel

../../../Modules/ML/MLVTKAdapters/mhelp/Images/Screenshots/VTKCopyPolyData._default.png

Input Fields

inputvtkRenderWindow

name: inputvtkRenderWindow, type: MLBase

The connected input object to be searched for copyable polydata.

Output Fields

outputvtkPolyData

name: outputvtkPolyData, type: MLBase

The copy of the polydata found in any connected input object. If no polydata could be copied the output is an empty polydata object.

Parameter Fields

Visible Fields

Status

name: status, type: String, default: Nothing done

Shows the connection state or whether has been done before.

Copy

name: copy, type: Trigger

Tries to create a copy of the polydata from any connected module. If no polydata is found the polydata output is reset to an empty object.