[Paraview] Reader
Dominik Szczerba
dominik at itis.ethz.ch
Wed Oct 29 17:38:00 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Please search the mailing list - there was a discussion on this very
topic several weeks ago.
Dominik
Satheesh Maheswaran wrote:
> Dear all,
>
> I am in the process of writing a reader as a plug in.
>
> At the moment, i am deriving my class from vtkMultiBlockDataSet - the
> data has several time steps (each time step holds several variables).
>
> The code below works for single time step.
>
> vtkMultiBlockDataSet *output;
>
> //Each time step then can be created as a single instance of rectilinear Grid
> vtkRectilinearGrid *grid1 = vtkRectilinearGrid::New();
>
> grid1->SetXCoordinates(xCoords);
> grid1->GetPointData()->AddArray(pressure);
>
> output->SetDataSet(0, output->GetNumberOfDataSets(0), grid1)
>
>
> How can i extend this to add several time steps - can you please give
> me some pointers? or some example code?
> I know that I can just add more time steps by creating more instances
> of rectilinearGrid - is this the right way to go? if so how do they
> show up when rendering - can i click on the play button to loop
> through all of the times steps in the data?
>
> Ideally I would like the data to be loaded when user clicks on a
> particular time step rather than loading all at once - is this
> possible ? do i need to worry about this, or does paraview handle this
> in some clever way?
- --
Dominik Szczerba, Ph.D.
Computational Physics Group
Foundation for Research on IT in Society
http://www.itis.ethz.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFJCNe4/EBMh9bUuzIRAi6rAKC9ZqU1oel7nrbq1GZ9MrBkBs2+4QCdGRQW
NrXFzz1eKUCuV4iaI0p0tXY=
=RyUO
-----END PGP SIGNATURE-----
More information about the ParaView
mailing list