<div dir="ltr"><div><div><div><div><div>Unfortunately it is not possible.<br></div>You could however have a single multiblock outpout port that would contains your meshes and set the name of each block with the name you read in your file.<br></div>Eg:<br></div><div> <br></div><div><span style="font-family:monospace,monospace"> vtkPolyData* polyData[10];<br></span></div><div><span style="font-family:monospace,monospace"> std::string polyDataName[10];</span><br></div><div><span style="font-family:monospace,monospace"> for (int i = 0; i < 10; i++)<br> {<br></span></div><span style="font-family:monospace,monospace"> mb->SetBlock(i, polydata[i]);<br></span></div><span style="font-family:monospace,monospace"> mb->GetMetaData(i)->Set(vtkCompositeDataSet::NAME(), polyDataName[i].c_str());<br> }</span><br></div><br>Best,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-12-05 9:42 GMT-04:00 Lodron, Gerald <span dir="ltr"><<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE-AT">
<div class="m_3341485523029684781WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">But here i need to know it at compiletime. The ouputs name is in my file name which differs from input file to input file…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">e.g. I want to load a file<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">myfile.myformat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">which has a polydata “SomeString” and a polydata “someOtherString” in it.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">When my reader applys, there should be 2 outputs with 2 vtkPolyDatas with those strings, is that possible?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="DE">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="DE"> Joachim Pouderoux [mailto:<a href="mailto:joachim.pouderoux@kitware.com" target="_blank">joachim.pouderoux@<wbr>kitware.com</a>]
<br>
<b>Gesendet:</b> Montag, 05. Dezember 2016 14:35<br>
<b>An:</b> Lodron, Gerald<br>
<b>Cc:</b> Paraview User (<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>)<br>
<b>Betreff:</b> Re: [Paraview] Filter with variable outputs as plugin<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Gerald,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">To give a name to the different ports of your filter in ParaView, you need to add some "OutputPort" hints to the definition of your filter's proxy.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""><SourceProxy class="..." ...><br>
...</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Courier New""> <Hints></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> <OutputPort index="0" name="<i>My Output 0</i>"/><br>
<OutputPort index="1" name="<i>My Output 1</i>"/><br>
<OutputPort index="2" name="<i>My Output 2</i>"/><br>
...</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Courier New""> </Hint></span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New""></SourceProxy></span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Best,</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Joachim</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b>Joachim Pouderoux</b><span style="font-size:10.0pt">, </span>
<span style="font-size:7.5pt">PhD</span><u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-size:7.5pt">Technical Expert - Scientific Computing Team</span></i><br>
<b><span style="font-size:7.5pt"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></span></b><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-12-05 3:05 GMT-04:00 Lodron, Gerald <<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Hi<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I am programming a vtk Polydata source on my own. The source is reading a proprietary file which consists of very simple 0 to N polygonal objects with a string identifier.
My question is: Where do I specify the number of outputs (RequestInformation?) and where can I tell paraview the string identifier of the polygonal data (when I set number of outputs to 10 in filters constructor I get “Output-0” string in paraview’s pipeline
browser, I want to specify that string on my own)!<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Thanks for help…<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">------------------------------<wbr>------------------------------<wbr>------------------------</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Gerald Lodron</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif""> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:gray">Researcher of Machine Vision Applications Group</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:gray">DIGITAL - Institute for Information and Communication Technologies</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">JOANNEUM RESEARCH Forschungsgesellschaft mbH</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">Steyrergasse 17, 8010 Graz, AUSTRIA</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">phone:
<a href="tel:%2B43-316-876-1751" target="_blank">+43-316-876-1751</a> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">general fax:
<a href="tel:%2B43-316-876-1751" target="_blank">+43-316-876-1751</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">web:
<a href="http://www.joanneum.at/digital" target="_blank">http://www.joanneum.at/digital</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:gray">e-mail:
<a href="mailto:gerald.lodron@joanneum.at" target="_blank">gerald.lodron@joanneum.at</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>