1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkTkImageViewerWidget.h 5 6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 7 All rights reserved. 8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 9 10 This software is distributed WITHOUT ANY WARRANTY; without even 11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 12 PURPOSE. See the above copyright notice for more information. 13 14 =========================================================================*/ 15 // .NAME vtkTkImageViewerWidget - a Tk Widget for viewing vtk images 16 17 // .SECTION Description 18 // vtkTkImageViewerWidget is a Tk widget that you can render into. It has a 19 // GetImageViewer method that returns a vtkImageViewer. You can also 20 // specify a vtkImageViewer to be used when creating the widget by using 21 // the -iv option. It also takes -width and -height options. 22 // Events can be bound on this widget just like any other Tk widget. 23 24 // .SECTION See Also 25 // vtkImageViewer 26 27 28 #ifndef vtkTkImageViewerWidget_h 29 #define vtkTkImageViewerWidget_h 30 31 #include "vtkImageViewer.h" 32 #include "vtkTcl.h" 33 #include "vtkTk.h" 34 #ifndef VTK_PYTHON_BUILD 35 #include "vtkTclUtil.h" 36 #endif 37 #include "vtkWindows.h" 38 39 struct vtkTkImageViewerWidget 40 { 41 Tk_Window TkWin; /* Tk window structure */ 42 Tcl_Interp *Interp; /* Tcl interpreter */ 43 int Width; 44 int Height; 45 vtkImageViewer *ImageViewer; 46 char *IV; 47 #ifdef _WIN32 48 WNDPROC OldProc; 49 #endif 50 }; 51 52 #endif 53 54