VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTestingObjectFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTestingObjectFactory.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 copyrgight notice for more information.
13 
14 =========================================================================*/
15 #ifndef __vtkTestingObjectFactory_h
16 #define __vtkTestingObjectFactory_h
17 
35 #include "vtkTestingRenderingModule.h" // For export macro
36 // #include "vtkTestingObjectFactory.h"
37 // vtkTestingObjectFactory* factory = vtkTestingObjectFactory::New();
38 // vtkObjectFactory::RegisterFactory(factory);
39 // \endcode
40 
41 #include "vtkObjectFactory.h"
42 
43 #include "vtkTesting.h" // Required for testing framework
44 #include "vtkTestDriver.h" // Required for testing framework
45 #include "vtkTestingInteractor.h" // Required for testing framework
46 #include "vtkSmartPointer.h" // Required for testing framework
47 
48 
49 class VTKTESTINGRENDERING_EXPORT vtkTestingObjectFactory : public vtkObjectFactory
50 {
51 public:
52  static vtkTestingObjectFactory* New();
53  vtkTypeMacro(vtkTestingObjectFactory,vtkObjectFactory);
54  virtual const char* GetVTKSourceVersion();
55  const char* GetDescription() { return "Factory for overrides during testing"; }
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
58 protected:
61  vtkTestingObjectFactory();
62 
63 private:
64  vtkTestingObjectFactory(const vtkTestingObjectFactory&); // Not implemented
65  void operator=(const vtkTestingObjectFactory&); // Not implemented
66 };
67 #endif