VTK
vtkGPUInfoList.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGPUInfoList.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 
29 #ifndef __vtkGPUInfoList_h
30 #define __vtkGPUInfoList_h
31 
32 #include "vtkObject.h"
33 
34 class vtkGPUInfoListArray; // STL Pimpl
35 class vtkGPUInfo;
36 
38 {
39 public:
40  static vtkGPUInfoList *New();
41  vtkTypeMacro(vtkGPUInfoList, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
47  virtual void Probe()=0;
48 
51  virtual bool IsProbed();
52 
54  virtual int GetNumberOfGPUs();
55 
59  virtual vtkGPUInfo *GetGPUInfo(int i);
60 
61 protected:
63 
65  virtual ~vtkGPUInfoList();
67 
68  bool Probed;
70 
71 private:
72  vtkGPUInfoList(const vtkGPUInfoList&); // Not implemented.
73  void operator=(const vtkGPUInfoList&); // Not implemented.
74 };
75 
76 #endif