20#ifndef vtkWebAssemblyRenderWindowInteractor_h
21#define vtkWebAssemblyRenderWindowInteractor_h
24#error "vtkWebAssemblyRenderWindowInteractor requires the Emscripten SDK"
28#include "vtkRenderingUIModule.h"
32VTK_ABI_NAMESPACE_BEGIN
73 vtkGetStringMacro(CanvasSelector);
80 vtkGetMacro(ExpandCanvasToContainer,
bool);
81 vtkSetMacro(ExpandCanvasToContainer,
bool);
82 vtkBooleanMacro(ExpandCanvasToContainer,
bool);
89 vtkGetMacro(InstallHTMLResizeObserver,
bool);
90 vtkSetMacro(InstallHTMLResizeObserver,
bool);
91 vtkBooleanMacro(InstallHTMLResizeObserver,
bool);
128 char* CanvasSelector =
nullptr;
136 friend class vtkInternals;
138 std::shared_ptr<vtkInternals> Internals;
a simple class to control print indentation
platform-independent render window interaction including picking and frame rate control.
Handles user interaction in web browsers.
bool InstallHTMLResizeObserver
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWebAssemblyRenderWindowInteractor()
void ProcessEvents() override
Process all user-interaction, timer events and return.
virtual void SetCanvasSelector(const char *value)
void StartEventLoop() override
This will start up the event loop without blocking the main thread.
void ExitCallback() override
These methods correspond to the Exit, User and Pick callbacks.
int InternalDestroyTimer(int platformTimerId) override
Internal methods for creating and destroying timers that must be implemented by subclasses.
bool ExpandCanvasToContainer
void Initialize() override
Initialize the event handler.
void ProcessEvent(int type, const std::uint8_t *event)
void RegisterUICallbacks()
Register/UnRegister callback functions for all recognized events on the document.
~vtkWebAssemblyRenderWindowInteractor() override
void UnRegisterUICallbacks()
Register/UnRegister callback functions for all recognized events on the document.
static vtkWebAssemblyRenderWindowInteractor * New()
Construct object so that light follows camera motion.
void TerminateApp() override
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden b...
int InternalCreateTimer(int timerId, int timerType, unsigned long duration) override
Internal methods for creating and destroying timers that must be implemented by subclasses.
int vtkCreateTimer(unsigned long duration, bool isOneShot, vtkTimerCallbackFunc callback, void *userData)
void vtkInitializeCanvasElement(const char *selector, bool applyStyle)
void(* vtkTimerCallbackFunc)(void *)
void vtkDestroyTimer(int timerId, bool isOneShot)
int * vtkGetParentElementBoundingRectSize(const char *selector)