[vtkusers] can you create a vtkPoints(VTK_DOUBLE)

Sebastien BARRE seb-ml-vtk at barre.nom.fr
Fri Jan 26 09:43:11 EST 2001


At 26/01/2001 09:29, Will Schroeder wrote:

>Two comments come to mind. First, maintaining a template solution sounds 
>good, but if you have ever seen a heavily templated system like the 
>NLM/NIH Insight Segmentation/Registration Toolkit that we are involved in, 
>you would swear that you are looking at a foreign language, certainly not C++.

Definitely. I've used the STL tricks for quite a bit of time, and it's 
sometimes more "troubling" than elegant :)

>Not only that: but how do you wrap and manage template instantiation for 
>interpreted language bindings?

Indeed I do not know :) As I told you privately, I'm really impressed that 
you succeed in doing that, and I'm impatient to test your new wrapper 
technique by myself :) Let's pray that GE won't patent it :)

>We now think we have a solution for this, but in 1993 we didn't.

I do believe you :)

>Second: the switching is done once, in the execute method, that invokes a 
>templated function. So there is little performance effect.

That's what I thought when I saw the imaging filters for the first time. 
But as you mentioned : "this functionality is slowly creeping into the 
"graphics" pipeline.)", thus I was just wondering...





More information about the vtkusers mailing list