VTK
dox/Testing/Rendering/vtkTestingObjectFactory.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTestingObjectFactory.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyrgight notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __vtkTestingObjectFactory_h
00016 #define __vtkTestingObjectFactory_h
00017 
00035 #include "vtkTestingRenderingModule.h" // For export macro
00036 //   #include "vtkTestingObjectFactory.h"
00037 //   vtkTestingObjectFactory* factory = vtkTestingObjectFactory::New();
00038 //   vtkObjectFactory::RegisterFactory(factory);
00039 // \endcode
00040 
00041 #include "vtkObjectFactory.h"
00042 
00043 #include "vtkTesting.h"            // Required for testing framework
00044 #include "vtkTestDriver.h"         // Required for testing framework
00045 #include "vtkTestingInteractor.h"  // Required for testing framework
00046 #include "vtkSmartPointer.h"       // Required for testing framework
00047 
00048 
00049 class VTKTESTINGRENDERING_EXPORT vtkTestingObjectFactory : public vtkObjectFactory
00050 {
00051 public:
00052   static vtkTestingObjectFactory* New();
00053   vtkTypeMacro(vtkTestingObjectFactory,vtkObjectFactory);
00054   virtual const char* GetVTKSourceVersion();
00055   const char* GetDescription() { return "Factory for overrides during testing"; }
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00058 protected:
00061   vtkTestingObjectFactory();
00062 
00063 private:
00064   vtkTestingObjectFactory(const vtkTestingObjectFactory&); // Not implemented
00065   void operator=(const vtkTestingObjectFactory&);          // Not implemented
00066 };
00067 #endif