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 "vtkRenderingCoreModule.h" // For export macro
29 #include "vtkObject.h"
30 
32 {
33 public:
34  static vtkGraphicsFactory *New();
35  vtkTypeMacro(vtkGraphicsFactory, vtkObject);
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
40  static vtkObject* CreateInstance(const char* vtkclassname);
41 
43  static const char *GetRenderLibrary();
44 
46 
48  static void SetUseMesaClasses(int use);
49  static int GetUseMesaClasses();
51 
53 
55  static void SetOffScreenOnlyMode(int use);
56  static int GetOffScreenOnlyMode();
58 
59 protected:
61 
62  static int UseMesaClasses;
63  static int OffScreenOnlyMode;
64 
65 private:
66  vtkGraphicsFactory(const vtkGraphicsFactory&); // Not implemented.
67  void operator=(const vtkGraphicsFactory&); // Not implemented.
68 };
69 
70 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
static int OffScreenOnlyMode
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGCORE_EXPORT
static vtkObject * New()