fw4spl
PointEditor.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 "uiVisuQt/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 uiVisuQt
24 {
25 
29 class UIVISUQT_CLASS_API PointEditor : public QObject,
31 {
32 Q_OBJECT
33 
34 public:
35 
37 
39  UIVISUQT_API PointEditor() noexcept;
40 
42  UIVISUQT_API virtual ~PointEditor() noexcept;
43 
44 protected:
45 
46  typedef ::fwRuntime::ConfigurationElement::sptr Configuration;
47 
49  virtual void starting() override;
50 
52  virtual void stopping() override;
53 
54  void updating() override;
55 
56  void swapping() override;
57 
58  void configuring() override;
59 
61  virtual void info( std::ostream& _sstream ) override;
62 
63 private:
64 
66  void getInteraction(::fwDataTools::PickingInfo info);
67 
68  QPointer< QLineEdit > m_textCtrl_x;
69  QPointer< QLineEdit > m_textCtrl_y;
70  QPointer< QLineEdit > m_textCtrl_z;
71 
72 };
73 
74 } // uiData
PointEditor service allows to display point information.
Definition: PointEditor.hpp:29
Defines the service interface managing the editor service for object.
Definition: IEditor.hpp:25
The namespace uiVisuQt supplies user interface editors done with Qt.
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
STL namespace.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.