VTK
vtkGPUInfo.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGPUInfo.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 =========================================================================*/
15 
29 #ifndef vtkGPUInfo_h
30 #define vtkGPUInfo_h
31 
32 #include "vtkRenderingCoreModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
36 {
37 public:
38  static vtkGPUInfo* New();
39  vtkTypeMacro(vtkGPUInfo, vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
49  vtkSetMacro(DedicatedVideoMemory, vtkTypeUInt64);
50  vtkGetMacro(DedicatedVideoMemory, vtkTypeUInt64);
52 
54 
60  vtkSetMacro(DedicatedSystemMemory, vtkTypeUInt64);
61  vtkGetMacro(DedicatedSystemMemory, vtkTypeUInt64);
63 
65 
70  vtkSetMacro(SharedSystemMemory, vtkTypeUInt64);
71  vtkGetMacro(SharedSystemMemory, vtkTypeUInt64);
73 
74 protected:
75  vtkGPUInfo();
76  ~vtkGPUInfo();
77 
78  vtkTypeUInt64 DedicatedVideoMemory;
79  vtkTypeUInt64 DedicatedSystemMemory;
80  vtkTypeUInt64 SharedSystemMemory;
81 
82 private:
83  vtkGPUInfo(const vtkGPUInfo&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkGPUInfo&) VTK_DELETE_FUNCTION;
85 };
86 
87 #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.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:78
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:35
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:79
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:80
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...