Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkMemoryUsageIndicatorView Class Reference

#include <QmitkMemoryUsageIndicatorView.h>

Inheritance diagram for QmitkMemoryUsageIndicatorView:
Collaboration diagram for QmitkMemoryUsageIndicatorView:

Public Member Functions

 QmitkMemoryUsageIndicatorView (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 constructor More...
 
 ~QmitkMemoryUsageIndicatorView ()
 destructor More...
 

Protected Slots

void UpdateMemoryUsage ()
 

Protected Member Functions

std::string FormatMemorySize (vcl_size_t size)
 
std::string FormatPercentage (double val)
 
std::string GetMemoryDescription (vcl_size_t processSize, float percentage)
 

Protected Attributes

QPixmap m_LEDGreen
 
QPixmap m_LEDYellow
 
QPixmap m_LEDOrange
 
QPixmap m_LEDRed
 
char m_PreviousState
 

Detailed Description

Definition at line 27 of file QmitkMemoryUsageIndicatorView.h.

Constructor & Destructor Documentation

QmitkMemoryUsageIndicatorView::QmitkMemoryUsageIndicatorView ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)
QmitkMemoryUsageIndicatorView::~QmitkMemoryUsageIndicatorView ( )

destructor

Definition at line 62 of file QmitkMemoryUsageIndicatorView.cpp.

Member Function Documentation

std::string QmitkMemoryUsageIndicatorView::FormatMemorySize ( vcl_size_t  size)
protected

Definition at line 110 of file QmitkMemoryUsageIndicatorView.cpp.

Referenced by GetMemoryDescription().

std::string QmitkMemoryUsageIndicatorView::FormatPercentage ( double  val)
protected

Definition at line 135 of file QmitkMemoryUsageIndicatorView.cpp.

Referenced by GetMemoryDescription().

std::string QmitkMemoryUsageIndicatorView::GetMemoryDescription ( vcl_size_t  processSize,
float  percentage 
)
protected

Definition at line 144 of file QmitkMemoryUsageIndicatorView.cpp.

References FormatMemorySize(), and FormatPercentage().

Referenced by UpdateMemoryUsage().

Member Data Documentation

QPixmap QmitkMemoryUsageIndicatorView::m_LEDGreen
protected
QPixmap QmitkMemoryUsageIndicatorView::m_LEDOrange
protected
QPixmap QmitkMemoryUsageIndicatorView::m_LEDRed
protected
QPixmap QmitkMemoryUsageIndicatorView::m_LEDYellow
protected
char QmitkMemoryUsageIndicatorView::m_PreviousState
protected

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