VTK
vtkGraphicsFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphicsFactory.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 copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkGraphicsFactory_h
26 #define __vtkGraphicsFactory_h
27 
28 #include "vtkObject.h"
29 
31 {
32 public:
33  static vtkGraphicsFactory *New();
35  virtual void PrintSelf(ostream& os, vtkIndent indent);
36 
39  static vtkObject* CreateInstance(const char* vtkclassname);
40 
42  static const char *GetRenderLibrary();
43 
45 
47  static void SetUseMesaClasses(int use);
48  static int GetUseMesaClasses();
50 
52 
54  static void SetOffScreenOnlyMode(int use);
55  static int GetOffScreenOnlyMode();
57 
58 protected:
60 
61  static int UseMesaClasses;
62  static int OffScreenOnlyMode;
63 
64 private:
65  vtkGraphicsFactory(const vtkGraphicsFactory&); // Not implemented.
66  void operator=(const vtkGraphicsFactory&); // Not implemented.
67 };
68 
69 #endif