VTK  9.4.20250102
vtkWasmSceneManager.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
16#ifndef vtkWasmSceneManager_h
17#define vtkWasmSceneManager_h
18
19#include "vtkObjectManager.h"
20
21#include "vtkSerializationManagerModule.h" // for export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24
25class VTKSERIALIZATIONMANAGER_EXPORT vtkWasmSceneManager : public vtkObjectManager
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
32 bool Initialize() override;
33
42 bool SetSize(vtkTypeUInt32 identifier, int width, int height);
43
50 bool Render(vtkTypeUInt32 identifier);
51
58 bool ResetCamera(vtkTypeUInt32 identifier);
59
66 bool StartEventLoop(vtkTypeUInt32 identifier);
67
74 bool StopEventLoop(vtkTypeUInt32 identifier);
75
76 typedef void (*ObserverCallbackF)(vtkTypeUInt32, const char*);
77
85 unsigned long AddObserver(
86 vtkTypeUInt32 identifier, std::string eventName, ObserverCallbackF callback);
87
93 bool RemoveObserver(vtkTypeUInt32 identifier, unsigned long tag);
94
95protected:
98
99private:
101 void operator=(const vtkWasmSceneManager&) = delete;
102};
103VTK_ABI_NAMESPACE_END
104#endif
a simple class to control print indentation
Definition vtkIndent.h:108
vtkObjectManager maintains internal instances of vtkSerializer and a vtkDeserializer to serialize and...
vtkWasmSceneManager provides additional functionality that relates to a vtkRenderWindow and user inte...
bool StopEventLoop(vtkTypeUInt32 identifier)
Stop event loop of the vtkRenderWindowInteractor object at identifier.
bool Initialize() override
Loads the default (de)serialization handlers and constructors for VTK classes.
bool SetSize(vtkTypeUInt32 identifier, int width, int height)
Set the size of the vtkRenderWindow object at identifier to the supplied dimesions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkWasmSceneManager() override
static vtkWasmSceneManager * New()
bool RemoveObserver(vtkTypeUInt32 identifier, unsigned long tag)
Stop observing the object at identifier.
unsigned long AddObserver(vtkTypeUInt32 identifier, std::string eventName, ObserverCallbackF callback)
Observes eventName event emitted by an object registered at identifier and invokes callback with the ...
bool StartEventLoop(vtkTypeUInt32 identifier)
Start event loop of the vtkRenderWindowInteractor object at identifier.
bool ResetCamera(vtkTypeUInt32 identifier)
Reset the active camera of the vtkRenderer object at identifier.
bool Render(vtkTypeUInt32 identifier)
Render the vtkRenderWindow object at identifier.