VTK
|
implements Win32 specific functions required by vtkRenderWindowInteractor. More...
#include <vtkAndroidRenderWindowInteractor.h>
Public Types | |
typedef vtkRenderWindowInteractor | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAndroidRenderWindowInteractor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
void | TerminateApp (void) |
virtual void | ExitCallback () |
virtual void | SetAndroidApplication (struct android_app *app) |
void | HandleKeyEvent (bool down, int nChar, int metaState, int nRepCnt) |
const char * | GetKeySym (int keyCode) |
void | HandleCommand (int32_t cmd) |
int32_t | HandleInput (AInputEvent *event) |
virtual void | Enable () |
virtual void | Disable () |
void | HandleMotionEvent (int action, int eventPointer, int numPtrs, int *xPtr, int *yPtr, int *idPtr, int metaState) |
Static Public Member Functions | |
static vtkAndroidRenderWindowInteractor * | New () |
static int | IsTypeOf (const char *type) |
static vtkAndroidRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
static void | SetClassExitMethod (void(*f)(void *), void *arg) |
static void | SetClassExitMethodArgDelete (void(*f)(void *)) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkAndroidRenderWindowInteractor () | |
~vtkAndroidRenderWindowInteractor () | |
virtual void | StartEventLoop () |
virtual int | InternalCreateTimer (int timerId, int timerType, unsigned long duration) |
virtual int | InternalDestroyTimer (int platformTimerId) |
Protected Attributes | |
int | MouseInWindow |
int | StartedMessageLoop |
struct android_app * | AndroidApplication |
const char ** | KeyCodeToKeySymTable |
bool | Done |
Static Protected Attributes | |
static void(* | ClassExitMethod )(void *) |
static void(* | ClassExitMethodArgDelete )(void *) |
static void * | ClassExitMethodArg |
implements Win32 specific functions required by vtkRenderWindowInteractor.
By default the interactor installs a MessageProc callback which intercepts windows' messages to the window and controls interactions by routing them to the InteractoStyle classes. MFC or BCB programs can prevent this and instead directly route any mouse/key messages into the event bindings by setting InstallMessageProc to false. This provides a minimal "Mapped" mode of interaction
Definition at line 43 of file vtkAndroidRenderWindowInteractor.h.
Reimplemented from vtkRenderWindowInteractor.
Definition at line 49 of file vtkAndroidRenderWindowInteractor.h.
static vtkAndroidRenderWindowInteractor* vtkAndroidRenderWindowInteractor::New | ( | ) | [static] |
Construct object so that light follows camera motion.
Reimplemented from vtkRenderWindowInteractor.
static int vtkAndroidRenderWindowInteractor::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkRenderWindowInteractor.
virtual int vtkAndroidRenderWindowInteractor::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkRenderWindowInteractor.
static vtkAndroidRenderWindowInteractor* vtkAndroidRenderWindowInteractor::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkRenderWindowInteractor.
virtual vtkObjectBase* vtkAndroidRenderWindowInteractor::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented from vtkRenderWindowInteractor.
void vtkAndroidRenderWindowInteractor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkRenderWindowInteractor.
virtual void vtkAndroidRenderWindowInteractor::Initialize | ( | ) | [virtual] |
Initialize the event handler
Reimplemented from vtkRenderWindowInteractor.
virtual void vtkAndroidRenderWindowInteractor::Enable | ( | ) | [virtual] |
Enable/Disable interactions. By default interactors are enabled when initialized. Initialize() must be called prior to enabling/disabling interaction. These methods are used when a window/widget is being shared by multiple renderers and interactors. This allows a "modal" display where one interactor is active when its data is to be displayed and all other interactors associated with the widget are disabled when their data is not displayed.
Reimplemented from vtkRenderWindowInteractor.
virtual void vtkAndroidRenderWindowInteractor::Disable | ( | ) | [virtual] |
Enable/Disable interactions. By default interactors are enabled when initialized. Initialize() must be called prior to enabling/disabling interaction. These methods are used when a window/widget is being shared by multiple renderers and interactors. This allows a "modal" display where one interactor is active when its data is to be displayed and all other interactors associated with the widget are disabled when their data is not displayed.
Reimplemented from vtkRenderWindowInteractor.
void vtkAndroidRenderWindowInteractor::TerminateApp | ( | void | ) | [virtual] |
Android specific application terminate, calls ClassExitMethod then calls PostQuitMessage(0) to terminate the application. An application can Specify ExitMethod for alternative behavior (i.e. suppression of keyboard exit)
Reimplemented from vtkRenderWindowInteractor.
static void vtkAndroidRenderWindowInteractor::SetClassExitMethod | ( | void(*)(void *) | f, |
void * | arg | ||
) | [static] |
Methods to set the default exit method for the class. This method is only used if no instance level ExitMethod has been defined. It is provided as a means to control how an interactor is exited given the various language bindings (tcl, Win32, etc.).
static void vtkAndroidRenderWindowInteractor::SetClassExitMethodArgDelete | ( | void(*)(void *) | f | ) | [static] |
Methods to set the default exit method for the class. This method is only used if no instance level ExitMethod has been defined. It is provided as a means to control how an interactor is exited given the various language bindings (tcl, Win32, etc.).
virtual void vtkAndroidRenderWindowInteractor::ExitCallback | ( | ) | [virtual] |
These methods correspond to the the Exit, User and Pick callbacks. They allow for the Style to invoke them.
Reimplemented from vtkRenderWindowInteractor.
virtual void vtkAndroidRenderWindowInteractor::SetAndroidApplication | ( | struct android_app * | app | ) | [inline, virtual] |
Definition at line 86 of file vtkAndroidRenderWindowInteractor.h.
void vtkAndroidRenderWindowInteractor::HandleKeyEvent | ( | bool | down, |
int | nChar, | ||
int | metaState, | ||
int | nRepCnt | ||
) |
Handle key up/down events
void vtkAndroidRenderWindowInteractor::HandleMotionEvent | ( | int | action, |
int | eventPointer, | ||
int | numPtrs, | ||
int * | xPtr, | ||
int * | yPtr, | ||
int * | idPtr, | ||
int | metaState | ||
) |
Handle motion events
const char* vtkAndroidRenderWindowInteractor::GetKeySym | ( | int | keyCode | ) |
used for converting keyCodes on Android
void vtkAndroidRenderWindowInteractor::HandleCommand | ( | int32_t | cmd | ) |
int32_t vtkAndroidRenderWindowInteractor::HandleInput | ( | AInputEvent * | event | ) |
virtual int vtkAndroidRenderWindowInteractor::InternalCreateTimer | ( | int | timerId, |
int | timerType, | ||
unsigned long | duration | ||
) | [protected, virtual] |
Win32-specific internal timer methods. See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
virtual int vtkAndroidRenderWindowInteractor::InternalDestroyTimer | ( | int | platformTimerId | ) | [protected, virtual] |
Win32-specific internal timer methods. See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
virtual void vtkAndroidRenderWindowInteractor::StartEventLoop | ( | ) | [protected, virtual] |
This will start up the event loop and never return. If you call this method it will loop processing events until the application is exited.
Reimplemented from vtkRenderWindowInteractor.
int vtkAndroidRenderWindowInteractor::MouseInWindow [protected] |
Definition at line 109 of file vtkAndroidRenderWindowInteractor.h.
Definition at line 110 of file vtkAndroidRenderWindowInteractor.h.
struct android_app* vtkAndroidRenderWindowInteractor::AndroidApplication [protected] |
Definition at line 112 of file vtkAndroidRenderWindowInteractor.h.
const char** vtkAndroidRenderWindowInteractor::KeyCodeToKeySymTable [protected] |
Definition at line 113 of file vtkAndroidRenderWindowInteractor.h.
bool vtkAndroidRenderWindowInteractor::Done [protected] |
Definition at line 115 of file vtkAndroidRenderWindowInteractor.h.
void(* vtkAndroidRenderWindowInteractor::ClassExitMethod)(void *) [static, protected] |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. tcl, java, Win32)
Definition at line 121 of file vtkAndroidRenderWindowInteractor.h.
void(* vtkAndroidRenderWindowInteractor::ClassExitMethodArgDelete)(void *) [static, protected] |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. tcl, java, Win32)
Definition at line 122 of file vtkAndroidRenderWindowInteractor.h.
void* vtkAndroidRenderWindowInteractor::ClassExitMethodArg [static, protected] |
Class variables so an exit method can be defined for this class (used to set different exit methods for various language bindings, i.e. tcl, java, Win32)
Definition at line 123 of file vtkAndroidRenderWindowInteractor.h.