20 #ifndef vtkXRenderWindowInteractor_h
21 #define vtkXRenderWindowInteractor_h
27 #include "vtkRenderingUIModule.h"
29 #include "vtkX11Functions.h"
31 VTK_ABI_NAMESPACE_BEGIN
33 class vtkXRenderWindowInteractorInternals;
90 void GetMousePositionAndModifierKeysState(
int* x,
int* y,
unsigned int* keys);
92 void DispatchEvent(XEvent*);
102 void UpdateSizeNoXResize(
int,
int);
110 int PositionBeforeStereo[2];
147 void WaitForEvents();
152 bool CheckDisplayId(Display* dpy);
165 VTK_ABI_NAMESPACE_END
virtual void GetMousePosition(int *x, int *y)
Get the current position of the mouse.
virtual void UpdateSize(int x, int y)
When the event loop notifies the interactor that the window size has changed, this method is called t...
virtual void Enable()
Enable/Disable interactions.
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
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
static int NumAppInitialized
a simple class to control print indentation
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
vtkXRenderWindowInteractorInternals * Internal
virtual void ProcessEvents()
Process all user-interaction, timer events and return.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void TerminateApp()
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden b...
an X event driven interface for a RenderWindow