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 
28 #ifndef vtkGPUInfo_h
29 #define vtkGPUInfo_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkObject.h"
33 
35 {
36 public:
37  static vtkGPUInfo* New();
38  vtkTypeMacro(vtkGPUInfo, vtkObject);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
46  vtkSetMacro(DedicatedVideoMemory, vtkTypeUInt64);
47  vtkGetMacro(DedicatedVideoMemory, vtkTypeUInt64);
49 
51 
55  vtkSetMacro(DedicatedSystemMemory, vtkTypeUInt64);
56  vtkGetMacro(DedicatedSystemMemory, vtkTypeUInt64);
58 
60 
63  vtkSetMacro(SharedSystemMemory, vtkTypeUInt64);
64  vtkGetMacro(SharedSystemMemory, vtkTypeUInt64);
66 
67 protected:
68  vtkGPUInfo();
69  ~vtkGPUInfo();
70 
71  vtkTypeUInt64 DedicatedVideoMemory;
72  vtkTypeUInt64 DedicatedSystemMemory;
73  vtkTypeUInt64 SharedSystemMemory;
74 
75 private:
76  vtkGPUInfo(const vtkGPUInfo&); // Not implemented.
77  void operator=(const vtkGPUInfo&); // Not implemented.
78 };
79 
80 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:71
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:34
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:72
#define VTKRENDERINGCORE_EXPORT
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:73
static vtkObject * New()