Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Public Member Functions | Protected Attributes
qSlicerGPUMemoryComboBox Class Reference

#include <Modules/Loadable/VolumeRendering/Widgets/qSlicerGPUMemoryComboBox.h>

Inheritance diagram for qSlicerGPUMemoryComboBox:
Inheritance graph
[legend]
Collaboration diagram for qSlicerGPUMemoryComboBox:
Collaboration graph
[legend]

Public Types

typedef QComboBox Superclass
 Constructors. More...
 

Properties

double currentGPUMemory
 
QString currentGPUMemoryString
 

Public Slots

void setCurrentGPUMemory (double memory)
 Set currently selected GPU memory in MB or percentage (% value between 0-1) More...
 
void setCurrentGPUMemoryFromString (const QString &memoryString)
 

Public Member Functions

Q_INVOKABLE double currentGPUMemory () const
 Return currently selected GPU memory in MB or percentage (% value between 0-1) More...
 
Q_INVOKABLE QString currentGPUMemoryAsString () const
 Return currently selected GPU memory as string. More...
 
Q_INVOKABLE int currentGPUMemoryInMB () const
 Return currently selected GPU memory in MB. More...
 
 qSlicerGPUMemoryComboBox (QWidget *parent=nullptr)
 
Q_INVOKABLE int totalGPUMemoryInMB () const
 Return total memory available in the GPU. More...
 
 ~qSlicerGPUMemoryComboBox () override
 

Protected Attributes

QScopedPointer< qSlicerGPUMemoryComboBoxPrivate > d_ptr
 

Detailed Description

Definition at line 32 of file qSlicerGPUMemoryComboBox.h.

Member Typedef Documentation

◆ Superclass

Constructors.

Definition at line 41 of file qSlicerGPUMemoryComboBox.h.

Property Documentation

◆ currentGPUMemory

double qSlicerGPUMemoryComboBox::currentGPUMemory
readwrite

Definition at line 36 of file qSlicerGPUMemoryComboBox.h.

◆ currentGPUMemoryString

QString qSlicerGPUMemoryComboBox::currentGPUMemoryString
readwrite

Definition at line 37 of file qSlicerGPUMemoryComboBox.h.

Constructor & Destructor Documentation

◆ qSlicerGPUMemoryComboBox()

qSlicerGPUMemoryComboBox::qSlicerGPUMemoryComboBox ( QWidget *  parent = nullptr)
explicit

◆ ~qSlicerGPUMemoryComboBox()

qSlicerGPUMemoryComboBox::~qSlicerGPUMemoryComboBox ( )
override

Member Function Documentation

◆ currentGPUMemory()

Q_INVOKABLE double qSlicerGPUMemoryComboBox::currentGPUMemory ( ) const

Return currently selected GPU memory in MB or percentage (% value between 0-1)

◆ currentGPUMemoryAsString()

Q_INVOKABLE QString qSlicerGPUMemoryComboBox::currentGPUMemoryAsString ( ) const

Return currently selected GPU memory as string.

◆ currentGPUMemoryInMB()

Q_INVOKABLE int qSlicerGPUMemoryComboBox::currentGPUMemoryInMB ( ) const

Return currently selected GPU memory in MB.

◆ setCurrentGPUMemory

void qSlicerGPUMemoryComboBox::setCurrentGPUMemory ( double  memory)
slot

Set currently selected GPU memory in MB or percentage (% value between 0-1)

◆ setCurrentGPUMemoryFromString

void qSlicerGPUMemoryComboBox::setCurrentGPUMemoryFromString ( const QString &  memoryString)
slot

Set currently selected GPU memory from string (

See also
qSlicerGPUMemoryComboBoxPrivate::memoryFromString)

◆ totalGPUMemoryInMB()

Q_INVOKABLE int qSlicerGPUMemoryComboBox::totalGPUMemoryInMB ( ) const

Return total memory available in the GPU.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerGPUMemoryComboBoxPrivate> qSlicerGPUMemoryComboBox::d_ptr
protected

Definition at line 62 of file qSlicerGPUMemoryComboBox.h.


The documentation for this class was generated from the following file: