In that case, do this: from paraview.vtk import io
r = io.vtkDataSetReader() Keep in mind that vtkDataSetReader() is a VTK class and it will have a different interface than the LegacyVTKFileReader class. Look at VTK doxygen for the full API documentation. -berk On Fri, Apr 2, 2010 at 12:34 PM, Felipe Bordeu Weldt <[email protected]> wrote: > No, because I may have more than 2 files (3 ... 20 ...). > In reality I have a N dimension solution (space, time, parameters) and I > want to generate a solution in 3D fixing the position of the other > dimensions (and maybe putting one in dimension in the time). > I have my own file format (a very simple xml) with the description of the > solution. > The idea is to test the visualization, and then write a real reader (in > c++). > <?xml version="1.0"?> > <root> > <PGD_dim > id="1" > name="Time" > dim="1" > file="Time.vtk" > /> > <PGD_dim > id="2" > dim="2" > name="SpaceXY" > file="Space_2D.vtk" > /> > <PGD_dim > id="3" > dim="1" > name="SpaceZ" > file="Space_1D.vtk" > /> > <PGD_dim > id="4" > dim="3" > name="ForceXYZ" > file="Force_3D.vtk" > /> > ... > </root> > > > Le 2 avr. 10 à 17:41, Berk Geveci a écrit : > > Can't you use programmable filter with 2 reader inputs? > > On Fri, Apr 2, 2010 at 11:10 AM, Felipe Bordeu Weldt > <[email protected]> wrote: > > Hello everyone, > > I'm using paraview 3.6.2, I'm trying to generate RectilinearGrid data (using > > the programmable source), the data for the construction come from 2 > > rectilinearGrid (vtk files), so I have to have access to > > the LegacyVTKFileReader class. > > The problem is that, inside the programmable source, I don't have access to > > the reader (servermanager is not available), and if I import vtk the readers > > are not available neither. > > any idea??? > > problem : reading legacy vtk files inside the programmable source > > Thanks > > Felipe Bordeu Weldt > > Doctorant, 4e année (4° year PhD student) > > ------------------------------------------------------------------------ > > Tél. : 01 47 40 22 26 > > Mobile : 06 32 42 60 02 > > LMT-Cachan > > (ENS Cachan/CNRS/UPMC/PRES UniverSud Paris) > > 61, avenue du Président Wilson > > 94230 Cachan > > France > > ------------------------------------------------------------------------ > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > > http://www.paraview.org/mailman/listinfo/paraview > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
