18#ifndef vtkStandaloneSession_h
19#define vtkStandaloneSession_h
22#include "vtkWebAssemblySessionModule.h"
24#include <emscripten/val.h>
26VTK_ABI_NAMESPACE_BEGIN
38 vtkTypeUInt32
Create(
const std::string& className);
48 void Set(vtkTypeUInt32
object, emscripten::val properties);
53 emscripten::val
Get(vtkTypeUInt32
object);
59 emscripten::val
Invoke(vtkTypeUInt32
object,
const std::string& methodName, emscripten::val args);
65 vtkTypeUInt32
object,
const std::string& eventName, emscripten::val jsFunction);
70 bool UnObserve(vtkTypeUInt32
object,
unsigned long tag);
A standalone session for managing VTK objects in a WebAssembly environment.
vtkTypeUInt32 Create(const std::string &className)
Create an object of type className.
emscripten::val Get(vtkTypeUInt32 object)
Get all properties of a VTKObject.
void Set(vtkTypeUInt32 object, emscripten::val properties)
Set properties of a VTKObject.
emscripten::val Invoke(vtkTypeUInt32 object, const std::string &methodName, emscripten::val args)
Invoke a function methodName on object with args and return the result in a VTKJson.
bool UnObserve(vtkTypeUInt32 object, unsigned long tag)
Remove an observer from a VTKObject.
unsigned long Observe(vtkTypeUInt32 object, const std::string &eventName, emscripten::val jsFunction)
Add an observer to a VTKObject for a specific event.
void Destroy(vtkTypeUInt32 object)
Destroy a VTKObject.
struct vtkSessionImpl * vtkSession