Commit 9656347a authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot

Merge topic 'periodic-data-array-iterator'

078f80b1 vtkPeriodicDataArray can now return an iterator.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Acked-by: Robert Maynard's avatarRobert Maynard <robert.maynard@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !525
parents a423aea1 078f80b1
......@@ -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