Medical Imaging Interaction Toolkit  2016.11.0
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 59 of file QmitkLevelWindowPresetDefinitionDialog.h.

Constructor & Destructor Documentation

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

Definition at line 196 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

Member Function Documentation

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::addPreset ( std::string &  name,
double  level,
double  window 
)
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::changePreset ( int  row,
std::string &  name,
double  level,
double  window 
)
int QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::columnCount ( const QModelIndex &  ) const
override

Definition at line 282 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

bool QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::contains ( std::string &  name)
QVariant QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 287 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getLevels ( std::map< std::string, double > &  levels)
QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::Entry QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getPreset ( const QModelIndex &  index) const
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getWindows ( std::map< std::string, double > &  windows)
QVariant QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 307 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::removePreset ( const QModelIndex &  index)
int QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::rowCount ( const QModelIndex &  ) const
override

Definition at line 277 of file QmitkLevelWindowPresetDefinitionDialog.cpp.


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