fw4spl
SAddLabeledPoint.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 <fwGui/IActionSrv.hpp>
12 
13 namespace uiMeasurement
14 {
15 namespace action
16 {
17 
31 class UIMEASUREMENT_CLASS_API SAddLabeledPoint : public ::fwGui::IActionSrv
32 {
33 
34 public:
35 
37 
38  UIMEASUREMENT_API SAddLabeledPoint() noexcept;
39 
40  UIMEASUREMENT_API virtual ~SAddLabeledPoint() noexcept;
41 
42 protected:
43 
44  UIMEASUREMENT_API void configuring() override;
45 
46  UIMEASUREMENT_API void starting() override;
47 
48  UIMEASUREMENT_API void updating() override;
49 
50  UIMEASUREMENT_API void stopping() override;
51 
52  UIMEASUREMENT_API void info(std::ostream& _sstream ) override;
53 
54 private:
55 
57  bool defineLabel(std::string& name);
58 
59  int m_actionCheckId;
60 
61  unsigned int m_count;
62 };
63 
64 } // namespace action
65 } // namespace uiMeasurement
The namespace uiMeasurement contains actions to add/show/remove distances and landmarks.
Definition: AddDistance.hpp:13
This action adds labeled point into a PointList.
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.