[Paraview-developers] Missing vtkTemporalDataSet class in ParaView 3.98.0
Sunrise
helios.corona at gmail.com
Fri Feb 1 17:56:27 EST 2013
Hi again,
Regarding the recent changes in UPDATE_TIME_STEP(S) key and replacement
for vtkTemporalDataSet, I have two questions:
1. In vtkMultiblockDataSet, what is the difference between
GetChild(index) and GetBlock(index)?
I will probably use iterators anyway, but both these methods seems
the same. Right?
Are indices in both methods the same? Do they both use flat_index in
data tree?
2. So, I changed all UPDATE_TIME_STEPS() key to UPDATE_TIME_STEP().
Here is the problem now:
The old key (UPDATE_TIME_STEPS) is a vtkInformationDoubleVectorKey,
while the new key (UPDATE_TIME_STEP) is vtkInformationDoubleKey,
which only holds one time step (a number). Whereas, I need a vector
of numbers, each of which represents time step of it's corresponding
dataset (each individual leaf in blockdataset). I will send this key
over the pipeline with BlockDataSet, so the downstream filter(s)
knows the input block dataset contains what time frames. How should
I use "vector" time data with vtkStreamingDemandDrivenPipeline?
Any suggestions would be appreciated.
On 01/10/2013 03:35 PM, Yuanxin Liu wrote:
> Hi,
> We will not continue to support it. In fact, the current development
> branch does not have the class anymore.
>
> Yes, you can use vtkMultiTimeStepAlgorithm if you do not want to manually
> loop over all the time steps to construct a composite data set.
>
> You should replace vtkTemporalDataSet by vtkMultiBlockDataSet. Replacing
> calls to vtkTemporalDataSet by calls to vtkMultiBlockDataSet should be
> fairly straightforward. You can look at the old vtkTemporalDataSet.h to see
> what to do. For example,
> - data->GetTimeStep(timeStep) can be replaced
> by data->GetChild(timestep);
> - data->GetMetaData(timestep) can be replaced by
> data->GetChildMetaData(timestep);
>
> Leo
>
>
>
> On Thu, Jan 10, 2013 at 4:02 PM, Sunrise <helios.corona at gmail.com> wrote:
>
>> Thanks for the quick reply, Leo.
>>
>> I prefer to have a class that acts like a container of data frames. I
>> already use the keys that you have mentioned for looping over pipeline, in
>> order to do operations "on temporal data set". I mean, the TemporalDataSets
>> are sending back and forth over pipeline. Having a class (like
>> vtktemporalDataSet) that acts like "container" of data would be much easier
>> to avoid nested loops in my case.
>>
>> Do you have any suggestion for a data container class such as alternative
>> to vtkTemporalDataSet class? Is deriving from vtkMultiTimeStepAlgorithm
>> suitable to create such container class?
>>
>> Next, I see vtkTemporalDataSet is still in vtk. Does it mean vtk (well not
>> ParaView) continue to support it?
>>
>> Again, Thanks.
>>
>>
>> On 01/09/2013 08:50 PM, Yuanxin Liu wrote:
>>
>> Hi,
>> This is because vtkTemporalDataSet is no longer supported. The details
>> of the change can be seen here:
>> http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet. In short, the
>> executives now only support updating single time steps; if a filter needs
>> to use multiple time step data, it needs to use the key
>> vtkStreamingDemandPipeline::CONTINUE_EXECUTION() to loop over those time
>> steps.
>>
>> If your filter works only on single time steps, then the change should
>> be fairly straightforward. Try:
>> - Inherit from vtkDataObjectAlgorithm instead of
>> vtkTemporalDataSetAlgorithm
>> - replace the key UPDATE_TIME_STEPS() by UPDATE_TIME_STEP()
>> - replace the key DATA_TIME_STEPS() by DATA_TIME_STEP()
>>
>> The compiler would then hopefully guide you to resolve the rest of the
>> errors. Let me know if you have trouble. Also please feel free to post
>> your code.
>>
>> Leo
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Jan 9, 2013 at 9:00 PM, Sunrise <helios.corona at gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> I am compiling ParaView developement in order to develop a ParaView
>>> plugin. Some of my classes are inherited from vtkTemporalDataSetAlgorithm.
>>> In previous version(s) of ParaView source code (i.e. <= 3.14.1) I could use
>>> vtkTemporalDataSetAlgorithm and I everything was fine.
>>>
>>> Recently I tried to use newer version of ParaView source (version 3.98.0)
>>> and some vtk files are missed, such as:
>>>
>>> .../Filtering/vtkTemporalDataSetAlgorithm.cxx
>>> .../Filtering/vtkTemporalDataSet.cxx
>>> .../Filtering/vtkTemporalDataSetAlgorithm.h
>>> .../Filtering/vtkTemporalDataSet.h
>>>
>>> How can I use vtkTemporalDataSet* in recent ParaView?
>>>
>>> Thanks.
>>> _______________________________________________
>>> Paraview-developers mailing list
>>> Paraview-developers at paraview.org
>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130201/174c8bbf/attachment.htm>
More information about the Paraview-developers
mailing list