00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImagingFactory.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 copyright notice for more information. 00013 00014 =========================================================================*/ 00019 #ifndef __vtkImagingFactory_h 00020 #define __vtkImagingFactory_h 00021 00022 #include "vtkObject.h" 00023 00024 class VTK_RENDERING_EXPORT vtkImagingFactory : public vtkObject 00025 { 00026 public: 00027 static vtkImagingFactory *New(); 00028 vtkTypeMacro(vtkImagingFactory,vtkObject); 00029 virtual void PrintSelf(ostream& os, vtkIndent indent); 00030 00033 static vtkObject* CreateInstance(const char* vtkclassname); 00034 00036 00038 static void SetUseMesaClasses(int use); 00039 static int GetUseMesaClasses(); 00041 00042 protected: 00043 vtkImagingFactory() {}; 00044 00045 static int UseMesaClasses; 00046 00047 private: 00048 vtkImagingFactory(const vtkImagingFactory&); // Not implemented. 00049 void operator=(const vtkImagingFactory&); // Not implemented. 00050 }; 00051 00052 #endif