21 #ifndef vtkWebAssemblyHardwareWindow_h
22 #define vtkWebAssemblyHardwareWindow_h
24 #if !defined(__EMSCRIPTEN__)
25 #error "vtkWebAssemblyHardwareWindow cannot be built without emscripten!"
30 #include "vtkRenderingUIModule.h"
33 VTK_ABI_NAMESPACE_BEGIN
54 void SetSize(
int,
int)
override;
73 void* GetGenericWindowId() override;
74 void* GetGenericDrawable() override;
82 void HideCursor() override;
83 void ShowCursor() override;
89 vtkGetStringMacro(CanvasSelector);
90 vtkSetStringMacro(CanvasSelector);
96 void SetShowWindow(
bool)
override {}
105 void* WindowId =
nullptr;
106 char* CanvasSelector =
nullptr;
113 #define vtkWebAssemblyHardwareWindow_OVERRIDE_ATTRIBUTES \
114 vtkWebAssemblyHardwareWindow::CreateOverrideAttributes()
115 VTK_ABI_NAMESPACE_END
create a window for renderers to draw into
Attribute for vtkObjectFactory overrides.
WebAssembly hardware window that interfaces with HTML5 canvas.
static vtkHardwareWindow * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
a simple class to control print indentation
virtual int * GetPosition()
Get the position (x and y) of the rendering window in screen coordinates (in pixels).
#define VTK_SIZEHINT(...)
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
void SetSize(int a[2]) override
Set the size of the window in pixels.