33 #ifndef vtkXRenderWindowInteractor_h
34 #define vtkXRenderWindowInteractor_h
39 #include "vtkRenderingOpenGL2Module.h"
41 #include <X11/StringDefs.h>
42 #include <X11/Intrinsic.h>
45 class vtkXRenderWindowInteractorInternals;
68 void TerminateApp() VTK_OVERRIDE;
77 vtkGetMacro(BreakLoopFlag,
int);
78 void SetBreakLoopFlag(
int);
79 void BreakLoopFlagOff();
80 void BreakLoopFlagOn();
88 virtual
void Initialize(XtAppContext app);
89 vtkGetMacro( App, XtAppContext );
102 void Enable() VTK_OVERRIDE;
103 void Disable() VTK_OVERRIDE;
110 void UpdateSize(
int,
int) VTK_OVERRIDE;
129 virtual
void SetWidget(Widget);
130 Widget GetWidget() {
return this->Top;};
163 virtual void SetTopLevelShell(Widget);
186 static XtAppContext App;
187 static
int NumAppInitialized;
195 int PositionBeforeStereo[2];
196 Widget TopLevelShell;
197 vtkXRenderWindowInteractorInternals* Internal;
204 int InternalCreateTimer(
int timerId,
int timerType,
unsigned long duration) VTK_OVERRIDE;
205 int InternalDestroyTimer(
int platformTimerId) VTK_OVERRIDE;
208 XtIntervalId AddTimeOut(XtAppContext app_context,
unsigned long interval,
209 XtTimerCallbackProc proc, XtPointer client_data) ;
210 void Timer(XtPointer client_data, XtIntervalId *
id);
211 void Callback(Widget w, XtPointer client_data, XEvent *event, Boolean *ctd);
213 static
int BreakLoopFlag;
220 void StartEventLoop() VTK_OVERRIDE;
virtual void GetMousePosition(int *x, int *y)
Get the current position of the mouse.
Widget GetTopLevelShell()
This method will store the top level shell widget for the interactor.
virtual void Initialize()
Prepare for handling events and set the Enabled flag to true.
static vtkRenderWindowInteractor * New()
platform-independent render window interaction including picking and frame rate control.
supports function callbacks
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
an X event driven interface for a RenderWindow
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)