fw4spl
ShowLandmark.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 
25 class UIMEASUREMENT_CLASS_API ShowLandmark : public ::fwGui::IActionSrv
26 {
27 
28 public:
30 
31  UIMEASUREMENT_API ShowLandmark() noexcept;
32 
33  UIMEASUREMENT_API virtual ~ShowLandmark() noexcept;
34 
41  UIMEASUREMENT_API virtual ::fwServices::IService::KeyConnectionsMap getAutoConnections() const override;
42 protected:
43 
44  void configuring() override;
45 
46  void starting() override;
47 
48  void updating() override;
49 
50  void stopping() override;
51 
52  UIMEASUREMENT_API void swapping() override;
53  UIMEASUREMENT_API void info(std::ostream& _sstream ) override;
54 
55 private:
56 
58  void showLandmark(bool isShown);
59 
60 };
61 
62 } // namespace action
63 
64 } // 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.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This action allows to show/hide image landmarks.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.