[vtkusers] vtkTkRenderWidget, vtkTkImageViewerWidget..

Sebastien BARRE sebastien.barre at kitware.com
Tue Feb 12 17:26:46 EST 2002


At 2/12/2002 05:16 PM, K.R.Subramanian wrote:

>Somehow, our vtk installation is not seeing these widgets  and the install
>script doesnt seem to install these in the right place.  Are there
>environment variables that point to these? tcl reports that it doesnt
>know these widgets(or rather the interpreter doesnt know the commands
>related to these widgets).
>
>Sorry for what is probably a silly question..

Are you using VTK 4.0 ?
The Tcl support for 4.0 is a bit different than 3.2

Basically, you do not have to load the TkRenderWidgets anymore, they are 
part of the Rendering package (i.e. part of the vtkRenderingTCL.dll file).

Thus:
         package require vtkrendering
or just:
         package require vtk

will load the Tk widgets happily.

Example:
 > wish83

% package require vtk
4.0
% vtkTkRenderWidget .w
.w
%

Hope this helps


--
Sebastien Barre




More information about the vtkusers mailing list