36 #ifndef vtkXRenderWindowInteractor_h
37 #define vtkXRenderWindowInteractor_h
42 #include "vtkRenderingOpenGL2Module.h"
44 #include <X11/StringDefs.h>
45 #include <X11/Intrinsic.h>
48 class vtkXRenderWindowInteractorInternals;
80 vtkGetMacro(BreakLoopFlag,
int);
92 vtkGetMacro( App, XtAppContext );
189 static XtAppContext App;
190 static int NumAppInitialized;
198 int PositionBeforeStereo[2];
199 Widget TopLevelShell;
200 vtkXRenderWindowInteractorInternals* Internal;
211 XtIntervalId
AddTimeOut(XtAppContext app_context,
unsigned long interval,
212 XtTimerCallbackProc proc, XtPointer client_data) ;
213 void Timer(XtPointer client_data, XtIntervalId *
id);
214 void Callback(Widget w, XtPointer client_data, XEvent *event, Boolean *ctd);
216 static int BreakLoopFlag;
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
supports function callbacks
a simple class to control print indentation
platform-independent render window interaction including picking and frame rate control.
an X event driven interface for a RenderWindow
void TerminateApp()
Break the event loop on 'q','e' keypress.
void Callback(Widget w, XtPointer client_data, XEvent *event, Boolean *ctd)
virtual void StartEventLoop()
This will start up the X event loop and never return.
friend void vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)
vtkXRenderWindowInteractor()
friend void vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
Functions that are used internally.
virtual void SetWidget(Widget)
Specify the Xt widget to use for interaction.
virtual void SetTopLevelShell(Widget)
This method will store the top level shell widget for the interactor.
void SetBreakLoopFlag(int)
static vtkXRenderWindowInteractor * New()
virtual void Initialize()
Initializes the event handlers without an XtAppContext.
virtual void Enable()
Enable/Disable interactions.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
~vtkXRenderWindowInteractor()
XtIntervalId AddTimeOut(XtAppContext app_context, unsigned long interval, XtTimerCallbackProc proc, XtPointer client_data)
virtual void Initialize(XtAppContext app)
Initializes the event handlers using an XtAppContext that you have provided.
virtual int InternalDestroyTimer(int platformTimerId)
Widget GetTopLevelShell()
void Timer(XtPointer client_data, XtIntervalId *id)
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
X-specific internal timer methods.
virtual void UpdateSize(int, int)
Update the Size data member and set the associated RenderWindow's size.
virtual void GetMousePosition(int *x, int *y)
Re-defines virtual function to get mouse position by querying X-server.