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);
81 void SetBreakLoopFlag(
int);
82 void BreakLoopFlagOff();
83 void BreakLoopFlagOn();
92 vtkGetMacro( App, XtAppContext );
132 virtual void SetWidget(Widget);
166 virtual void SetTopLevelShell(Widget);
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;
virtual void GetMousePosition(int *x, int *y)
Get the current position of the mouse.
virtual void UpdateSize(int x, int y)
Event loop notification member for window size change.
virtual void Enable()
Enable/Disable interactions.
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
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).
virtual void TerminateApp(void)
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden b...
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorCallback(Widget, XtPointer, XEvent *, Boolean *)
Widget GetWidget()
Specify the Xt widget to use for interaction.
an X event driven interface for a RenderWindow
void VTKRENDERINGOPENGL_EXPORT vtkXRenderWindowInteractorTimer(XtPointer, XtIntervalId *)