VTK  9.1.0
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
27#ifndef vtkGPUInfoList_h
28#define vtkGPUInfoList_h
29
30#include "vtkObject.h"
31#include "vtkRenderingCoreModule.h" // For export macro
32
33class vtkGPUInfoListArray; // STL Pimpl
34class vtkGPUInfo;
35
36class VTKRENDERINGCORE_EXPORT vtkGPUInfoList : public vtkObject
37{
38public:
40 vtkTypeMacro(vtkGPUInfoList, vtkObject);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
49 virtual void Probe() = 0;
50
54 virtual bool IsProbed();
55
60 virtual int GetNumberOfGPUs();
61
68 virtual vtkGPUInfo* GetGPUInfo(int i);
69
70protected:
72
76 ~vtkGPUInfoList() override;
78
79 bool Probed;
81
82private:
83 vtkGPUInfoList(const vtkGPUInfoList&) = delete;
84 void operator=(const vtkGPUInfoList&) = delete;
85};
86
87#endif
Internal class vtkGPUInfoList.
Stores the list of GPUs VRAM information.
virtual vtkGPUInfo * GetGPUInfo(int i)
Return information about GPU i.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGPUInfoListArray * Array
virtual int GetNumberOfGPUs()
Return the number of GPUs.
virtual void Probe()=0
Build the list of vtkInfoGPU if not done yet.
vtkGPUInfoList()
Default constructor.
~vtkGPUInfoList() override
Default constructor.
virtual bool IsProbed()
Tells if the operating system has been probed.
static vtkGPUInfoList * New()
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:33
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73