Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
QmitkDataStorageLayerStackModel.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 QmitkDataStorageLayerStackModel_h
14
#define QmitkDataStorageLayerStackModel_h
15
16
// render window manager UI module
17
#include "
MitkRenderWindowManagerUIExports.h
"
18
19
// render window manager module
20
#include "
mitkRenderWindowLayerUtilities.h
"
21
22
// qt widgets module
23
#include <
QmitkAbstractDataStorageModel.h
>
24
31
class
MITKRENDERWINDOWMANAGERUI_EXPORT
QmitkDataStorageLayerStackModel
:
public
QmitkAbstractDataStorageModel
32
{
33
Q_OBJECT
34
35
public
:
36
37
QmitkDataStorageLayerStackModel
(QObject* parent =
nullptr
);
38
39
// override from 'QmitkAbstractDataStorageModel'
40
/*
41
* @brief See 'QmitkAbstractDataStorageModel'
42
*/
43
void
DataStorageChanged
()
override
;
44
/*
45
* @brief See 'QmitkAbstractDataStorageModel'
46
*/
47
void
NodePredicateChanged
()
override
;
48
/*
49
* @brief See 'QmitkAbstractDataStorageModel'
50
*/
51
void
NodeAdded
(
const
mitk::DataNode
* node)
override
;
52
/*
53
* @brief See 'QmitkAbstractDataStorageModel'
54
*/
55
void
NodeChanged
(
const
mitk::DataNode
* node)
override
;
56
/*
57
* @brief See 'QmitkAbstractDataStorageModel'
58
*/
59
void
NodeRemoved
(
const
mitk::DataNode
* node)
override
;
60
61
void
SetCurrentRenderer(
const
std::string& rendererName);
62
63
mitk::BaseRenderer
* GetCurrentRenderer()
const
;
64
68
QModelIndex index(
int
row,
int
column,
const
QModelIndex& parent)
const
;
69
QModelIndex parent(
const
QModelIndex& child)
const
;
70
Qt::ItemFlags flags(
const
QModelIndex& index)
const override
;
71
QVariant headerData(
int
section, Qt::Orientation orientation,
int
role)
const override
;
72
int
rowCount(
const
QModelIndex& parent = QModelIndex())
const override
;
73
int
columnCount(
const
QModelIndex& parent = QModelIndex())
const override
;
74
QVariant data(
const
QModelIndex& index,
int
role)
const override
;
75
bool
setData(
const
QModelIndex& index,
const
QVariant& value,
int
role = Qt::EditRole)
override
;
79
80
private
:
81
82
void
UpdateModelData();
83
84
mitk::WeakPointer<mitk::BaseRenderer>
m_BaseRenderer;
85
RenderWindowLayerUtilities::LayerStack
m_TempLayerStack;
86
87
};
88
89
#endif
QmitkAbstractDataStorageModel::DataStorageChanged
virtual void DataStorageChanged()=0
MitkRenderWindowManagerUIExports.h
MITKRENDERWINDOWMANAGERUI_EXPORT
#define MITKRENDERWINDOWMANAGERUI_EXPORT
Definition:
MitkRenderWindowManagerUIExports.h:15
QmitkAbstractDataStorageModel::NodeRemoved
virtual void NodeRemoved(const mitk::DataNode *node)=0
QmitkAbstractDataStorageModel::NodeChanged
virtual void NodeChanged(const mitk::DataNode *node)=0
mitk::RenderWindowLayerUtilities::LayerStack
std::map< int, DataNode::Pointer, std::greater< int > > LayerStack
Definition:
mitkRenderWindowLayerUtilities.h:33
QmitkAbstractDataStorageModel.h
QmitkAbstractDataStorageModel::NodeAdded
virtual void NodeAdded(const mitk::DataNode *node)=0
mitk::BaseRenderer
Definition:
mitkBaseRenderer.h:55
QmitkDataStorageLayerStackModel
The 'QmitkDataStorageLayerStackModel' is a customized table model, derived from the 'QmitkAbstractDat...
Definition:
QmitkDataStorageLayerStackModel.h:31
mitk::WeakPointer< mitk::BaseRenderer >
QmitkAbstractDataStorageModel
Definition:
QmitkAbstractDataStorageModel.h:40
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
mitkRenderWindowLayerUtilities.h
QmitkAbstractDataStorageModel::NodePredicateChanged
virtual void NodePredicateChanged()=0
src
MITK
Modules
RenderWindowManagerUI
include
QmitkDataStorageLayerStackModel.h
Generated on Wed May 17 2023 16:26:14 for Medical Imaging Interaction Toolkit by
1.8.17