VTK
9.5.20250527
|
A standalone session for managing VTK objects in a WebAssembly environment. More...
#include <vtkStandaloneSession.h>
Public Member Functions | |
vtkStandaloneSession () | |
~vtkStandaloneSession () | |
vtkTypeUInt32 | Create (const std::string &className) |
Create an object of type className . | |
void | Destroy (vtkTypeUInt32 object) |
Destroy a VTKObject. | |
void | Set (vtkTypeUInt32 object, emscripten::val properties) |
Set properties of a VTKObject. | |
emscripten::val | Get (vtkTypeUInt32 object) |
Get all 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. | |
unsigned long | Observe (vtkTypeUInt32 object, const std::string &eventName, emscripten::val jsFunction) |
Add an observer to a VTKObject for a specific event. | |
bool | UnObserve (vtkTypeUInt32 object, unsigned long tag) |
Remove an observer from a VTKObject. | |
Public Attributes | |
vtkSession | Session |
A standalone session for managing VTK objects in a WebAssembly environment.
This class provides an interface for creating, destroying, and interacting with VTK objects in a WebAssembly context. It allows setting and retrieving properties, invoking methods, and managing event observers for VTK objects.
This class is designed to work with Emscripten through JavaScript bindings.
Definition at line 29 of file vtkStandaloneSession.h.
vtkStandaloneSession::vtkStandaloneSession | ( | ) |
vtkStandaloneSession::~vtkStandaloneSession | ( | ) |
vtkTypeUInt32 vtkStandaloneSession::Create | ( | const std::string & | className | ) |
Create an object of type className
.
void vtkStandaloneSession::Destroy | ( | vtkTypeUInt32 | object | ) |
Destroy a VTKObject.
void vtkStandaloneSession::Set | ( | vtkTypeUInt32 | object, |
emscripten::val | properties | ||
) |
Set properties of a VTKObject.
emscripten::val vtkStandaloneSession::Get | ( | vtkTypeUInt32 | object | ) |
Get all properties of a VTKObject.
emscripten::val vtkStandaloneSession::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.
unsigned long vtkStandaloneSession::Observe | ( | vtkTypeUInt32 | object, |
const std::string & | eventName, | ||
emscripten::val | jsFunction | ||
) |
Add an observer to a VTKObject for a specific event.
bool vtkStandaloneSession::UnObserve | ( | vtkTypeUInt32 | object, |
unsigned long | tag | ||
) |
Remove an observer from a VTKObject.
vtkSession vtkStandaloneSession::Session |
Definition at line 72 of file vtkStandaloneSession.h.