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 =========================================================================*/
23 #ifndef vtkGraphicsFactory_h
24 #define vtkGraphicsFactory_h
25 
26 #include "vtkRenderingCoreModule.h" // For export macro
27 #include "vtkObject.h"
28 
29 class VTKRENDERINGCORE_EXPORT vtkGraphicsFactory : public vtkObject
30 {
31 public:
33  vtkTypeMacro(vtkGraphicsFactory, vtkObject);
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
42  static vtkObject* CreateInstance(const char* vtkclassname);
43 
47  static const char *GetRenderLibrary();
48 
50 
54  static void SetUseMesaClasses(int use);
55  static int GetUseMesaClasses();
57 
59 
63  static void SetOffScreenOnlyMode(int use);
64  static int GetOffScreenOnlyMode();
66 
67 protected:
69 
70  static int UseMesaClasses;
71  static int OffScreenOnlyMode;
72 
73 private:
74  vtkGraphicsFactory(const vtkGraphicsFactory&) = delete;
75  void operator=(const vtkGraphicsFactory&) = delete;
76 };
77 
78 #endif
vtkGraphicsFactory::CreateInstance
static vtkObject * CreateInstance(const char *vtkclassname)
Create and return an instance of the named vtk object.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkGraphicsFactory
Definition: vtkGraphicsFactory.h:30
vtkGraphicsFactory::vtkGraphicsFactory
vtkGraphicsFactory()
Definition: vtkGraphicsFactory.h:68
vtkGraphicsFactory::GetRenderLibrary
static const char * GetRenderLibrary()
What rendering library has the user requested.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGraphicsFactory::GetOffScreenOnlyMode
static int GetOffScreenOnlyMode()
vtkObject.h
vtkGraphicsFactory::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphicsFactory::New
static vtkGraphicsFactory * New()
vtkGraphicsFactory::OffScreenOnlyMode
static int OffScreenOnlyMode
Definition: vtkGraphicsFactory.h:71
VTK_NEWINSTANCE
#define VTK_NEWINSTANCE
Definition: vtkWrappingHints.h:39
vtkGraphicsFactory::UseMesaClasses
static int UseMesaClasses
Definition: vtkGraphicsFactory.h:70
vtkGraphicsFactory::SetOffScreenOnlyMode
static void SetOffScreenOnlyMode(int use)
This option enables the off-screen only mode.
vtkGraphicsFactory::GetUseMesaClasses
static int GetUseMesaClasses()
vtkGraphicsFactory::SetUseMesaClasses
static void SetUseMesaClasses(int use)
This option enables the creation of Mesa classes instead of the OpenGL classes when using mangled Mes...