fw4spl
ShowDistance.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 "uiMeasurement/config.hpp"
10 
11 #include <fwData/Image.hpp>
12 
13 #include <fwGui/IActionSrv.hpp>
14 
15 namespace uiMeasurement
16 {
17 namespace action
18 {
19 
36 class UIMEASUREMENT_CLASS_API ShowDistance : public ::fwGui::IActionSrv
37 {
38 
39 public:
41 
42  UIMEASUREMENT_API ShowDistance() noexcept;
43 
44  UIMEASUREMENT_API virtual ~ShowDistance() noexcept;
45 
52  UIMEASUREMENT_API virtual KeyConnectionsMap getAutoConnections() const override;
53 protected:
54 
55  void configuring() override;
56 
57  void starting() override;
58 
59  void updating() override;
60 
61  void stopping() override;
62 
63  void info(std::ostream& _sstream ) override;
64 
65 private:
66 
68  void showDistance(bool isShown);
69 
70 };
71 
72 } // namespace action
73 
74 } // namespace uiMeasurement
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace uiMeasurement contains actions to add/show/remove distances and landmarks.
Definition: AddDistance.hpp:13
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
This action allows to show/hide image distances.