stubs enabled vtk tcl libraries
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Below are some patches to give the option in cmake to build stubs enabled vtk tcl libraries.
An advanced option TCL_TK_STUBS is offered which, if set, defines the USE_TCL_STUBS and USE_TK_STUBS preprocessor flags.
The tcl and tk stubs tables are initialized first when the Vtk*tcl_Init functions are called.
tclstub84.lib and tkstub84.lib should be linked instead of tcl84.lib and tk84.lib.
TkWinChildProc is not exported in the stubs tables, so there is a work-around in vtkTkRenderWindowWidget and vtkTkImageViewerWidget to retrieve it from the the class info registered with windows.