Thanks Burlen!  `this-&gt;DebugOn()` helped me find the problems with my plugin reader.<div><br></div><div>Cheers,</div><div>Pete<br><br><div class="gmail_quote">On Tue, Nov 9, 2010 at 4:32 PM, burlen <span dir="ltr">&lt;<a href="mailto:burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Peter,<br>
<br>
To use the vtkDebugMacro, do a &quot;this-&gt;DebugOn()&quot; in your constructor.<br>
<br>
You could just use cerr if you are Linux/mac and launch paraview/pvserver from a terminal.  Doing a &quot;output-&gt;Print(cerr);&quot; at the end of request data would prove that you did what you think.<br>
<br>
You could use vtkErrorMacro to get stuff into PV &#39;s window.<br>
<br>
Burlen<br>
<br>
<br>
Peter Schmitt wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi ParaViewers,<br>
<br>
(Sorry if this double-posts!)<br>
<br>
I am writing a ParaView Reader Plugin to get my data into ParaView via a vtkStructuredGrid object.  I can load my plugin into ParaView via &quot;Manage Plugins&quot;.  My file type shows up in the &quot;File-&gt; Open&quot; dialog.  When PV_PLUGIN_DEBUG is set, the &quot;Output Messages&quot; window shows that the library was loaded successfully.<br>

<br>
When I select a file and click &quot;Apply&quot; in the object inspector, Paraview thinks for a split second before returning to an interactive state.  However, no data appears &amp; the &quot;Information&quot; tab of the object inspector sets nCells = 0; nPoints = 0; Memory = 0 MB and the X,Y,Z extents are &quot;NA&quot;.<br>

<br>
My plugin reader derives from &quot;vtkStructuredGridReader&quot; and implements:<br>
<br>
* SetFileName<br>
* GetFileName<br>
* CanReadFile * RequestInformation, where I set the extents via:<br>
  outInfo-&gt;Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),extent,6);<br>
* RequestData, where I obtain a vtkStructuredGrid via:<br>
  vtkStructuredGrid *output =<br>
    vtkStructuredGrid::SafeDownCast(outInfo-&gt;Get(vtkDataObject::DATA_OBJECT()));<br>
<br>
I am not sure why the &quot;Information&quot; tab is showing an empty structured grid.  My questions are:<br>
<br>
1.  How can I print debugging messages to stdout or Paraview&#39;s own &quot;Output Messages&quot; window?  Specifically, I&#39;d like to make sure that my X,Y,Z extents are being read properly from file.   I tried vtkDebugMacro, but the data isn&#39;t being printed.<br>

<br>
2.  Have I implemented the appropriate functions that derive from vtkStructuredGridReader?  <br>
3.  Should I derive instead from another class?  When I derive from vtkStructuredGridAlgorithm, I get three error messages from vtkCompositeDataPipeline:  &quot;Input port 0 of algorithm vtkLFMReader(0x11f98a720) has 0 connections but is not optional&quot;.<br>

<br>
Can you offer any hints of how I can proceed to debug my reader?<br>
<br>
Thanks!<br>
Pete<br></div></div>
------------------------------------------------------------------------<br>
<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://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br></div>