VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGraphicsFactory.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 =========================================================================*/ 00025 #ifndef vtkGraphicsFactory_h 00026 #define vtkGraphicsFactory_h 00027 00028 #include "vtkRenderingCoreModule.h" // For export macro 00029 #include "vtkObject.h" 00030 00031 class VTKRENDERINGCORE_EXPORT vtkGraphicsFactory : public vtkObject 00032 { 00033 public: 00034 static vtkGraphicsFactory *New(); 00035 vtkTypeMacro(vtkGraphicsFactory, vtkObject); 00036 virtual void PrintSelf(ostream& os, vtkIndent indent); 00037 00040 static vtkObject* CreateInstance(const char* vtkclassname); 00041 00043 static const char *GetRenderLibrary(); 00044 00046 00048 static void SetUseMesaClasses(int use); 00049 static int GetUseMesaClasses(); 00051 00053 00055 static void SetOffScreenOnlyMode(int use); 00056 static int GetOffScreenOnlyMode(); 00058 00059 protected: 00060 vtkGraphicsFactory() {} 00061 00062 static int UseMesaClasses; 00063 static int OffScreenOnlyMode; 00064 00065 private: 00066 vtkGraphicsFactory(const vtkGraphicsFactory&); // Not implemented. 00067 void operator=(const vtkGraphicsFactory&); // Not implemented. 00068 }; 00069 00070 #endif