<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.6">
</head>
<body>
On Fri, 2016-01-15 at 12:46 -0500, David E DeMarle wrote:
<blockquote type="CITE">6.2 </blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">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.
</blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">0 = polydata </blockquote>
<blockquote type="CITE">1 = structured points </blockquote>
<blockquote type="CITE">2 = structured grid </blockquote>
<blockquote type="CITE">3 = unstructured grid </blockquote>
<blockquote type="CITE">4 = rectilinear grid<br>
</blockquote>
<br>
Ah. How do I select a particular output port?<br>
<br>
<br>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE">Kind of awkward though so I still recommend you use vtkPythonAlgorithm if you can update to >= 6.2.<br>
</blockquote>
<br>
If I can I will.<br>
<br>
Thanks again,<br>
<br>
Bryan<br>
<br>
<br>
<br>
<blockquote type="CITE"><br>
<br>
</blockquote>
<blockquote type="CITE"><br>
</blockquote>
<blockquote type="CITE">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909 </blockquote>
<blockquote type="CITE"><br>
</blockquote>
<blockquote type="CITE">On Fri, Jan 15, 2016 at 12:41 PM, Bryan Cole <<a href="mailto:bryan.cole@teraview.com">bryan.cole@teraview.com</a>> wrote:
</blockquote>
<blockquote type="CITE">
<blockquote>On Fri, 2016-01-15 at 12:30 -0500, David E DeMarle wrote: <br>
<blockquote type="CITE">I could be wrong but programmable source doesn't have a SetRequestDataObjectMethod or a SetFillOutputPortInformation method which is where you might change that.<br>
<br>
<br>
I recommend you use the new vtkPyhtonAlgorithm instead.<br>
<br>
<a href="http://www.kitware.com/blog/home/post/737">http://www.kitware.com/blog/home/post/737</a><br>
<br>
<br>
</blockquote>
<br>
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.<br>
<br>
Thanks,<br>
BC<br>
<br>
<br>
<br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE"><br>
<br>
</blockquote>
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>-- <br>
Group Leader, Technical Development Group - Teraview Ltd.<br>
Platinum Building, St. John's Innovation Park, Cambridge CB4 0DS, UK.<br>
tel: +44 (0)1223 435386, fax: +44 (0)1223 435382, web: <a href="http://www.teraview.com/">www.teraview.com</a> Registered Number: 04126946, VAT Number: 770 8883 84<br>
<br>
...preferred document formats: ODF (ISO/IEC 26300:2006), PDF </td>
</tr>
</tbody>
</table>
</body>
</html>