[vtk-developers] vtkTemporalDataSet downcast returns NULL
Yuanxin Liu
leo.liu at kitware.com
Wed Aug 15 11:36:58 EDT 2012
Hi, Roy,
vtkTemporalDataSet was recently depreciated. Please refer to the
article: http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet for details.
The current master no longer builds vtkTemporalDataSet, although the
actual source files are still in there. They will be removed soon.
Leo
On Wed, Aug 15, 2012 at 7:21 AM, Pelt, R.F.P. van <R.F.P.v.Pelt at tue.nl>wrote:
> While writing an image reader for temporal data, I am overriding the
> RequestData function.****
>
> My class is derived from vtkImageReader2.****
>
> The reader should construct a vtkTemporalDataSet, and so I tried to do a
> safe downcast on the outputVector data.****
>
> ** **
>
> vtkTemporalDataSet *data = vtkTemporalDataSet::GetData(outputVector); ***
> *
>
> ** **
>
> or****
>
> ** **
>
> vtkInformation* outInfo = outputVector->GetInformationObject(0);****
>
> vtkTemporalDataSet *data = vtkTemporalDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));****
>
> ** **
>
> Unfortunately, this returns NULL for all cases, probably indicating an error in the downcast.****
>
> What am I missing here? ****
>
> ** **
>
> Thanks.****
>
> ** **
>
> - Roy****
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120815/cca9ab4e/attachment.html>
More information about the vtk-developers
mailing list