VTK  9.0.1
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 =========================================================================*/
25 #ifndef vtkViewNodeFactory_h
26 #define vtkViewNodeFactory_h
27 
28 #include "vtkObject.h"
29 #include "vtkRenderingSceneGraphModule.h" // For export macro
30 
31 class vtkViewNode;
32 
33 class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeFactory : public vtkObject
34 {
35 public:
37  vtkTypeMacro(vtkViewNodeFactory, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  void RegisterOverride(const char* name, vtkViewNode* (*func)());
45 
50 
55  VTK_LEGACY(vtkViewNode* CreateNode(const char*));
56 
57 protected:
59  ~vtkViewNodeFactory() override;
60 
61 private:
62  vtkViewNodeFactory(const vtkViewNodeFactory&) = delete;
63  void operator=(const vtkViewNodeFactory&) = delete;
64 
65  class vtkInternals;
66  vtkInternals* Internals;
67 };
68 
69 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:54
factory that chooses vtkViewNodes to create
vtkViewNode * CreateNode(vtkObject *)
Creates and returns a vtkViewNode for the provided renderable.
vtkViewNode * CreateNode(const char *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkViewNodeFactory * New()
~vtkViewNodeFactory() override
void RegisterOverride(const char *name, vtkViewNode *(*func)())
Give a function pointer to a class that will manufacture a vtkViewNode when given a class name string...
a node within a VTK scene graph
Definition: vtkViewNode.h:38
@ name
Definition: vtkX3D.h:225