fw4spl
MedicalImageSrv.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "ctrlSelection/config.hpp"
10 
11 #include <fwServices/IController.hpp>
12 #include <fwServices/IService.hpp>
13 
14 namespace ctrlSelection
15 {
16 
30 class CTRLSELECTION_CLASS_API MedicalImageSrv : public ::fwServices::IController
31 {
32 
33 public:
34 
36 
37  CTRLSELECTION_API MedicalImageSrv() noexcept;
38 
39  CTRLSELECTION_API virtual ~MedicalImageSrv() noexcept;
40 
41 protected:
42 
44  CTRLSELECTION_API virtual void starting() override;
45 
47  CTRLSELECTION_API virtual void stopping() override;
48 
50  CTRLSELECTION_API virtual void swapping() override;
51 
53  CTRLSELECTION_API virtual void configuring() override;
54 
56  CTRLSELECTION_API virtual void reconfiguring() override;
57 
59  CTRLSELECTION_API virtual void updating() override;
60 
62  CTRLSELECTION_API virtual void info( std::ostream& _sstream ) override;
63 
71  CTRLSELECTION_API virtual KeyConnectionsMap getAutoConnections() const override;
72 
73 private:
74 
75  void convertImage();
76 
77  std::vector< std::string > m_imageCompositeKeys;
78 };
79 
80 } // ctrlSelection
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
STL namespace.
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
Definition: BookmarkSrv.hpp:15
This service convert its attached image to a medical image by adding specific fields.