VTK
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 "vtkRenderingSceneGraphModule.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkViewNode;
35 
36 class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeFactory :
37  public vtkObject
38 {
39 public:
40  static vtkViewNodeFactory* New();
41  vtkTypeMacro(vtkViewNodeFactory, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
48  void RegisterOverride(const char *name, vtkViewNode *(*func)());
49 
53  vtkViewNode *CreateNode(vtkObject *);
54 
58  vtkViewNode *CreateNode(const char *);
59 
60 protected:
63 
64 private:
65  vtkViewNodeFactory(const vtkViewNodeFactory&) = delete;
66  void operator=(const vtkViewNodeFactory&) = delete;
67 
68  class vtkInternals;
69  vtkInternals *Internals;
70 };
71 
72 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:40