<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div id="geary-body">
<div>Hello.</div>
<div><br>
</div>
<div>I (hopefully) already understand the difference between the ShallowCopy and the DeepCopy method (e.g. copying only the pointer vs. copying the pointer and the content pointed to).</div>
<div><br>
</div>
<div>But what i don't understand yet is, what is the difference between using the overloaded assignment operator of vtkSmartPointer and the ShallowCopy method, e.g. what is the difference between</div>
<div><br>
</div>
<div><br>
</div>
<div><font face="monospace"><font color="#204a87">vtkSmartPointer<vtkPolydata></font>
<font color="#a40000">myStrangePolydata</font> = <font color="#204a87">vtkSmartPointer<vtkPolydata></font>::<font color="#4e9a06">New()</font>;</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"><font color="#a40000">myStrangePolydata</font> = <font color="#204a87">
vtkTransmogrifyFilter</font>-><font color="#204a87">GetOutput</font>();</font></div>
<div><font face="monospace"><br>
</font></div>
<div><br>
</div>
<div><font face="sans">and</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="monospace"><font color="#a40000">myStangePolydata</font>-><font color="#204a87">ShallowCopy</font>(<font color="#204a87">vtkTransmogrifyFilter</font>-><font color="#204a87">GetOutput</font>();</font></span></div>
<div style="orphans: 2; widows: 2;"><font face="monospace, monospace"><span style="background-color: rgb(249, 249, 249);"><br>
</span></font></div>
<div style="orphans: 2; widows: 2;"><font face="monospace, monospace"><span style="background-color: rgb(249, 249, 249);"><br>
</span></font></div>
<div style="orphans: 2; widows: 2;"><font face="monospace, monospace"><span style="background-color: rgb(249, 249, 249);"><br>
</span></font></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans">Does it make a difference to the reference count of the vtkSmartPointer?</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans"><br>
</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans"><br>
</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans">Thank you very much in advance.</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans"><br>
</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans"><br>
</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans">Cheers,</font></span></div>
<div style="orphans: 2; widows: 2;"><span style="background-color: rgb(249, 249, 249);"><font face="sans">Berti</font></span></div>
</div>
</body>
</html>