Go to the documentation of this file.
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;
77 vtkGetMacro(BreakLoopFlag,
int);
89 vtkGetMacro( App, XtAppContext );
186 static XtAppContext App;
187 static int NumAppInitialized;
195 int PositionBeforeStereo[2];
196 Widget TopLevelShell;
197 vtkXRenderWindowInteractorInternals* Internal;
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;
XtIntervalId AddTimeOut(XtAppContext app_context, unsigned long interval, XtTimerCallbackProc proc, XtPointer client_data)
Widget GetTopLevelShell()
virtual void Enable()
Enable/Disable interactions.
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)
virtual void StartEventLoop()
This will start up the X event loop and never return.
static vtkXRenderWindowInteractor * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
an X event driven interface for a RenderWindow
vtkXRenderWindowInteractor()
void TerminateApp()
Break the event loop on 'q','e' keypress.
virtual void UpdateSize(int, int)
Update the Size data member and set the associated RenderWindow's size.
virtual void SetTopLevelShell(Widget)
This method will store the top level shell widget for the interactor.
virtual void GetMousePosition(int *x, int *y)
Re-defines virtual function to get mouse position by querying X-server.
void Timer(XtPointer client_data, XtIntervalId *id)
virtual void Initialize()
Initializes the event handlers without an XtAppContext.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
X-specific internal timer methods.
a simple class to control print indentation
virtual void SetWidget(Widget)
Specify the Xt widget to use for interaction.
~vtkXRenderWindowInteractor()
platform-independent render window interaction including picking and frame rate control.
friend void vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)
virtual int InternalDestroyTimer(int platformTimerId)
friend void vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
Functions that are used internally.
supports function callbacks
void Callback(Widget w, XtPointer client_data, XEvent *event, Boolean *ctd)
virtual void Initialize(XtAppContext app)
Initializes the event handlers using an XtAppContext that you have provided.
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
void SetBreakLoopFlag(int)