[Paraview] 4D datasource

Moreland, Kenneth kmorel at sandia.gov
Wed Jul 28 14:18:05 EDT 2010


Basically, yes, you will write your data out in time slices.  However, you can also advertise time in the reader and VTK/ParaView can request particular time slices.

To do this, add vtkInformationDoubleVectorKey::TIME_STEPS() and vtkInformationDoubleVectorKey::TIME_RANGE() key/value pairs to the output information object during the RequestInformation call.  Then, in RequestData, look for vtkInformationDoubleVectorKey::UPDATE_TIME_STEPS() in the output information and use the value to load the requested time slice into the output.

To get ParaView to recognize the time, you also need to add this magical property into the XML for your reader proxy:

   <DoubleVectorProperty name="TimestepValues"
                          repeatable="1"
                          information_only="1">
      <TimeStepsInformationHelper/>
    </DoubleVectorProperty>

This will alert ParaView to read the time steps reported from RequestInformation and set up the animation and related GUI elements.

-Ken


On 7/28/10 6:05 AM, "owen.arnold at stfc.ac.uk" <owen.arnold at stfc.ac.uk> wrote:

Hi,

I have put together various plugin datasources based on vtkStructuredGrid and vtkUnstructuredGrids. I now need to provide some way of visualizing 4D data for my vtkStructuredGrid datasources. Is it possible to provide the fourth dimension along the time axes? Has anyone done this, and does it involve generating new vtkStructuredGrids for each time increment?

Thanks,

Owen



   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100728/756152d3/attachment.htm>


More information about the ParaView mailing list