36 #ifndef vtkXRenderWindowInteractor_h 37 #define vtkXRenderWindowInteractor_h 42 #include "vtkRenderingOpenGLModule.h" 44 #include <X11/StringDefs.h> 45 #include <X11/Intrinsic.h> 48 class vtkXRenderWindowInteractorInternals;
71 void TerminateApp() VTK_OVERRIDE;
80 vtkGetMacro(BreakLoopFlag,
int);
81 void SetBreakLoopFlag(
int);
82 void BreakLoopFlagOff();
83 void BreakLoopFlagOn();
91 virtual
void Initialize(XtAppContext app);
92 vtkGetMacro( App, XtAppContext );
105 void Enable() VTK_OVERRIDE;
106 void Disable() VTK_OVERRIDE;
113 void UpdateSize(
int,
int) VTK_OVERRIDE;
132 virtual
void SetWidget(Widget);
133 Widget GetWidget() {
return this->Top;};
166 virtual void SetTopLevelShell(Widget);
198 int PositionBeforeStereo[2];
215 int InternalCreateTimer(
int timerId,
int timerType,
unsigned long duration) VTK_OVERRIDE;
216 int InternalDestroyTimer(
int platformTimerId) VTK_OVERRIDE;
219 XtIntervalId AddTimeOut(XtAppContext app_context,
unsigned long interval,
220 XtTimerCallbackProc proc, XtPointer client_data) ;
221 void Timer(XtPointer client_data, XtIntervalId *
id);
222 void Callback(Widget w, XtPointer client_data, XEvent *event, Boolean *ctd);
224 static
int BreakLoopFlag;
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
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
static int NumAppInitialized
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 *)
vtkXRenderWindowInteractorInternals * Internal