MeVisLab Scripting Reference
MLABSystemInfo Class Reference

Inherits QObject.

Public Slots

CPU system information


int numberOfCores () const
 
int numberOfPhysicalProcessors () const
 
int numberOfVirtualProcessors () const
 
QString cpuVendorId () const
 
QString cpuModelId () const
 
QString cpuDetailedFeatures () const
 
System information


int physicalMemoryInMB () const
 
int availableMemoryInMB () const
 
bool isNative64Bit () const
 
bool isProcessTranslated () const
 
GPU system information


int gpuVideoMemoryInMB () const
 
QString glRenderer () const
 
QString glVendor () const
 
QString glVersion () const
 
bool glSupportsExtension (const QString &extension) const
 
bool glSupports10Bit () const
 
bool wasBuiltWithCUDASupport () const
 
bool isMesaSoftwareRenderer () const
 

Detailed Description

Global MLABSystemInfo object available in all scripts.

The MLABSystemInfo object can be used to query for system parameters, e.g., number of CPUs.

Member Function Documentation

◆ availableMemoryInMB

int MLABSystemInfo::availableMemoryInMB ( ) const
slot

Returns the available memory of the machine in MB.

◆ cpuDetailedFeatures

QString MLABSystemInfo::cpuDetailedFeatures ( ) const
slot

Returns a string with all information on the features of the CPUs of the machine.

◆ cpuModelId

QString MLABSystemInfo::cpuModelId ( ) const
slot

Returns the CPU model.

◆ cpuVendorId

QString MLABSystemInfo::cpuVendorId ( ) const
slot

Returns the CPU vendor.

◆ glRenderer

QString MLABSystemInfo::glRenderer ( ) const
slot

Returns the GL renderer information.

◆ glSupports10Bit

bool MLABSystemInfo::glSupports10Bit ( ) const
slot

Returns whether GL supports 10-bit visual contexts.

◆ glSupportsExtension

bool MLABSystemInfo::glSupportsExtension ( const QString &  extension) const
slot

Returns whether a given GL extension is supported (e.g., GL_ARB_fragment_program).

◆ glVendor

QString MLABSystemInfo::glVendor ( ) const
slot

Returns the GL vendor information.

◆ glVersion

QString MLABSystemInfo::glVersion ( ) const
slot

Returns the OpenGL version string.

◆ gpuVideoMemoryInMB

int MLABSystemInfo::gpuVideoMemoryInMB ( ) const
slot

Returns the video memory of the machine in MB (or 0 if unknown).

◆ isMesaSoftwareRenderer

bool MLABSystemInfo::isMesaSoftwareRenderer ( ) const
slot

Returns whether the GL driver is the Mesa software renderer (typically llvmpipe).

◆ isNative64Bit

bool MLABSystemInfo::isNative64Bit ( ) const
slot

Returns whether MeVisLab is a native 64-bit application.

◆ isProcessTranslated

bool MLABSystemInfo::isProcessTranslated ( ) const
slot

Determine whether MeVisLab is running under dynamic binary translation.

◆ numberOfCores

int MLABSystemInfo::numberOfCores ( ) const
slot

Returns the number of cores.

◆ numberOfPhysicalProcessors

int MLABSystemInfo::numberOfPhysicalProcessors ( ) const
slot

Returns the number of physical processors.

◆ numberOfVirtualProcessors

int MLABSystemInfo::numberOfVirtualProcessors ( ) const
slot

Returns the number of virtual processors (depending on number of cores and hyper-threading).

◆ physicalMemoryInMB

int MLABSystemInfo::physicalMemoryInMB ( ) const
slot

Returns the physical memory of the machine in MB.

◆ wasBuiltWithCUDASupport

bool MLABSystemInfo::wasBuiltWithCUDASupport ( ) const
slot

Returns whether MeVisLab was built with CUDA support.