Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
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 (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 mitkBindDispatcherInteractor_h
14 #define mitkBindDispatcherInteractor_h
15 
16 #include "mitkCommon.h"
17 #include <MitkCoreExports.h>
18 
19 #include "mitkDataNode.h"
20 #include "mitkDataStorage.h"
21 #include "mitkDispatcher.h"
22 
23 namespace mitk
24 {
36  {
37  public:
38  BindDispatcherInteractor(const std::string &);
40 
44  void SetDataStorage(DataStorage::Pointer dataStorage);
45 
50  void SetDispatcher(Dispatcher::Pointer dispatcher);
51 
55  Dispatcher::Pointer GetDispatcher() const;
56 
57  private:
64  void RegisterInteractor(const DataNode *dataNode);
65  void UnRegisterInteractor(const DataNode *dataNode);
66  void RegisterDataStorageEvents();
67  void UnRegisterDataStorageEvents();
68 
69  Dispatcher::Pointer m_Dispatcher;
71  };
72 }
73 #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:64