1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkTkRenderWidget.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 /** 16 * @class vtkTkRenderWidget 17 * @brief a Tk Widget for vtk rendering 18 * 19 * 20 * vtkTkRenderWidget is a Tk widget that you can render into. It has a 21 * GetRenderWindow method that returns a vtkRenderWindow. This can then 22 * be used to create a vtkRenderer and etc. You can also specify a 23 * vtkRenderWindow to be used when creating the widget by using 24 * the -rw option. It also takes -width and -height options. 25 * Events can be bound on this widget just like any other Tk widget. 26 * 27 * @sa 28 * vtkRenderWindow vtkRenderer 29 */ 30 31 #ifndef vtkTkRenderWidget_h 32 #define vtkTkRenderWidget_h 33 34 #include "vtkRenderWindow.h" 35 #include "vtkTcl.h" 36 #include "vtkWindows.h" 37 38 // For the moment, we are not compatible w/Photo compositing 39 // By defining USE_COMPOSITELESS_PHOTO_PUT_BLOCK, we use the compatible 40 // call. 41 #define USE_COMPOSITELESS_PHOTO_PUT_BLOCK 42 #include "vtkTk.h" 43 44 #ifndef VTK_PYTHON_BUILD 45 #include "vtkTclUtil.h" 46 #endif 47 48 struct vtkTkRenderWidget 49 { 50 Tk_Window TkWin; /* Tk window structure */ 51 Tcl_Interp* Interp; /* Tcl interpreter */ 52 int Width; 53 int Height; 54 vtkRenderWindow* RenderWindow; 55 char* RW; 56 #ifdef _WIN32 57 WNDPROC OldProc; 58 #endif 59 }; 60 61 #endif 62 // VTK-HeaderTest-Exclude: vtkTkRenderWidget.h 63