[vtkusers] problems with vtKProgrammableSource

David E DeMarle dave.demarle at kitware.com
Fri Jan 15 12:46:11 EST 2016


6.2

On further reflection (see vtkProgrammableSource::vtkProgrammableSource) it
looks like the way you are supposed to choose the type of output is to
connect to a particular output port.

0 = polydata
1 = structured points
2 = structured grid
3 = unstructured grid
4 = rectilinear grid

Kind of awkward though so I still recommend you use vtkPythonAlgorithm if
you can update to >= 6.2.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Fri, Jan 15, 2016 at 12:41 PM, Bryan Cole <bryan.cole at teraview.com>
wrote:

> On Fri, 2016-01-15 at 12:30 -0500, David E DeMarle wrote:
>
> I could be wrong but programmable source doesn't have a
> SetRequestDataObjectMethod or a SetFillOutputPortInformation method which
> is where you might change that.
>
>
>
> I recommend you use the new vtkPyhtonAlgorithm instead.
>
> http://www.kitware.com/blog/home/post/737
>
>
>
> Thanks for this tip. What version was this class introduced? My system vtk
> version is 6.0.0 and I can't see this class.
>
> Thanks,
> BC
>
>
>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160115/744d0d11/attachment.html>


More information about the vtkusers mailing list