33 #ifndef vtkAndroidRenderWindowInteractor_h
34 #define vtkAndroidRenderWindowInteractor_h
36 #include "vtkRenderingOpenGL2Module.h"
96 { this->AndroidApplication = app; };
107 int *xPtr,
int *yPtr,
int *idPtr,
int metaState);
136 static void (*ClassExitMethod)(
void *);
137 static void (*ClassExitMethodArgDelete)(
void *);
implements Win32 specific functions required by vtkRenderWindowInteractor.
vtkAndroidRenderWindowInteractor()
static void * ClassExitMethodArg
void HandleCommand(int32_t cmd)
virtual int InternalDestroyTimer(int platformTimerId)
void HandleKeyEvent(bool down, int nChar, int metaState, int nRepCnt)
Handle key up/down events.
void HandleMotionEvent(int actionType, int actionId, int numPtrs, int *xPtr, int *yPtr, int *idPtr, int metaState)
Handle motion events.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Win32-specific internal timer methods.
static vtkAndroidRenderWindowInteractor * New()
Construct object so that light follows camera motion.
virtual void Initialize()
Initialize the event handler.
const char * GetKeySym(int keyCode)
used for converting keyCodes on Android
virtual void StartEventLoop()
This will start up the event loop and never return.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
const char ** KeyCodeToKeySymTable
virtual void Enable()
Enable/Disable interactions.
void TerminateApp(void)
Android specific application terminate, calls ClassExitMethod then calls PostQuitMessage(0) to termin...
virtual void SetAndroidApplication(struct android_app *app)
static void SetClassExitMethod(void(*f)(void *), void *arg)
Methods to set the default exit method for the class.
static void SetClassExitMethodArgDelete(void(*f)(void *))
~vtkAndroidRenderWindowInteractor()
virtual void ExitCallback()
These methods correspond to the the Exit, User and Pick callbacks.
int32_t HandleInput(AInputEvent *event)
struct android_app * AndroidApplication
a simple class to control print indentation
platform-independent render window interaction including picking and frame rate control.