Hi Martin, <br><br>Within VTK all class names starts with the prefix "vtk", that's how all potential clashes with other toolkit or library is ensured.<br><br>Changing all VTK classes from:<br><br>class vtkMyClass{<br>

};<br><br>to <br><br>namespace vtk {<br>class MyClass{<br>};<br>}<br><br>would be possible.<br><br>Nevertheless, doing so will seriously break backward compatibility. Indeed, all projects using VTK will have to undergo some serious update. <br>

<br>A an other possibility could be the following, where the namespace is optional:<br><br>#ifdef VTK_USE_NAMESPACE<br>namespace vtk {<br>#endif<br>class vtkMyClass{<br>};<br>#ifdef VTK_USE_NAMESPACE<br>}<br>#endif<br><br>

but I dont really see the advantages of doing so.<br><br>Thanks<br>Jc<br><br><br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 6:43 AM, Martin Waitzbauer <span dir="ltr"><<a href="mailto:mazzok@gmx.at">mazzok@gmx.at</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
<br>
I would like to know if it is possible to compile VTK with a specific Namespace like in ITK, where the namespace is itk::<br>
<br>
so would osmetihing like<br>
<br>
namespace mynamespace{<br>
class VTK_INFOVIS_EXPORT vtkAppendPoints : public vtkPolyDataAlgorithm<br>
{<br>
<br>
}<br>
} //end namespace mynamespace<br>
<br>
<br>
so would this work if i made a script that added all the vtk classes to this NS?<br>
<br>
<br>
Thanks alot!<br>
M<br>
--<br>
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit<br>
gratis Handy-Flat! <a href="http://portal.gmx.net/de/go/dsl" target="_blank">http://portal.gmx.net/de/go/dsl</a><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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>