Slicer 5.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkSystemInformation.h
Go to the documentation of this file.
1#ifndef __vtkSystemInformation_h
2#define __vtkSystemInformation_h
3
4// SlicerLogic includes
6
7// VTK includes
8#include <vtkObject.h>
9#include <vtkSmartPointer.h>
10
11class vtkRenderWindow;
12
13// VTKSYS includes
14#include <vtksys/SystemInformation.hxx>
15
16// STD includes
17#include <string>
18
19class VTK_SLICER_BASE_LOGIC_EXPORT vtkSystemInformation : public vtkObject
20{
21public:
23 vtkTypeMacro(vtkSystemInformation,vtkObject);
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
26 const char * GetVendorString();
27 const char * GetVendorID();
28 const char * GetTypeID();
29 const char * GetFamilyID();
30 const char * GetModelName();
31 const char * GetModelID();
32 const char * GetSteppingCode();
40 int DoesCPUSupportFeature(long int);
41
42 const char * GetOSName();
43 const char * GetHostname();
44 const char * GetOSRelease();
45 const char * GetOSVersion();
46 const char * GetOSPlatform();
47
48 int Is64Bits();
49
50 unsigned int GetNumberOfLogicalCPU(); // per physical cpu
51 unsigned int GetNumberOfPhysicalCPU();
52
54
55 // Retrieve memory information in megabyte.
56 unsigned long GetTotalVirtualMemory();
58 unsigned long GetTotalPhysicalMemory();
60
61 // Run the different checks
63 void RunOSCheck();
66
68 {
69 NONE = 0,
71 ONSCREEN_RENDERING = 0x01,
73 HEADLESS_RENDERING_USES_OSMESA = 0x04,
75 HEADLESS_RENDERING_USES_EGL = 0x08,
77 HEADLESS_RENDERING = HEADLESS_RENDERING_USES_OSMESA | HEADLESS_RENDERING_USES_EGL,
79 RENDERING = ONSCREEN_RENDERING | HEADLESS_RENDERING,
83 OPENGL = 0x10,
84 };
85
88 vtkGetMacro(RenderingCapabilities, vtkTypeUInt32);
89
92 vtkGetMacro(RenderingCapabilitiesDetails, std::string);
93
94protected:
95
96 vtkSmartPointer<vtkRenderWindow> NewOffscreenRenderWindow();
97
102
103 //private:
104
105 vtksys::SystemInformation SystemInformation;
106 std::string StringHolder;
109};
110#endif
float GetProcessorClockFrequency()
void operator=(const vtkSystemInformation &)
vtkSystemInformation(const vtkSystemInformation &)
const char * GetProcessorSerialNumber()
unsigned int GetNumberOfPhysicalCPU()
const char * GetOSName()
const char * GetOSVersion()
unsigned long GetAvailablePhysicalMemory()
const char * GetOSPlatform()
int GetLogicalProcessorsPerPhysical()
const char * GetExtendedProcessorName()
vtksys::SystemInformation SystemInformation
const char * GetHostname()
const char * GetOSRelease()
void PrintSelf(ostream &os, vtkIndent indent) override
const char * GetModelID()
const char * GetSteppingCode()
const char * GetFamilyID()
int GetProcessorCacheXSize(long int)
unsigned long GetTotalVirtualMemory()
static vtkSystemInformation * New()
const char * GetTypeID()
int DoesCPUSupportFeature(long int)
unsigned int GetNumberOfLogicalCPU()
vtkSmartPointer< vtkRenderWindow > NewOffscreenRenderWindow()
const char * GetModelName()
vtkTypeUInt32 RenderingCapabilities
unsigned long GetTotalPhysicalMemory()
const char * GetVendorString()
unsigned long GetAvailableVirtualMemory()
std::string RenderingCapabilitiesDetails
~vtkSystemInformation() override
const char * GetVendorID()