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
34class vtkViewNode;
35
36class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeFactory :
37 public vtkObject
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
48 void RegisterOverride(const char *name, vtkViewNode *(*func)());
49
54
58 vtkViewNode *CreateNode(const char *);
59
60protected:
63
64private:
65 vtkViewNodeFactory(const vtkViewNodeFactory&) VTK_DELETE_FUNCTION;
66 void operator=(const vtkViewNodeFactory&) VTK_DELETE_FUNCTION;
67
68 class vtkInternals;
69 vtkInternals *Internals;
70};
71
72#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
factory that chooses vtkViewNodes to create
vtkViewNode * CreateNode(const char *)
Creates and returns a vtkViewNode for the provided class name.
vtkViewNode * CreateNode(vtkObject *)
Creates and returns a vtkViewNode for the provided renderable.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkViewNodeFactory * New()
void RegisterOverride(const char *name, vtkViewNode *(*func)())
Give a functin 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:42
@ name
Definition: vtkX3D.h:219