00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00059 #ifndef __vtkXRenderWindowTclInteractor_h
00060 #define __vtkXRenderWindowTclInteractor_h
00061
00062
00063
00064
00065 #include "vtkRenderWindowInteractor.h"
00066 #include <X11/StringDefs.h>
00067 #include <X11/Intrinsic.h>
00068
00069 class VTK_RENDERING_EXPORT vtkXRenderWindowTclInteractor : public vtkRenderWindowInteractor
00070 {
00071 public:
00072 static vtkXRenderWindowTclInteractor *New();
00073 vtkTypeMacro(vtkXRenderWindowTclInteractor,vtkRenderWindowInteractor);
00074 void PrintSelf(ostream& os, vtkIndent indent);
00075
00079 virtual void Initialize();
00080
00082
00084 virtual void Initialize(XtAppContext app);
00085 vtkGetMacro( App, XtAppContext );
00087
00089
00096 virtual void Enable();
00097 virtual void Disable();
00099
00101
00104 virtual void Start();
00105 virtual void UpdateSize(int,int);
00107
00109
00123 virtual void SetWidget(Widget);
00124 Widget GetWidget()
00125 {return this->top;}
00127
00129
00153 virtual void SetTopLevelShell(Widget);
00154 Widget GetTopLevelShell()
00155 {return this->TopLevelShell;}
00157
00159
00160 int CreateTimer(int timertype);
00161 int DestroyTimer(void);
00163
00165 void TerminateApp(void);
00166
00168
00169 vtkGetMacro(BreakLoopFlag, int);
00170 vtkSetMacro(BreakLoopFlag, int);
00172
00174
00175 friend void vtkXRenderWindowTclInteractorCallback(Widget,XtPointer,
00176 XEvent *,Boolean *);
00177 friend void vtkXRenderWindowTclInteractorTimer(XtPointer,XtIntervalId *);
00179
00180 protected:
00181 vtkXRenderWindowTclInteractor();
00182 ~vtkXRenderWindowTclInteractor();
00183
00184 Widget TopLevelShell;
00185
00186 Display *DisplayId;
00187 Window WindowId;
00188 Widget top;
00189 Widget oldTop;
00190 XtAppContext App;
00191 int PositionBeforeStereo[2];
00192
00193 int BreakLoopFlag;
00194 private:
00195 vtkXRenderWindowTclInteractor(const vtkXRenderWindowTclInteractor&);
00196 void operator=(const vtkXRenderWindowTclInteractor&);
00197 };
00198
00199 #endif