|
VTK
9.6.20260205
|
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. | |
| bool | Destroy (vtkTypeUInt32 object) |
| Destroy a VTKObject. | |
| bool | 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. | |
| std::size_t | GetTotalBlobMemoryUsage () |
| Retrieves the total memory usage of all blobs. | |
| std::size_t | GetTotalVTKDataObjectMemoryUsage () |
| Retrieves the total memory usage of all VTK data objects. | |
| std::string | PrintObjectToString (vtkTypeUInt32 object) |
| Prints information about a VTK object to a string. | |
| void | PrintSceneManagerInformation () |
| Prints information about the scene manager. | |
| void | SetDeserializerLogVerbosity (const std::string &verbosityLevel) |
| Sets the verbosity level for the deserializer log. | |
| void | SetInvokerLogVerbosity (const std::string &verbosityLevel) |
| Sets the verbosity level for the invoker log. | |
| void | SetObjectManagerLogVerbosity (const std::string &verbosityLevel) |
| Sets the verbosity level for the object manager log. | |
| void | SetSerializerLogVerbosity (const std::string &verbosityLevel) |
| Sets the verbosity level for the serializer log. | |
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.
| bool vtkStandaloneSession::Destroy | ( | vtkTypeUInt32 | object | ) |
Destroy a VTKObject.
| bool 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.
| std::size_t vtkStandaloneSession::GetTotalBlobMemoryUsage | ( | ) |
Retrieves the total memory usage of all blobs.
| std::size_t vtkStandaloneSession::GetTotalVTKDataObjectMemoryUsage | ( | ) |
Retrieves the total memory usage of all VTK data objects.
| std::string vtkStandaloneSession::PrintObjectToString | ( | vtkTypeUInt32 | object | ) |
Prints information about a VTK object to a string.
| object | The identifier of the VTK object. |
| void vtkStandaloneSession::PrintSceneManagerInformation | ( | ) |
Prints information about the scene manager.
| void vtkStandaloneSession::SetDeserializerLogVerbosity | ( | const std::string & | verbosityLevel | ) |
Sets the verbosity level for the deserializer log.
| verbosityLevel | The desired verbosity level. |
| void vtkStandaloneSession::SetInvokerLogVerbosity | ( | const std::string & | verbosityLevel | ) |
Sets the verbosity level for the invoker log.
| verbosityLevel | The desired verbosity level. |
| void vtkStandaloneSession::SetObjectManagerLogVerbosity | ( | const std::string & | verbosityLevel | ) |
Sets the verbosity level for the object manager log.
| verbosityLevel | The desired verbosity level. |
| void vtkStandaloneSession::SetSerializerLogVerbosity | ( | const std::string & | verbosityLevel | ) |
Sets the verbosity level for the serializer log.
| verbosityLevel | The desired verbosity level. |
| vtkSession vtkStandaloneSession::Session |
Definition at line 120 of file vtkStandaloneSession.h.