VTK
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 
50 {
51 public:
52  static vtkTestingObjectFactory* New();
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:
62 
63 private:
64  vtkTestingObjectFactory(const vtkTestingObjectFactory&); // Not implemented
65  void operator=(const vtkTestingObjectFactory&); // Not implemented
66 };
67 #endif
VTKTESTINGRENDERING_EXPORT
#define VTKTESTINGRENDERING_EXPORT
Definition: vtkTestingRenderingModule.h:15
vtkTesting.h
vtkObject::New
static vtkObject * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObjectFactory.h
vtkTestDriver.h
vtkObjectFactory
abstract base class for vtkObjectFactories
Definition: vtkObjectFactory.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkTestingInteractor.h
vtkTestingObjectFactory
vtkTestingObjectFactory()
vtkObjectFactory::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkObjectFactory::GetDescription
virtual const char * GetDescription()=0
vtkTestingObjectFactory
Object overrides used during testing.
vtkObjectFactory::GetVTKSourceVersion
virtual const char * GetVTKSourceVersion()=0
vtkTestingRenderingModule.h