VTK  9.5.20250527
Public Member Functions | Public Attributes | List of all members
vtkStandaloneSession Class Reference

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
 

Detailed Description

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.

Note
This class is part of the WebAssembly module internals and is not exported for general use.
See also
vtkRemoteSession

Definition at line 29 of file vtkStandaloneSession.h.

Constructor & Destructor Documentation

◆ vtkStandaloneSession()

vtkStandaloneSession::vtkStandaloneSession ( )

◆ ~vtkStandaloneSession()

vtkStandaloneSession::~vtkStandaloneSession ( )

Member Function Documentation

◆ Create()

vtkTypeUInt32 vtkStandaloneSession::Create ( const std::string &  className)

Create an object of type className.

◆ Destroy()

void vtkStandaloneSession::Destroy ( vtkTypeUInt32  object)

Destroy a VTKObject.

◆ Set()

void vtkStandaloneSession::Set ( vtkTypeUInt32  object,
emscripten::val  properties 
)

Set properties of a VTKObject.

◆ Get()

emscripten::val vtkStandaloneSession::Get ( vtkTypeUInt32  object)

Get all properties of a VTKObject.

◆ Invoke()

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.

◆ Observe()

unsigned long vtkStandaloneSession::Observe ( vtkTypeUInt32  object,
const std::string &  eventName,
emscripten::val  jsFunction 
)

Add an observer to a VTKObject for a specific event.

◆ UnObserve()

bool vtkStandaloneSession::UnObserve ( vtkTypeUInt32  object,
unsigned long  tag 
)

Remove an observer from a VTKObject.

Member Data Documentation

◆ Session

vtkSession vtkStandaloneSession::Session

Definition at line 72 of file vtkStandaloneSession.h.


The documentation for this class was generated from the following file: