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 =========================================================================*/
25 #ifndef vtkViewNodeFactory_h
26 #define vtkViewNodeFactory_h
27 
28 #include "vtkRenderingSceneGraphModule.h" // For export macro
29 #include "vtkObject.h"
30 
31 class vtkViewNode;
32 
33 class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeFactory :
34  public vtkObject
35 {
36 public:
37  static vtkViewNodeFactory* New();
38  vtkTypeMacro(vtkViewNodeFactory, vtkObject);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  void RegisterOverride(const char *name, vtkViewNode *(*func)());
46 
50  vtkViewNode *CreateNode(vtkObject *);
51 
55  vtkViewNode *CreateNode(const char *);
56 
57 protected:
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
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:53
vtkViewNodeFactory
factory that chooses vtkViewNodes to create
Definition: vtkViewNodeFactory.h:33
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewNode
a node within a VTK scene graph
Definition: vtkViewNode.h:37
vtkX3D::name
Definition: vtkX3D.h:219
vtkObject.h