[Paraview] Readers
Berk Geveci
berk.geveci at kitware.com
Thu Sep 20 11:44:24 EDT 2007
Hi Randy,
You should restructure your code a little. You should not be setting
the output directly. Instead you should probably shallow copy the
internal data object (aVTKUGSetup I think) to the output created by
the superclass. You can look at any subclass of
vtkUnstructuredGridAlgorithm in the Graphics directory to see how to
get the output. To fully experience the new pipeline, you can also use
RequestData() and RequestInformation() as most new algorithms now do.
I believe one of the newsletters talk about the new pipeline
http://kitware.com/products/newsletter.html
-berk
On 9/18/07, Randy Hudson <hudson at mcs.anl.gov> wrote:
>
>
> I changed the superclass of one of my old (filedata-to-vtkUnstructuredGrid) readers from vtkSource to
> vtkUnstructuredGridAlgorithm, and several method calls are now invalid:
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx: In member function 'void
> vtkFlashHDF5UGReader::Init()':
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx:71: error: 'class
> vtkFlashHDF5UGReader' has no member named 'Outputs'
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx: In member function 'void
> vtkFlashHDF5UGReader::SetOutput(vtkUnstructuredGrid*)':
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx:122: error: 'class
> vtkFlashHDF5UGReader' has no member named 'SetNthOutput'
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx: In member function
> 'vtkUnstructuredGrid* vtkFlashHDF5UGReader::GetOutput()':
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx:128: error: 'class
> vtkFlashHDF5UGReader' has no member named 'NumberOfOutputs'
> /Users/hudson/Software/ParaView/ParaView.3.1.0/UGFlashReader_ServerPlugin/vtkFlashHDF5UGReader.cxx:133: error: 'class
> vtkFlashHDF5UGReader' has no member named 'Outputs'
>
> Are there a modest few changes I can make to resuscitate the reader, or will I have to rewrite it?
>
>
> --
>
> Randy.
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list