fw4spl
RemoveDistance.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 #include <fwData/PointList.hpp>
13 
14 #include <fwGui/IActionSrv.hpp>
15 
16 namespace uiMeasurement
17 {
18 
19 namespace action
20 {
21 
38 class UIMEASUREMENT_CLASS_API RemoveDistance : public ::fwGui::IActionSrv
39 {
40 public:
42 
43  UIMEASUREMENT_API RemoveDistance() noexcept;
44 
45  UIMEASUREMENT_API virtual ~RemoveDistance() noexcept;
46 
47 protected:
48 
49  void configuring() override;
50 
51  void starting() override;
52 
53  void updating() override;
54 
55  void stopping() override;
56 
57 private:
58  void notifyNewDistance(const ::fwData::Image::csptr& image, const ::fwData::PointList::sptr& distance) const;
59 
60  void notifyDeleteDistance(const ::fwData::Image::csptr& image, const ::fwData::PointList::csptr& distance) const;
61 };
62 
63 } // namespace action
64 
65 } // namespace uiMeasurement
The namespace uiMeasurement contains actions to add/show/remove distances and landmarks.
Definition: AddDistance.hpp:13
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
This action removes distances from the image field.