[Paraview-developers] Re: [vtk-developers] Removed windows.h from VTK headers.

Bill Lorensen wlorens1 at nycap.rr.com
Sat Dec 18 12:40:56 EST 2004


ITK uses GetNameOfClass. I suggest the same for VTK.

Bill

At 02:18 PM 12/17/2004, Brad King wrote:
>Bill Hoffman wrote:
>>The correct solution for this problem is to rename all of the methods in 
>>question to names that do not conflict with Windows.h.   GetClassName -> 
>>VTKGetClassName, etc.   If we were starting VTK with knowledge of this 
>>problem, that is what we would do.   However, that would cause backwards 
>>compatibility to break, which is a bad thing.   So, I suggest, that we 
>>keep the same basic approach that Brad has implemented, but instead of 
>>calling the methods *Internal(), we call the method the name that it 
>>would have been if we were starting from scratch.   Then we provide 
>>methods for backwards compatibility that call the new method, and they
>>have a comment explaining the problem.
>
>This sounds like a good idea.  Then we can deprecate the old method names 
>using the standard VTK deprecation mechanism.  Now we need to choose new 
>names.  How about these:
>
>GetClassName -> GetNameOfClass
>GetProp -> GetViewProp
>SetProp -> SetViewProp
>RemoveProp -> RemoveViewProp
>
>-Brad
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at vtk.org
>http://www.vtk.org/mailman/listinfo/vtk-developers



More information about the Paraview-developers mailing list