VTK
vtkDirectXGPUInfoList.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDirectXGPUInfoList.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 vtkDirectXGPUInfoList_h
29 #define vtkDirectXGPUInfoList_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkGPUInfoList.h"
33 
34 #include <d3d9.h> // DirectX, HMONITOR
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkDirectXGPUInfoList : public vtkGPUInfoList
37 {
38 public:
39  static vtkDirectXGPUInfoList* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
45  virtual void Probe();
46 
47 protected:
49 
51  virtual ~vtkDirectXGPUInfoList();
53 
55 
58  bool ProbeInfoWithDXGI(HMONITOR m,
59  vtkGPUInfo *info);
61 
63 
65  void ProbeInfoWithWMI(HMONITOR m,
66  vtkGPUInfo *info);
68 
70 
73  bool GetDeviceIDFromHMonitor(HMONITOR hm,
74  WCHAR *strDeviceID,
75  int cchDeviceID);
77 
78 private:
79  vtkDirectXGPUInfoList(const vtkDirectXGPUInfoList&); // Not implemented.
80  void operator=(const vtkDirectXGPUInfoList&); // Not implemented.
81 };
82 
83 #endif
Get GPUs VRAM information using DirectX.
Stores the list of GPUs VRAM information.
virtual void Probe()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:34
static vtkGPUInfoList * New()
void PrintSelf(ostream &os, vtkIndent indent)