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

Brad King brad.king at kitware.com
Fri Dec 17 14:18:12 EST 2004


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



More information about the Paraview-developers mailing list