fw4spl
ImageUpdateAxis.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 <fwDataTools/helper/MedicalImageAdaptor.hpp>
12 
13 #include <fwServices/IController.hpp>
14 #include <fwServices/IService.hpp>
15 
16 namespace ctrlSelection
17 {
18 
23 class CTRLSELECTION_CLASS_API ImageUpdateAxis : public ::fwServices::IController
24 {
25 
26 public:
27 
29 
30  CTRLSELECTION_API ImageUpdateAxis() noexcept;
31 
32  CTRLSELECTION_API virtual ~ImageUpdateAxis() noexcept;
33 
40  CTRLSELECTION_API virtual KeyConnectionsType getObjSrvConnections() const override;
41 
42 protected:
43 
45  CTRLSELECTION_API virtual void starting() override;
46 
48  CTRLSELECTION_API virtual void stopping() override;
49 
51  CTRLSELECTION_API virtual void swapping() override;
52 
64  CTRLSELECTION_API virtual void configuring() override;
65 
67  CTRLSELECTION_API virtual void reconfiguring() override;
68 
70  CTRLSELECTION_API virtual void updating() override;
71 
73  CTRLSELECTION_API virtual void info( std::ostream& _sstream ) override;
74 
75 private:
76 
81  void updateSliceType(int from, int to);
87  std::string m_floatID;
89 
91  ::fwDataTools::helper::MedicalImageAdaptor::Orientation m_orientation;
92 };
93 
94 } // ctrlSelection
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
STL namespace.
This service updates a fwData::Float given in configuration with the image axis.
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
::fwCom::helper::SigSlotConnection::KeyConnectionsType KeyConnectionsType
Returns proposals to connect service slots to associated object signals, this method is used for obj/...
Definition: IService.hpp:449
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
Definition: BookmarkSrv.hpp:15