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 "vtkRenderingCoreModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class vtkGPUInfoListArray; // STL Pimpl
36 class vtkGPUInfo;
37 
39 {
40 public:
41  static vtkGPUInfoList *New();
42  vtkTypeMacro(vtkGPUInfoList, vtkObject);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
48  virtual void Probe() = 0;
49 
52  virtual bool IsProbed();
53 
55  virtual int GetNumberOfGPUs();
56 
60  virtual vtkGPUInfo *GetGPUInfo(int i);
61 
62 protected:
64 
66  virtual ~vtkGPUInfoList();
68 
69  bool Probed;
71 
72 private:
73  vtkGPUInfoList(const vtkGPUInfoList&); // Not implemented.
74  void operator=(const vtkGPUInfoList&); // Not implemented.
75 };
76 
77 #endif
Stores the list of GPUs VRAM information.
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkGPUInfoListArray * Array
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:34
#define VTKRENDERINGCORE_EXPORT
static vtkObject * New()
Internal class vtkGPUInfoList.