Commit 078f80b1 authored by T.J. Corona's avatar T.J. Corona
Browse files

vtkPeriodicDataArray can now return an iterator.

This fix is in reference to bug report 0015518. This fix enables
vtkPeriodicDataArrays to be written to XML, albeit inefficiently.
parent 6b0f16c9
......@@ -13,6 +13,7 @@
=========================================================================*/
#include "vtkArrayIteratorTemplate.h"
#include "vtkIdList.h"
#include "vtkVariant.h"
......@@ -268,8 +269,10 @@ template <class Scalar> void vtkPeriodicDataArray<Scalar>
template <class Scalar> vtkArrayIterator*
vtkPeriodicDataArray<Scalar>::NewIterator()
{
vtkErrorMacro(<< "Not implemented.");
return NULL;
vtkArrayIteratorTemplate<Scalar>* iter =
vtkArrayIteratorTemplate<Scalar>::New();
iter->Initialize(this);
return iter;
}
//------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment