26 #ifndef vtkWebAssemblyRenderWindowInteractor_h
27 #define vtkWebAssemblyRenderWindowInteractor_h
29 #ifndef __EMSCRIPTEN__
30 #error "vtkWebAssemblyRenderWindowInteractor requires the Emscripten SDK"
34 #include "vtkRenderingUIModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
79 vtkGetStringMacro(CanvasSelector);
80 virtual void SetCanvasSelector(
const char*
value);
86 vtkGetMacro(ExpandCanvasToContainer,
bool);
87 vtkSetMacro(ExpandCanvasToContainer,
bool);
88 vtkBooleanMacro(ExpandCanvasToContainer,
bool);
95 vtkGetMacro(InstallHTMLResizeObserver,
bool);
96 vtkSetMacro(InstallHTMLResizeObserver,
bool);
97 vtkBooleanMacro(InstallHTMLResizeObserver,
bool);
112 void RegisterUICallbacks();
113 void UnRegisterUICallbacks();
116 void ProcessEvent(
int type,
const std::uint8_t* event);
134 char* CanvasSelector =
nullptr;
142 friend class vtkInternals;
144 std::shared_ptr<vtkInternals> Internals;
164 VTK_ABI_NAMESPACE_END
bool InstallHTMLResizeObserver
void vtkInitializeCanvasElement(const char *selector, bool applyStyle)
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
bool(* vtkEventProcessingFunc)(void *)
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
void vtkDestroyTimer(int timerId, bool isOneShot)
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.
void(* vtkUnRegisterInteractorFunc)(void *)
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).
int vtkCreateTimer(unsigned long duration, bool isOneShot, vtkTimerCallbackFunc callback, void *userData)
void(* vtkTimerCallbackFunc)(void *)
virtual void ProcessEvents()
Process all user-interaction, timer events and return.
void vtkStartEventLoopSync(vtkEventProcessingFunc spinOnceAndGetDone, vtkUnRegisterInteractorFunc unRegisterInteractor, void *arg)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int * vtkGetParentElementBoundingRectSize(const char *selector)
virtual void TerminateApp()
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden b...
bool ExpandCanvasToContainer
void vtkStartEventLoopAsync(vtkEventProcessingFunc spinOnceAndGetDone, vtkUnRegisterInteractorFunc unRegisterInteractor, void *arg)
Handles user interaction in web browsers.