<div dir='auto'>Nice blog.</div><div class="gmail_extra"><br><div class="gmail_quote">On 10 Nov 2018 12:00 a.m., Allie Vacanti <allison.vacanti@kitware.com> wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="elided-text"><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 style="margin:0 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="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
</blockquote></div><br></div>