<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018, 2:07 AM Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Any plans for something similar for vtkCollection*?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Not currently, but that would be a very useful feature indeed. I think it'd be more than worthwhile to add a template that just translates the VTK iteration convention (InitTraversal, GoToNextItem, IsDoneWithTraversal) to a set of STL iterators/range objects. This would allow it to work with quite a few different iterables in VTK. </div><div dir="auto"><br></div><div dir="auto">It'd have a similarly usage as the array iterators:<br><br>vtk[...]Collection *myCollection = ...;<br>for (auto item : vtk::Range(myCollection)) { ... }</div><div dir="auto"><br></div><div dir="auto">I'll put this on my list to look at in my spare cycles.  Good suggestion!<br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>