fw4spl
SImagesSubstract.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 "basicRegistration/config.hpp"
10 
11 #include <fwGui/editor/IEditor.hpp>
12 
13 #include <QObject>
14 #include <QPointer>
15 
16 class QPushButton;
17 
18 namespace basicRegistration
19 {
20 
40 class BASICREGISTRATION_CLASS_API SImagesSubstract : public QObject,
42 {
43 Q_OBJECT
44 
45 public:
46 
48 
49  BASICREGISTRATION_API SImagesSubstract() noexcept;
50 
51  BASICREGISTRATION_API virtual ~SImagesSubstract() noexcept;
52 
53 protected:
54 
55  BASICREGISTRATION_API virtual void configuring() override;
56 
58  BASICREGISTRATION_API virtual void starting() override;
59 
61  BASICREGISTRATION_API virtual void stopping() override;
62 
64  BASICREGISTRATION_API virtual void updating() override;
65 
67  BASICREGISTRATION_API virtual void swapping() override;
68 
69 private Q_SLOTS:
70 
72  void OnCompute();
73 
74 private:
75  QPointer< QPushButton > mpComputeButton;
76 };
77 
78 } // namespace basicRegistration
Defines the service interface managing the editor service for object.
Definition: IEditor.hpp:25
The namespace basicRegistration contains services to perfom a basic registration between images and m...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Compute the substraction of two images.