VTK  9.2.6
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 =========================================================================*/
39 #ifndef vtkGraphicsFactory_h
40 #define vtkGraphicsFactory_h
41 
42 #include "vtkObject.h"
43 #include "vtkRenderingCoreModule.h" // For export macro
44 
45 class VTKRENDERINGCORE_EXPORT vtkGraphicsFactory : public vtkObject
46 {
47 public:
49  vtkTypeMacro(vtkGraphicsFactory, vtkObject);
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
58  static vtkObject* CreateInstance(const char* vtkclassname);
59 
63  static const char* GetRenderLibrary();
64 
66 
70  static void SetUseMesaClasses(int use);
71  static int GetUseMesaClasses();
73 
75 
79  static void SetOffScreenOnlyMode(int use);
80  static int GetOffScreenOnlyMode();
82 
83 protected:
84  vtkGraphicsFactory() = default;
85 
86  static int UseMesaClasses;
87  static int OffScreenOnlyMode;
88 
89 private:
90  vtkGraphicsFactory(const vtkGraphicsFactory&) = delete;
91  void operator=(const vtkGraphicsFactory&) = delete;
92 };
93 
94 #endif
static int OffScreenOnlyMode
static const char * GetRenderLibrary()
What rendering library has the user requested.
static void SetUseMesaClasses(int use)
This option enables the creation of Mesa classes instead of the OpenGL classes when using mangled Mes...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphicsFactory()=default
static vtkObject * CreateInstance(const char *vtkclassname)
Create and return an instance of the named vtk object.
static vtkGraphicsFactory * New()
static int GetUseMesaClasses()
This option enables the creation of Mesa classes instead of the OpenGL classes when using mangled Mes...
static void SetOffScreenOnlyMode(int use)
This option enables the off-screen only mode.
static int GetOffScreenOnlyMode()
This option enables the off-screen only mode.
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
#define VTK_NEWINSTANCE