Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkINodeSelectionService.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 mitkINodeSelectionService_h
14
#define mitkINodeSelectionService_h
15
16
#include <
mitkDataNode.h
>
17
#include <
mitkINodeSelectionListener.h
>
18
#include <
mitkServiceInterface.h
>
19
20
namespace
mitk
21
{
31
class
MITKCORE_EXPORT
INodeSelectionService
32
{
33
public
:
34
virtual
~
INodeSelectionService
();
35
51
virtual
bool
AddListener(
const
std::string& context,
INodeSelectionListener
* listener) = 0;
52
65
virtual
bool
RemoveListener(
const
std::string& context,
const
INodeSelectionListener
* listener) = 0;
66
77
virtual
bool
RemoveListener(
const
INodeSelectionListener
* listener) = 0;
78
89
virtual
bool
SendSelection(
const
std::string& context,
const
std::vector<mitk::DataNode::Pointer>& selection)
const
= 0;
90
};
91
}
92
93
MITK_DECLARE_SERVICE_INTERFACE
(
mitk::INodeSelectionService
,
"org.mitk.INodeSelectionService"
)
94
95
#endif
mitk::INodeSelectionListener
Interface for listening to node selections sent via the INodeSelectionService.
Definition:
mitkINodeSelectionListener.h:26
mitkServiceInterface.h
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkINodeSelectionListener.h
mitk::INodeSelectionService
A simple messaging service for sending and receiving data node selections for certain contexts.
Definition:
mitkINodeSelectionService.h:31
mitkDataNode.h
MITK_DECLARE_SERVICE_INTERFACE
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Definition:
mitkServiceInterface.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkINodeSelectionService.h
Generated on Mon Dec 23 2024 02:13:19 for Medical Imaging Interaction Toolkit by
1.8.17