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 
30 #ifndef vtkGPUInfoList_h
31 #define vtkGPUInfoList_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkObject.h"
35 
36 class vtkGPUInfoListArray; // STL Pimpl
37 class vtkGPUInfo;
38 
39 class VTKRENDERINGCORE_EXPORT vtkGPUInfoList : public vtkObject
40 {
41 public:
42  static vtkGPUInfoList *New();
43  vtkTypeMacro(vtkGPUInfoList, vtkObject);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
52  virtual void Probe() = 0;
53 
57  virtual bool IsProbed();
58 
63  virtual int GetNumberOfGPUs();
64 
71  virtual vtkGPUInfo *GetGPUInfo(int i);
72 
73 protected:
75 
79  virtual ~vtkGPUInfoList();
81 
82  bool Probed;
84 
85 private:
86  vtkGPUInfoList(const vtkGPUInfoList&) VTK_DELETE_FUNCTION;
87  void operator=(const vtkGPUInfoList&) VTK_DELETE_FUNCTION;
88 };
89 
90 #endif
Stores the list of GPUs VRAM information.
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGPUInfoListArray * Array
a simple class to control print indentation
Definition: vtkIndent.h:39
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:35
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Internal class vtkGPUInfoList.