Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkLevelWindowPresetDefinitionDialog::PresetTableModel Class Reference

#include <QmitkLevelWindowPresetDefinitionDialog.h>

Inheritance diagram for QmitkLevelWindowPresetDefinitionDialog::PresetTableModel:
Collaboration diagram for QmitkLevelWindowPresetDefinitionDialog::PresetTableModel:

Classes

struct  Entry
 

Public Member Functions

 PresetTableModel (std::map< std::string, double > &levels, std::map< std::string, double > &windows, QObject *parent=nullptr)
 
int rowCount (const QModelIndex &) const override
 
int columnCount (const QModelIndex &) const override
 
QVariant data (const QModelIndex &index, int) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int) const override
 
void addPreset (std::string &name, double level, double window)
 
void removePreset (const QModelIndex &)
 
void changePreset (int row, std::string &name, double level, double window)
 
void getLevels (std::map< std::string, double > &levels)
 
void getWindows (std::map< std::string, double > &windows)
 
bool contains (std::string &name)
 
Entry getPreset (const QModelIndex &) const
 

Detailed Description

Definition at line 55 of file QmitkLevelWindowPresetDefinitionDialog.h.

Constructor & Destructor Documentation

◆ PresetTableModel()

QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::PresetTableModel ( std::map< std::string, double > &  levels,
std::map< std::string, double > &  windows,
QObject *  parent = nullptr 
)

Member Function Documentation

◆ addPreset()

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::addPreset ( std::string &  name,
double  level,
double  window 
)

◆ changePreset()

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::changePreset ( int  row,
std::string &  name,
double  level,
double  window 
)

◆ columnCount()

int QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::columnCount ( const QModelIndex &  ) const
override

◆ contains()

bool QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::contains ( std::string &  name)

◆ data()

QVariant QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::data ( const QModelIndex &  index,
int   
) const
override

◆ getLevels()

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getLevels ( std::map< std::string, double > &  levels)

◆ getPreset()

Entry QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getPreset ( const QModelIndex &  ) const

◆ getWindows()

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getWindows ( std::map< std::string, double > &  windows)

◆ headerData()

QVariant QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int   
) const
override

◆ removePreset()

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::removePreset ( const QModelIndex &  )

◆ rowCount()

int QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::rowCount ( const QModelIndex &  ) const
override

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