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
32class VTKRENDERINGCORE_EXPORT vtkGraphicsFactory : public vtkObject
33{
34public:
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);
69
70protected:
72
73 static int UseMesaClasses;
75
76private:
77 vtkGraphicsFactory(const vtkGraphicsFactory&) VTK_DELETE_FUNCTION;
78 void operator=(const vtkGraphicsFactory&) VTK_DELETE_FUNCTION;
79};
80
81#endif
static int OffScreenOnlyMode
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 const char * GetRenderLibrary()
What rendering library has the user requested.
static int GetUseMesaClasses()
static VTK_NEWINSTANCE vtkObject * CreateInstance(const char *vtkclassname)
Create and return an instance of the named vtk object.
static void SetOffScreenOnlyMode(int use)
This option enables the off-screen only mode.
static vtkGraphicsFactory * New()
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