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
36class vtkGPUInfoListArray; // STL Pimpl
37class vtkGPUInfo;
38
39class VTKRENDERINGCORE_EXPORT vtkGPUInfoList : public vtkObject
40{
41public:
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
73protected:
75
79 virtual ~vtkGPUInfoList();
81
82 bool Probed;
84
85private:
86 vtkGPUInfoList(const vtkGPUInfoList&) VTK_DELETE_FUNCTION;
87 void operator=(const vtkGPUInfoList&) VTK_DELETE_FUNCTION;
88};
89
90#endif
Internal class vtkGPUInfoList.
Stores the list of GPUs VRAM information.
virtual vtkGPUInfo * GetGPUInfo(int i)
Return information about GPU i.
virtual ~vtkGPUInfoList()
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool IsProbed()
Tells if the operating system has been probed.
static vtkGPUInfoList * New()
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:36
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60