fw4spl
ImageInfo.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 "uiImageQt/config.hpp"
10 
11 #include <fwData/Point.hpp>
12 
13 #include <fwDataTools/PickingInfo.hpp>
14 
15 #include <fwGui/editor/IEditor.hpp>
16 
17 #include <fwTools/Failed.hpp>
18 
19 #include <QLineEdit>
20 #include <QObject>
21 #include <QPointer>
22 
23 namespace uiImageQt
24 {
25 
45 class UIIMAGEQT_CLASS_API ImageInfo : public QObject,
47 {
48 Q_OBJECT
49 
50 public:
51 
53 
54  UIIMAGEQT_API ImageInfo() noexcept;
55 
56  UIIMAGEQT_API virtual ~ImageInfo() noexcept;
57 
58 protected:
59 
61  virtual void starting() override;
62 
64  virtual void stopping() override;
65 
67  virtual void updating() override;
68 
70  virtual void configuring() override;
71 
72  virtual void info( std::ostream& _sstream ) override;
73 
81  virtual KeyConnectionsMap getAutoConnections() const override;
82 
83 private:
84 
86  void getInteraction(::fwDataTools::PickingInfo info);
87 
89  QPointer< QLineEdit > m_valueText;
90 
91 };
92 
93 } // uiImageQt
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
Defines the service interface managing the editor service for object.
Definition: IEditor.hpp:25
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
STL namespace.
The namespace uiImageQt contains several editors on image written with Qt. This namespace is included...
Definition: ImageInfo.hpp:23
ImageInfo service allows to display image pixel information when it receives the mouse cursor coordin...
Definition: ImageInfo.hpp:45
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.