Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
QmitkViewModel.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef QmitkViewModel_h
14
#define QmitkViewModel_h
15
16
#include <QStandardItemModel>
17
18
class
QmitkCategoryItem
;
19
class
QmitkViewItem
;
20
21
class
QmitkViewModel
:
public
QStandardItemModel
22
{
23
public
:
24
explicit
QmitkViewModel
(QObject* parent =
nullptr
);
25
~QmitkViewModel
()
override
;
26
31
QmitkCategoryItem
*
GetCategoryItem
(
const
QString& category)
const
;
32
37
QmitkViewItem
*
GetViewItemFromId
(
const
QString&
id
)
const
;
38
39
private
:
40
QmitkCategoryItem
* CreateCategoryItem(
const
QString& category);
41
};
42
43
#endif
QmitkViewModel::GetCategoryItem
QmitkCategoryItem * GetCategoryItem(const QString &category) const
Get category item by category name.
QmitkCategoryItem
Definition:
QmitkCategoryItem.h:19
QmitkViewItem
Definition:
QmitkViewItem.h:25
QmitkViewModel
Definition:
QmitkViewModel.h:21
QmitkViewModel::GetViewItemFromId
QmitkViewItem * GetViewItemFromId(const QString &id) const
Get view item by view id.
QmitkViewModel::~QmitkViewModel
~QmitkViewModel() override
QmitkViewModel::QmitkViewModel
QmitkViewModel(QObject *parent=nullptr)
src
MITK
Plugins
org.mitk.gui.qt.viewnavigator
src
QmitkViewModel.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17