VTK  9.2.6
vtkViewNodeFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkViewNodeFactory.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 =========================================================================*/
28 #ifndef vtkViewNodeFactory_h
29 #define vtkViewNodeFactory_h
30 
31 #include "vtkObject.h"
32 #include "vtkRenderingSceneGraphModule.h" // For export macro
33 
34 class vtkViewNode;
35 
36 class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeFactory : public vtkObject
37 {
38 public:
39  static vtkViewNodeFactory* New();
40  vtkTypeMacro(vtkViewNodeFactory, vtkObject);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void RegisterOverride(const char* name, vtkViewNode* (*func)());
48 
52  vtkViewNode* CreateNode(vtkObject*);
53 
54 protected:
56  ~vtkViewNodeFactory() override;
57 
58 private:
59  vtkViewNodeFactory(const vtkViewNodeFactory&) = delete;
60  void operator=(const vtkViewNodeFactory&) = delete;
61 
62  class vtkInternals;
63  vtkInternals* Internals;
64 };
65 
66 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
factory that chooses vtkViewNodes to create
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
a node within a VTK scene graph
Definition: vtkViewNode.h:41