Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkBindDispatcherInteractor.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 mitkBindDispatcherInteractor_h
18 #define mitkBindDispatcherInteractor_h
19 
20 #include "mitkCommon.h"
21 #include <MitkCoreExports.h>
22 
23 #include "mitkDataNode.h"
24 #include "mitkDataStorage.h"
25 #include "mitkDispatcher.h"
26 
27 namespace mitk
28 {
40  {
41  public:
42  BindDispatcherInteractor(const std::string &);
44 
48  void SetDataStorage(DataStorage::Pointer dataStorage);
49 
54  void SetDispatcher(Dispatcher::Pointer dispatcher);
55 
59  Dispatcher::Pointer GetDispatcher() const;
60 
61  private:
68  void RegisterInteractor(const DataNode *dataNode);
69  void UnRegisterInteractor(const DataNode *dataNode);
70  void RegisterDataStorageEvents();
71  void UnRegisterDataStorageEvents();
72 
73  Dispatcher::Pointer m_Dispatcher;
75  };
76 }
77 #endif /* mitkBindDispatcherInteractor_h */
This Class is used to connect a DataStorage with the Dispatcher.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataStorage::Pointer m_DataStorage
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66