[Paraview] Creating vtkTable with programmable filter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 2 21:43:11 EDT 2010


Bastian,

I've committed a fix to git/master. the spreadsheet view should now
show up by default.

commit 7c4ec9b4197330c50762bf1592b924f1a986e1f8
Author: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Date:   Wed Jun 2 21:39:43 2010 -0400

    Use spreadsheet view by default for tables.

Utkarsh

On Wed, Jun 2, 2010 at 4:09 PM, BastiL2001 <bastil2001 at yahoo.de> wrote:
>
> 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
>
>


More information about the ParaView mailing list