<div dir="ltr">You can however make VTK a little more C++ 11-ish with simple helpers. For example I use the following template to make construction of VTK objects a little less verbose:<div><br><div><div>template &lt;typename T&gt;</div>
<div>vtkSmartPointer&lt;T&gt; make_shared_vtk()</div><div>{ // Helper to reduce boilerplate code for creating VTK objects</div><div>  return vtkSmartPointer&lt;T&gt;::New();</div><div>}</div></div></div><div><br></div><div style>
As an example, the code for creating a vtkImageData object is then:</div><div style><br></div><div style>auto image = make_shared_vtk&lt;vtkImageData&gt;()<br></div><div><br></div><div style>Regards,</div><div style><br></div>
<div style>Marco</div><div style><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 2:03 AM, Berk Geveci <span dir="ltr">&lt;<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No current plans. The major issue is the effort involved in migrating all of the VTK code base as well as all applications that use VTK. It would be significant. There are also some other, more technical, issues. We have developed useful tools that depend on VTK&#39;s reference counting over the years. One is the ability to detect and break cycles. The other is the ability to track leaks of reference counted objects. I am not sure what it would take to implement these over shared_ptr.<span class="HOEnZb"><font color="#888888"><div>


<br></div><div>-berk</div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 14, 2013 at 1:21 PM, Nick Overdijk <span dir="ltr">&lt;<a href="mailto:nick@astrant.net" target="_blank">nick@astrant.net</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hey,<br><br>Are there any plans to remove the reference counted stuff from vtk/itk and replace them with the new C++11 shared_ptr/unique_ptr (or boost::shared_ptr/unique_ptr)? And also standard new/delete instead of ::New and ::Delete? Why are those there anyway? I&#39;d like to learn more about some of the design choices of VTK/ITK, perhaps there&#39;s some sort of document on that as well?<br>



<br></div>Thanks in advance,<br></div>
<br></div></div><div class="im">_______________________________________________<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></blockquote></div><br></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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>