VTK  9.3.1
vtkVtkJSViewNodeFactory.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
18 #ifndef vtkVtkJSViewNodeFactory_h
19 #define vtkVtkJSViewNodeFactory_h
20 
21 #include "vtkRenderingVtkJSModule.h" // For export macro
22 
23 #include "vtkViewNodeFactory.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
27 
28 class VTKRENDERINGVTKJS_EXPORT vtkVtkJSViewNodeFactory : public vtkViewNodeFactory
29 {
30 public:
31  static vtkVtkJSViewNodeFactory* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  void SetSerializer(vtkVtkJSSceneGraphSerializer*);
40  vtkGetObjectMacro(Serializer, vtkVtkJSSceneGraphSerializer);
42 
43 protected:
45  ~vtkVtkJSViewNodeFactory() override;
46 
48 
49 private:
51  void operator=(const vtkVtkJSViewNodeFactory&) = delete;
52 };
53 
54 VTK_ABI_NAMESPACE_END
55 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkViewNodeFactory * New()
Constructs view nodes for traversing a scene for vtk-js.
a simple class to control print indentation
Definition: vtkIndent.h:28
Converts elements of a VTK scene graph into vtk-js elements.
factory that chooses vtkViewNodes to create
vtkVtkJSSceneGraphSerializer * Serializer