fw4spl
SComputeHistogram.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __SCENE2D_PROCESSING_SCOMPUTEHISTOGRAM_HPP__
8 #define __SCENE2D_PROCESSING_SCOMPUTEHISTOGRAM_HPP__
9 
10 #include "scene2D/config.hpp"
11 
12 #include <fwData/Histogram.hpp>
13 #include <fwData/Image.hpp>
14 
15 #include <fwServices/IController.hpp>
16 
17 namespace scene2D
18 {
19 
20 namespace processing
21 {
22 
45 class SCENE2D_CLASS_API SComputeHistogram : public ::fwServices::IController
46 {
47 
48 public:
49 
51 
53  SCENE2D_API SComputeHistogram() noexcept;
54 
56  SCENE2D_API virtual ~SComputeHistogram() noexcept;
57 
65  SCENE2D_API virtual KeyConnectionsMap getAutoConnections() const override;
66 
67 protected:
68 
69  SCENE2D_API void configuring() override;
70 
72  SCENE2D_API void starting() override;
73 
75  SCENE2D_API void updating() override;
76 
78  SCENE2D_API void swapping() override;
79 
81  SCENE2D_API void stopping() override;
82 
83 private:
84 
86  float m_binsWidth;
87 
88 };
89 } // namespace processing
90 } // namespace scene2D
91 
92 #endif // __SCENE2D_PROCESSING_SCOMPUTEHISTOGRAM_HPP__
93 
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
This bundles contains data and services used to display a 2D Qt scene.
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
The SComputeHistogram service computes the histogram of the image.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.