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 =========================================================================*/
26 #ifndef vtkGraphicsFactory_h
27 #define vtkGraphicsFactory_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class VTKRENDERINGCORE_EXPORT vtkGraphicsFactory : public vtkObject
33 {
34 public:
35  static vtkGraphicsFactory *New();
36  vtkTypeMacro(vtkGraphicsFactory, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
45  static vtkObject* CreateInstance(const char* vtkclassname);
46 
50  static const char *GetRenderLibrary();
51 
53 
57  static void SetUseMesaClasses(int use);
58  static int GetUseMesaClasses();
60 
62 
66  static void SetOffScreenOnlyMode(int use);
67  static int GetOffScreenOnlyMode();
69 
70 protected:
72 
73  static int UseMesaClasses;
74  static int OffScreenOnlyMode;
75 
76 private:
77  vtkGraphicsFactory(const vtkGraphicsFactory&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkGraphicsFactory&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static int OffScreenOnlyMode
a simple class to control print indentation
Definition: vtkIndent.h:39
#define VTK_NEWINSTANCE
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...