fw4spl
SaveLandmark.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 #include <boost/filesystem/path.hpp>
14 
15 namespace uiMeasurement
16 {
17 namespace action
18 {
19 
35 class UIMEASUREMENT_CLASS_API SaveLandmark : public ::fwGui::IActionSrv
36 {
37 public:
39 
40  UIMEASUREMENT_API SaveLandmark() noexcept;
41 
42  UIMEASUREMENT_API virtual ~SaveLandmark() noexcept;
43 
44 protected:
45 
46  void configuring() override;
47 
48  void starting() override;
49 
50  void updating() override;
51 
52  void stopping() override;
53 
54  void info(std::ostream& _sstream ) override;
55 
56  void save(const ::boost::filesystem::path& path);
57 
58 };
59 
60 } // namespace action
61 
62 } // namespace uiMeasurement
This action allows to save the landmarks stored in image.
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.