VTK  9.6.20260325
vtkStandaloneSession.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17
18#ifndef vtkStandaloneSession_h
19#define vtkStandaloneSession_h
20
21#include "vtkType.h" // for vtkTypeUInt32
22#include "vtkWebAssemblySessionModule.h" // for no export macro
23
24#include <emscripten/val.h> // for emscripten::val
25
26VTK_ABI_NAMESPACE_BEGIN
27
28typedef struct vtkSessionImpl* vtkSession;
29class VTKWEBASSEMBLYSESSION_EXPORT vtkStandaloneSession
30{
31public:
34
38 vtkTypeUInt32 Create(const std::string& className);
39
43 bool Destroy(vtkTypeUInt32 object);
44
48 bool Set(vtkTypeUInt32 object, emscripten::val properties);
49
53 emscripten::val Get(vtkTypeUInt32 object);
54
59 emscripten::val Invoke(vtkTypeUInt32 object, const std::string& methodName, emscripten::val args);
60
64 unsigned long Observe(
65 vtkTypeUInt32 object, const std::string& eventName, emscripten::val jsFunction);
66
70 bool UnObserve(vtkTypeUInt32 object, unsigned long tag);
71
75 bool UnObserveAll(vtkTypeUInt32 object);
76
81
87
93
99 std::string PrintObjectToString(vtkTypeUInt32 object);
100
105
110 void SetDeserializerLogVerbosity(const std::string& verbosityLevel);
111
116 void SetInvokerLogVerbosity(const std::string& verbosityLevel);
117
122 void SetObjectManagerLogVerbosity(const std::string& verbosityLevel);
123
128 void SetSerializerLogVerbosity(const std::string& verbosityLevel);
129
131};
132
133VTK_ABI_NAMESPACE_END
134#endif
bool UnObserveAll(vtkTypeUInt32 object)
Remove all observers from a specific object.
void SetInvokerLogVerbosity(const std::string &verbosityLevel)
Sets the verbosity level for the invoker log.
void SetSerializerLogVerbosity(const std::string &verbosityLevel)
Sets the verbosity level for the serializer log.
vtkTypeUInt32 Create(const std::string &className)
Create an object of type className.
bool Destroy(vtkTypeUInt32 object)
Destroy a VTKObject.
emscripten::val Get(vtkTypeUInt32 object)
Get all properties of a VTKObject.
void SetDeserializerLogVerbosity(const std::string &verbosityLevel)
Sets the verbosity level for the deserializer log.
std::size_t GetTotalBlobMemoryUsage()
Retrieves the total memory usage of all blobs.
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.
std::string PrintObjectToString(vtkTypeUInt32 object)
Prints information about a VTK object to a string.
std::size_t GetTotalVTKDataObjectMemoryUsage()
Retrieves the total memory usage of all VTK data objects.
bool Set(vtkTypeUInt32 object, emscripten::val properties)
Set properties of a VTKObject.
bool UnObserve(vtkTypeUInt32 object, unsigned long tag)
Remove an observer from a VTKObject.
void SetObjectManagerLogVerbosity(const std::string &verbosityLevel)
Sets the verbosity level for the object manager log.
void UnObserveAllObjects()
Remove all observers from all objects in the session.
unsigned long Observe(vtkTypeUInt32 object, const std::string &eventName, emscripten::val jsFunction)
Add an observer to a VTKObject for a specific event.
void PrintSceneManagerInformation()
Prints information about the scene manager.
struct vtkSessionImpl * vtkSession
Definition vtkSession.h:91
struct vtkSessionImpl * vtkSession