Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmlMitkDatamanager.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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef QmlMitkDatamanger_h
18
#define QmlMitkDatamanger_h
19
20
#include "
MitkQmlItemsExports.h
"
21
22
#include <
mitkDataStorage.h
>
23
#include <
QmitkDataStorageListModel.h
>
24
25
#include <QQuickItem>
26
27
class
MITKQMLITEMS_EXPORT
QmlMitkDatamanager
:
public
QQuickItem
28
{
29
Q_OBJECT
30
Q_PROPERTY(
int
index READ getIndex WRITE setIndex NOTIFY indexChanged);
31
32
private
:
33
int
m_index;
34
static
QmitkDataStorageListModel
* model;
35
static
mitk::DataStorage::Pointer
storage;
36
37
public
:
38
static
QmlMitkDatamanager
*
instance
;
39
40
int
getIndex();
41
void
setIndex(
int
index);
42
43
QmlMitkDatamanager
();
44
~
QmlMitkDatamanager
();
45
46
static
void
create(QQmlEngine &engine,
mitk::DataStorage::Pointer
storage);
47
48
public
slots:
49
void
toggleVisibility(
bool
checked);
50
void
reinitNode();
51
void
globalReinit();
52
void
deleteNode();
53
54
signals:
55
void
indexChanged();
56
};
57
58
#endif
mitkDataStorage.h
MITKQMLITEMS_EXPORT
#define MITKQMLITEMS_EXPORT
Definition:
MitkQmlItemsExports.h:15
QmlMitkDatamanager::instance
static QmlMitkDatamanager * instance
Definition:
QmlMitkDatamanager.h:38
MitkQmlItemsExports.h
itk::SmartPointer< Self >
QmitkDataStorageListModel
Definition:
QmitkDataStorageListModel.h:45
QmlMitkDatamanager
Definition:
QmlMitkDatamanager.h:27
QmitkDataStorageListModel.h
git
MITK
Modules
QmlItems
include
QmlMitkDatamanager.h
Generated on Fri Feb 3 2017 20:52:15 for Medical Imaging Interaction Toolkit by
1.8.9.1