Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
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
@ RENDERING
Indicates if any rendering is possible.
@ ONSCREEN_RENDERING
Indicates if onscreen rendering is possible.
@ HEADLESS_RENDERING_USES_OSMESA
Indicates if headless rendering using OSMesa is possible.
@ HEADLESS_RENDERING_USES_EGL
Indicates if headless rendering using EGL is possible.
@ HEADLESS_RENDERING
Indicates if any headless rendering is possible.
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()