[Paraview] Writing new readers for paraview

Charles Law charles . law at kitware . com
Wed, 08 Oct 2003 13:13:38 -0400


Jean,

It sounds like your reader is not setting the number of outputs.  Try:

reader GetNumberOfOutputs

If it returns 1, then ParaView thinks there is only one output and shows 
only one block.

Charles.




At 12:07 PM 10/8/2003, Jean M. Favre wrote:
>Berk Geveci wrote:
>>There is no document yet, not even an alpha. Sorry. ParaView can use
>>any reader that can be created in Tcl as long as it's interface
>>meets certain requirements:
>
>Thanks Berk for the detailled mail. Yet, I wonder if you could add one 
>more detail.
>
>I have a multi-block reader, which produces 120 StructuredGrids (120 for 
>the particular dataset). The Tcl version of the reader works very well 
>with VTK, I am able to Append all geometries and display the full domain, 
>without any warnings, etc..
>
>Here is a code segment:
>
>vtkTECPLOTReader reader
>   reader SetFileName cyl.dat
>   reader Udpate
>
>vtkAppendPolyData append
>
>for {set i 0} { $i < 120} { incr i} {
>   vtkGeomFilter geo$i
>   geo$i SetInput [reader GetOutput $i]
>   append AddInput [geo$i GetOutput]
>}
>
>Mapper + Actor and voila
>
>The same reader in ParaView only shows the first block, i.e. [reader 
>GetOutput 0].
>
>What is missing? I suspect that one more requirement to add to Berk's list 
>is that the reader should be able to return its number of Outputs early 
>on. Exactly when is my question. During ExecuteInformation?
>
>Thanks for any tip.
>
>Jean
>--
>Dr. Jean M. Favre,                            email:favre at cscs . ch
>http://www . cscs . ch/people/Favre . html
>CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
>Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82
>
>_______________________________________________
>ParaView mailing list
>ParaView at paraview . org
>http://www . paraview . org/mailman/listinfo/paraview