[Paraview] Creating vtkTable with programmable filter

BastiL2001 bastil2001 at yahoo.de
Wed Jun 2 16:09:05 EDT 2010



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100602/cfc5a8c9/attachment.htm>


More information about the ParaView mailing list