ParaView
vtkPVInstantiator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkPVInstantiator_h
26 #define vtkPVInstantiator_h
27 
28 #include "vtkObject.h"
29 #include "vtkPVCommonModule.h" // needed for export macro
30 
31 class VTKPVCOMMON_EXPORT vtkPVInstantiator : public vtkObject
32 {
33 public:
34  static vtkPVInstantiator* New();
35  vtkTypeMacro(vtkPVInstantiator, vtkObject);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
43  VTK_NEWINSTANCE
44  static vtkObject* CreateInstance(const char* className);
45 
46 protected:
49 
50 private:
51  vtkPVInstantiator(const vtkPVInstantiator&) VTK_DELETE_FUNCTION;
52  void operator=(const vtkPVInstantiator&) VTK_DELETE_FUNCTION;
53 };
54 
55 #endif
similar to vtkInstantiator except that it uses ParaView's client-server streams to create new classes...