Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkStdMultiItem.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 QmlMitkStdMultiItem_h
18 #define QmlMitkStdMultiItem_h
19 
20 #include "MitkQmlItemsExports.h"
21 
22 #include <mitkDataStorage.h>
23 #include <mitkMouseModeSwitcher.h>
24 
25 #include <QObject>
26 #include <QQmlEngine>
27 
29 
31 {
32  Q_OBJECT
33 
34 private:
35  QmlMitkRenderWindowItem* m_viewerAxial;
36  QmlMitkRenderWindowItem* m_viewerFrontal;
37  QmlMitkRenderWindowItem* m_viewerSagittal;
38  QmlMitkRenderWindowItem* m_viewerOriginal;
39 
40  mitk::DataNode::Pointer m_planeAxial;
41  mitk::DataNode::Pointer m_planeFrontal;
42  mitk::DataNode::Pointer m_planeSagittal;
43 
45 
46  static mitk::DataStorage::Pointer storage;
47 
48 public:
50 
53 
54  void registerViewerItem(QmlMitkRenderWindowItem* viewerItem);
55  void moveCrossToPosition(const mitk::Point3D& newPosition);
56  void addPlanes();
57  const mitk::Point3D getCrossPosition() const;
58 
59  QmlMitkRenderWindowItem* getViewerAxial();
60  QmlMitkRenderWindowItem* getViewerSagittal();
61  QmlMitkRenderWindowItem* getViewerCoronal();
62  QmlMitkRenderWindowItem* getViewerOriginal();
63 
64  static void create(QQmlEngine &engine, mitk::DataStorage::Pointer storage);
65  public slots:
66  void init();
67  void togglePlanes();
68 };
69 
70 #endif
#define MITKQMLITEMS_EXPORT
static QmlMitkStdMultiItem * instance