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:
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
static int OffScreenOnlyMode
static VTK_NEWINSTANCE vtkObject * CreateInstance(const char *vtkclassname)
Create and return an instance of the named vtk object.
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.
static vtkGraphicsFactory * New()
static int GetUseMesaClasses()
static void SetOffScreenOnlyMode(int use)
This option enables the off-screen only mode.
static int GetOffScreenOnlyMode()
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
#define VTK_NEWINSTANCE