[prev in list] [next in list] [prev in thread] [next in thread]
List: paraview
Subject: Re: [Paraview] PVTK XML StructuredGridReader missing a method?
From: Charles Law <charles.law () kitware ! com>
Date: 2003-09-22 16:05:20
Message-ID: 5.1.0.14.0.20030922120157.05135de8 () pop ! biz ! rr ! com
[Download RAW message or body]
Jean,
You are correct. This GetOutput(int idx) method is defined in the source
super classes like vtkUnstructuredGridSource. If a reader or filter
inherits directly from vtkSource, then it needs to define this method or
ParaView will complain.
I will check in your fix into to the development branch and add it to the
1.0 release.
Charles.
At 01:18 PM 9/22/2003 +0200, Jean M. Favre wrote:
>Dear all,
>
>This is my first test with a real case of a Parallel XML Structured Grid
>solution. Each *.vts file can be read individually without trouble.
>
>ParaView run in client-server mode with 16 nodes fails to read my parallel
>dataset element *.pvts with the following error.
>
>
>Process id: 0 >> ERROR: In
>/local/apps/ParaView/Widgets/vtkKWApplication.cxx, line 423
>vtkPVApplication (0x80ddf48):
> Script:
>set XMLPStructuredGridReader0Output1 [XMLPStructuredGridReader0 GetOutput 0]
> Returned Error on line 1:
>Object named: XMLPStructuredGridReader0, could not find requested method:
>GetOutput
>or the method was called with incorrect arguments.
>
>After checking things out, it seems that the culprit is the class
>vtkXMLPStructuredGridReader, which unlike all the other vtkXMLP* classes,
>is missing the non-default GetOutput(int idx) method. I use vtk and
>paraview nightly and
>
>vtkStructuredGrid * GetOutput (int idx)
>
>seems to be missing.
>
>I added it to my own source
>
>vtkStructuredGrid* vtkXMLPStructuredGridReader::GetOutput(int idx)
>{
> return static_cast<vtkStructuredGrid*>(this->Superclass::GetOutput(idx));
>}
>
>recompiled, and voila, it works.
>
>Can the developpers verify I am not saying anything stupid and make the
>correction?
>
>Thanks
>Jean
>
>--
>Dr. Jean M. Favre, email:favre@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@paraview.org
>http://www.paraview.org/mailman/listinfo/paraview
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic