VTK  9.0.1
vtkVtkJSViewNodeFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVtkJSViewNodeFactory.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkVtkJSViewNodeFactory_h
31 #define vtkVtkJSViewNodeFactory_h
32 
33 #include "vtkRenderingVtkJSModule.h" // For export macro
34 
35 #include "vtkViewNodeFactory.h"
36 
38 
39 class VTKRENDERINGVTKJS_EXPORT vtkVtkJSViewNodeFactory : public vtkViewNodeFactory
40 {
41 public:
42  static vtkVtkJSViewNodeFactory* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
50  void SetSerializer(vtkVtkJSSceneGraphSerializer*);
51  vtkGetObjectMacro(Serializer, vtkVtkJSSceneGraphSerializer);
53 
54 protected:
56  ~vtkVtkJSViewNodeFactory() override;
57 
59 
60 private:
62  void operator=(const vtkVtkJSViewNodeFactory&) = delete;
63 };
64 
65 #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:33
Converts elements of a VTK scene graph into vtk-js elements.
factory that chooses vtkViewNodes to create
vtkVtkJSSceneGraphSerializer * Serializer