Hi, Roy,<div><br><div> vtkTemporalDataSet was recently depreciated. Please refer to the article: <a href="http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet">http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet</a> for details. </div>
<div><br></div><div> The current master no longer builds vtkTemporalDataSet, although the actual source files are still in there. They will be removed soon.</div><div><br></div><div>Leo</div><div><br></div><div><br><div class="gmail_quote">
On Wed, Aug 15, 2012 at 7:21 AM, Pelt, R.F.P. van <span dir="ltr"><<a href="mailto:R.F.P.v.Pelt@tue.nl" target="_blank">R.F.P.v.Pelt@tue.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="NL" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-GB">While writing an image reader for temporal data, I am overriding the RequestData function.<u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-GB">My class is derived from vtkImageReader2.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB">The reader should construct a vtkTemporalDataSet, and so I tried to do a safe downcast on the outputVector data.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">vtkTemporalDataSet *data = vtkTemporalDataSet::GetData(outputVector); <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">or<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">vtkInformation* outInfo = outputVector->GetInformationObject(0);<u></u><u></u></span></p>
<pre><span lang="EN-GB">vtkTemporalDataSet *data = vtkTemporalDataSet::SafeDownCast(</span><span lang="EN-GB" style>outInfo->Get(vtkDataObject::DATA_OBJECT()));<u></u><u></u></span></pre><pre><span lang="EN-GB" style><u></u> <u></u></span></pre>
<pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif"">Unfortunately, this returns NULL for all cases, probably indicating an error in the downcast.<u></u><u></u></span></pre><pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif"">What am I missing here? <u></u><u></u></span></pre>
<pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></pre><pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif"">Thanks.<u></u><u></u></span></pre>
<pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></pre><pre><span lang="EN-GB" style="font-family:"Calibri","sans-serif"">- Roy<u></u><u></u></span></pre>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div></div>