<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hello,<br>First I am not running in parallel. I have just written a filter inherited from vtkPolyDataAlgorithm that generates 4 output ports.<br>I probably did not understand well, what I did is to add the method:<br><br>int<br>vtkFlowCoordinates::RequestInformation(vtkInformation* vtkNotUsed(request), vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector)<br>{<br> outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), -1);<br> outputVector->GetInformationObject(1)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), -1);<br> outputVector->GetInformationObject(2)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), -1);<br> outputVector->GetInformationObject(3)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), -1);<br> return 1;<br>}<br><br>but I still get the same errors, even if the result is ok, ie all 4 ports contain polydata, so it is just annoying to get this popup widget with error each time I Apply again!<br><br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">ERROR: In /usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 806</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set in the information for output port 1 on algorithm vtkFlowCoordinates(0x2605cc20).</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">ERROR: In /usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 806</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set in the information for output port 2 on algorithm vtkFlowCoordinates(0x2605cc20).</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">ERROR: In /usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 806</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set in the information for output port 3 on algorithm vtkFlowCoordinates(0x2605cc20).</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"><!--EndFragment--></p><br><hr id="stopSpelling">Date: Wed, 3 Feb 2010 15:50:21 -0500<br>Subject: Re: [Paraview] Maximum number of pieces, what does it mean?<br>From: berk.geveci@kitware.com<br>To: stan1313@hotmail.fr<br>CC: paraview@paraview.org<br><br>Hi Fred,<br><br>I am guessing that this is a filter that you wrote and that you are running in parallel. If that's case, you need something like:<br><br> vtkInformation *outInfo = outputVector->GetInformationObject(NNN);<br>
outInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),<br> -1);<br><br>where NNN is the output port number. This goes in RequestInformation().<br><br>Best,<br>-berk<br><br><div class="ecxgmail_quote">
On Wed, Feb 3, 2010 at 12:03 PM, Fred Fred <span dir="ltr"><<a href="mailto:stan1313@hotmail.fr">stan1313@hotmail.fr</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>
Or how to cope with it? I mean how to specify the maximum number of pieces in a multi-output filter?<br><br><hr>From: <a href="mailto:stan1313@hotmail.fr">stan1313@hotmail.fr</a><br>To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Date: Tue, 2 Feb 2010 23:57:02 +0100<br>Subject: [Paraview] Maximum number of pieces, what does it mean?<div><div></div><div class="h5"><br><br>
I get this error when I select the 2nd output as displayable, although it contains 4 cells and 10 points, so it is not empty.<br>What does it mean?<br><br><p style="text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">ERROR: In /usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 806</span></p>
<p style="text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);">vtkCompositeDataPipeline<br>(0x2361e150): No maximum number of pieces has been set in the<br>information for output port 1 on algorithm vtkFlowCoordinates(0x2361d8c0).</span></p>
<br><p style="text-indent: 0px; font-family: 'Courier'; font-size: 13pt; color: rgb(128, 0, 0);"></p><br> <br><hr>Avec Internet Explorer, surfez en toute discrétion sur internet <a href="http://clk.atdmt.com/FRM/go/182932252/direct/01/">Cliquez ici !</a> <br>
</div></div><hr>Faites une bonne action avec Bing Solidaire ! <a href="http://www.bingsolidaire.com">C'est ici !</a></div>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br> <br /><hr />Windows 7 : Trouvez le PC qui vous convient! <a href='http://clk.atdmt.com/FRM/go/181574577/direct/01/' target='_new'>Découvrez notre offre ! </a></body>
</html>