21#ifndef __qSlicerGPUMemoryComboBox_h
22#define __qSlicerGPUMemoryComboBox_h
28#include "qSlicerVolumeRenderingModuleWidgetsExport.h"
30class qSlicerGPUMemoryComboBoxPrivate;
62 QScopedPointer<qSlicerGPUMemoryComboBoxPrivate>
d_ptr;
Q_INVOKABLE int currentGPUMemoryInMB() const
Return currently selected GPU memory in MB.
void setCurrentGPUMemoryFromString(const QString &memoryString)
Q_INVOKABLE QString currentGPUMemoryAsString() const
Return currently selected GPU memory as string.
QScopedPointer< qSlicerGPUMemoryComboBoxPrivate > d_ptr
QComboBox Superclass
Constructors.
QString currentGPUMemoryString
void setCurrentGPUMemory(double memory)
Set currently selected GPU memory in MB or percentage (% value between 0-1)
Q_INVOKABLE int totalGPUMemoryInMB() const
Return total memory available in the GPU.
qSlicerGPUMemoryComboBox(QWidget *parent=nullptr)