<DIV>
<P> de Boer Ingo <<A href="mailto:I.deBoer@polytec.de">I.deBoer@polytec.de</A>> wrote:<BR> Hi,<BR>Hello,</P>
<P> I did a similar approach based on M$ CAutoPtr class<BR> shipped with the Visual Studio.<BR> I guess, it is better to make it a bit more safe...<BR> Maybe this could be a suggestion for making <BR> vtkSmartPointer a bit safer ?<BR> <BR> The usage is like:<BR> <BR> CVtkPtr pvtkAxes;<BR> pvtkAxes.Create();<BR> pvtkAxes->SetOrigin(0, 0, 0);<BR> <BR> and you can ask for result of create to do something<BR> when the creation fails...</P>
<P>It is interesting.<BR>I also thought about a Create fonction (directly in the constructor).<BR>But i am wondering if it is not better to minimalize the impact on "traditional" VTK code.<BR>With my first example, if a guy has not my template header, he can change the typedef<BR> typedef vtkClassPtr< vtkConeSource > vtkConeSourcePtr;<BR>to<BR> typedef vtkConeSource * vtkConeSourcePtr;<BR>And it works (but with potential memory leaks...)<BR></P></DIV><BR><BR>Aurélien REGAT-BARREL<p>
                <hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</a>