VTK
dox/Rendering/OpenGL/vtkDirectXGPUInfoList.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDirectXGPUInfoList.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 
00028 #ifndef __vtkDirectXGPUInfoList_h
00029 #define __vtkDirectXGPUInfoList_h
00030 
00031 #include "vtkRenderingOpenGLModule.h" // For export macro
00032 #include "vtkGPUInfoList.h"
00033 
00034 #include <d3d9.h> // DirectX, HMONITOR
00035 
00036 class VTKRENDERINGOPENGL_EXPORT vtkDirectXGPUInfoList : public vtkGPUInfoList
00037 {
00038 public:
00039   static vtkDirectXGPUInfoList* New();
00040   vtkTypeMacro(vtkDirectXGPUInfoList, vtkGPUInfoList);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00045   virtual void Probe();
00046 
00047 protected:
00049 
00050   vtkDirectXGPUInfoList();
00051   virtual ~vtkDirectXGPUInfoList();
00053 
00055 
00058   bool ProbeInfoWithDXGI(HMONITOR m,
00059                          vtkGPUInfo *info);
00061 
00063 
00065   void ProbeInfoWithWMI(HMONITOR m,
00066                         vtkGPUInfo *info);
00068 
00070 
00073   bool GetDeviceIDFromHMonitor(HMONITOR hm,
00074                                WCHAR *strDeviceID,
00075                                int cchDeviceID);
00077 
00078 private:
00079   vtkDirectXGPUInfoList(const vtkDirectXGPUInfoList&); // Not implemented.
00080   void operator=(const vtkDirectXGPUInfoList&); // Not implemented.
00081 };
00082 
00083 #endif