<div dir="ltr">Burlen's got it right. I am curious why the plugin was only called once. Maybe there is no CanReadFile() or no file extension collision of something like that in one case but not the other?<div><br></div>
<div>Mark: ProcessRequest() calls RDO(), RI(), and RD() (in that order) only after paraview creates the instance that it will actually use to read the file with. All are typically only called once, unless some parameter on the reader changes. If RD is called more often check to see if image based extents are mismatched.</div>
<div><br></div>
</div><div class="gmail_extra"><br clear="all"><div>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</div>
<br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 5:38 PM, Burlen Loring <span dir="ltr"><<a href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
I thought it was twice. The first one ParaView when creates the
reader to call CanReadFile in its search for potential readers of
the file. The second one when it builds the pipeline.<div><div class="h5"><br>
<br>
<div>On 08/04/2014 02:31 PM, Vanmoer, Mark W
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Ah, is it
because the exeutive’s ProcessRequest is doing all three of
REQUEST_DATA, REQUEST_INFORMATION, and REQUEST_DATA_OBJECT ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Vanmoer, Mark W <br>
<b>Sent:</b> Monday, August 04, 2014 4:04 PM<br>
<b>To:</b> paraview<br>
<b>Subject:</b> Reader ctors called multiple times?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hello ParaView,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve inherited a project that writes
plugins for ParaView 3.14.1, serial. While debugging I found
out that the constructor for one of this project’s file
readers is called 3 times when loading a file. I thought this
was odd, so I tried setting a break point on
vtkUnstructuredGridReader’s ctor and discovered that it’s
called twice. However, a constructor for vtk source plugin
that I wrote is only called once, as I would have guessed for
the others.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is it normal for readers to have their
constructors called multiple times when loading a file?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Mark<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<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/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/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/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>