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 "vtkObject.h" 00033 00034 class vtkGPUInfoListArray; // STL Pimpl 00035 class vtkGPUInfo; 00036 00037 class VTK_RENDERING_EXPORT vtkGPUInfoList : public vtkObject 00038 { 00039 public: 00040 static vtkGPUInfoList *New(); 00041 vtkTypeMacro(vtkGPUInfoList, vtkObject); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00047 virtual void Probe()=0; 00048 00051 virtual bool IsProbed(); 00052 00054 virtual int GetNumberOfGPUs(); 00055 00059 virtual vtkGPUInfo *GetGPUInfo(int i); 00060 00061 protected: 00063 00064 vtkGPUInfoList(); 00065 virtual ~vtkGPUInfoList(); 00067 00068 bool Probed; 00069 vtkGPUInfoListArray *Array; 00070 00071 private: 00072 vtkGPUInfoList(const vtkGPUInfoList&); // Not implemented. 00073 void operator=(const vtkGPUInfoList&); // Not implemented. 00074 }; 00075 00076 #endif