18 #ifndef vtkStandaloneSession_h
19 #define vtkStandaloneSession_h
22 #include "vtkWebAssemblySessionModule.h"
24 #include <emscripten/val.h>
26 VTK_ABI_NAMESPACE_BEGIN
43 bool Destroy(vtkTypeUInt32
object);
48 bool 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);
64 unsigned long Observe(
65 vtkTypeUInt32
object,
const std::string& eventName, emscripten::val jsFunction);
70 bool UnObserve(vtkTypeUInt32
object,
unsigned long tag);
75 bool UnObserveAll(vtkTypeUInt32
object);
80 void UnObserveAllObjects();
86 std::size_t GetTotalBlobMemoryUsage();
92 std::size_t GetTotalVTKDataObjectMemoryUsage();
99 std::string PrintObjectToString(vtkTypeUInt32
object);
104 void PrintSceneManagerInformation();
110 void SetDeserializerLogVerbosity(
const std::string& verbosityLevel);
116 void SetInvokerLogVerbosity(
const std::string& verbosityLevel);
122 void SetObjectManagerLogVerbosity(
const std::string& verbosityLevel);
128 void SetSerializerLogVerbosity(
const std::string& verbosityLevel);
133 VTK_ABI_NAMESPACE_END
struct vtkSessionImpl * vtkSession
A standalone session for managing VTK objects in a WebAssembly environment.
struct vtkSessionImpl * vtkSession