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();
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:
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
vtkGPUInfo::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGPUInfo::DedicatedSystemMemory
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:72
vtkGPUInfo::SharedSystemMemory
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:73
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkGPUInfo::~vtkGPUInfo
~vtkGPUInfo()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkObject.h
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkGPUInfo::DedicatedVideoMemory
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:71
vtkGPUInfo
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:35
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkGPUInfo::New
static vtkGPUInfo * New()
vtkGPUInfo::vtkGPUInfo
vtkGPUInfo()