I had feeling that it is not possiible but I <a href="http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers">read example</a> about vtkSmartPointers and there is written this : <div><br></div><div><p style="margin:0.4em 0px 0.5em;line-height:18.399999618530273px;font-family:sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">
&quot;You may need to wrap a raw pointer because you need to use a constructor that takes arguments. In this situation, use the Take method. This passes the object&#39;s self-ownership to the smart pointer:</p><div dir="ltr" class="mw-geshi" style="font-family:sans-serif;font-size:12.800000190734863px;line-height:18.399999618530273px;background-color:rgb(255,255,255);text-align:left">
<div class="cpp source-cpp" style="line-height:normal;font-family:monospace"><pre class="de1" style="padding:0px;border:0px none white;line-height:1.2em;font-size:1em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top">
<span class="kw2" style="color:rgb(0,0,255)">class</span> MySpecialClass <span class="sy4" style="color:rgb(0,128,128)">:</span> <span class="kw2" style="color:rgb(0,0,255)">public</span> vtkObject <span class="br0" style="color:rgb(0,128,0)">{</span> <span class="coMULTI" style="color:rgb(255,0,0);font-style:italic">/* ... */</span> <span class="br0" style="color:rgb(0,128,0)">}</span><span class="sy4" style="color:rgb(0,128,128)">;</span>
MySpecialClass<span class="sy2" style="color:rgb(0,0,64)">*</span> MyObjectRaw <span class="sy1" style="color:rgb(0,0,128)">=</span> <span class="kw3" style="color:rgb(0,0,221)">new</span> MyObject<span class="br0" style="color:rgb(0,128,0)">(</span>arguments<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span>
vtkSmartPointer<span class="sy1" style="color:rgb(0,0,128)">&lt;</span>MySpecialClass<span class="sy1" style="color:rgb(0,0,128)">&gt;</span> MyObject<span class="sy4" style="color:rgb(0,128,128)">;</span>
MyObject.<span class="me1" style="color:rgb(0,119,136)">Take</span><span class="br0" style="color:rgb(0,128,0)">(</span>MyObjectRaw<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span></pre>
<pre class="de1" style="padding:0px;border:0px none white;line-height:1.2em;font-size:1em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top">&quot;</pre><pre class="de1" style="padding:0px;border:0px none white;line-height:1.2em;font-size:1em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top">
<br></pre><pre class="de1" style="padding:0px;border:0px none white;line-height:1.2em;font-size:1em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top"><span style="font-family:arial;font-size:small;line-height:normal;text-align:-webkit-auto;white-space:normal">This is origin of my question. It looks that it is not correct there (perhaps anymore).</span>
</pre><pre class="de1" style="padding:0px;border:0px none white;line-height:1.2em;font-size:1em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top"><span style="font-family:arial;font-size:small;line-height:normal;text-align:-webkit-auto;white-space:normal">Jana</span></pre>
</div></div></div>