VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGPUInfoList.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 00029 #ifndef __vtkGPUInfoList_h 00030 #define __vtkGPUInfoList_h 00031 00032 #include "vtkRenderingCoreModule.h" // For export macro 00033 #include "vtkObject.h" 00034 00035 class vtkGPUInfoListArray; // STL Pimpl 00036 class vtkGPUInfo; 00037 00038 class VTKRENDERINGCORE_EXPORT vtkGPUInfoList : public vtkObject 00039 { 00040 public: 00041 static vtkGPUInfoList *New(); 00042 vtkTypeMacro(vtkGPUInfoList, vtkObject); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00048 virtual void Probe() = 0; 00049 00052 virtual bool IsProbed(); 00053 00055 virtual int GetNumberOfGPUs(); 00056 00060 virtual vtkGPUInfo *GetGPUInfo(int i); 00061 00062 protected: 00064 00065 vtkGPUInfoList(); 00066 virtual ~vtkGPUInfoList(); 00068 00069 bool Probed; 00070 vtkGPUInfoListArray *Array; 00071 00072 private: 00073 vtkGPUInfoList(const vtkGPUInfoList&); // Not implemented. 00074 void operator=(const vtkGPUInfoList&); // Not implemented. 00075 }; 00076 00077 #endif