I have a progammable filter that produces a Python list. I want to
write this list into a vtkTable, make this the output of the
programmableFilter and show it after execution.
Writing data into table works this way (output of the programmable
filter needs to be avtkTable in GUI):
output = self.GetOutputDataObject(0)
# VTK arrays for columns
name = vtk.vtkStringArray()
name.SetNumberOfComponents(1)
name.SetNumberOfTuples(len(results))
name.SetName("Component Name")
# fill it with data from Python-List here (skipped)
output.AddColumn(name)
Problems:
* Table is not shown after filter but has to be opened up manually
by the user
* Additional Error message (however, everything looks fine):
ERROR: In /../vtkExecutive.cxx, line 757
vtkCompositeDataPipeline (0x2b98f3c0): Algorithm
vtkPVGeometryFilter(0x2b96fe20) returned failure for request:
vtkInformation (0x297c2500)
Debug: Off
Modified Time: 41843440
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
Any hints? Thanks Bastian
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview