Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkLevelWindowPresetDefinitionDialog.h>
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 |
Definition at line 59 of file QmitkLevelWindowPresetDefinitionDialog.h.
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.
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::addPreset | ( | std::string & | name, |
double | level, | ||
double | window | ||
) |
Definition at line 223 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::addPreset().
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::changePreset | ( | int | row, |
std::string & | name, | ||
double | level, | ||
double | window | ||
) |
Definition at line 254 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::changePreset().
|
override |
Definition at line 282 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
bool QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::contains | ( | std::string & | name | ) |
Definition at line 232 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::addPreset(), and QmitkLevelWindowPresetDefinitionDialog::changePreset().
|
override |
Definition at line 287 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getLevels | ( | std::map< std::string, double > & | levels | ) |
Definition at line 207 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::getLevelPresets().
QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::Entry QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getPreset | ( | const QModelIndex & | index | ) | const |
Definition at line 267 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::changePreset(), and QmitkLevelWindowPresetDefinitionDialog::ListViewSelectionChanged().
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getWindows | ( | std::map< std::string, double > & | windows | ) |
Definition at line 215 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::getWindowPresets().
|
override |
Definition at line 307 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
void QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::removePreset | ( | const QModelIndex & | index | ) |
Definition at line 243 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog::removePreset().
|
override |
Definition at line 277 of file QmitkLevelWindowPresetDefinitionDialog.cpp.