30 #ifndef vtkAndroidRenderWindowInteractor_h 31 #define vtkAndroidRenderWindowInteractor_h 33 #include "vtkRenderingOpenGL2Module.h" 82 static void SetClassExitMethod(
void (*f)(
void *),
void *arg);
83 static void SetClassExitMethodArgDelete(
void (*f)(
void *));
93 { this->AndroidApplication = app; };
98 void HandleKeyEvent(
bool down,
int nChar,
int metaState,
int nRepCnt);
103 void HandleMotionEvent(
int actionType,
int actionId,
int numPtrs,
104 int *xPtr,
int *yPtr,
int *idPtr,
int metaState);
111 void HandleCommand(int32_t cmd);
112 int32_t HandleInput(AInputEvent* event);
133 static void (*ClassExitMethod)(
void *);
134 static void (*ClassExitMethodArgDelete)(
void *);
virtual void Enable()
Enable/Disable interactions.
virtual char * GetKeySym()
Set/get the key symbol for the key that was pressed.
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
implements Win32 specific functions required by vtkRenderWindowInteractor.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
const char ** KeyCodeToKeySymTable
virtual void SetAndroidApplication(struct android_app *app)
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.
a simple class to control print indentation
virtual void ExitCallback()
These methods correspond to the Exit, User and Pick callbacks.
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
struct android_app * AndroidApplication
static void * ClassExitMethodArg
Class variables so an exit method can be defined for this class (used to set different exit methods f...