fw4spl
SPointLabel.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 __VISUVTKADAPTOR_SPOINTLABEL_HPP__
8 #define __VISUVTKADAPTOR_SPOINTLABEL_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 #include "visuVTKAdaptor/SText.hpp"
12 
13 #include <fwRenderVTK/IAdaptor.hpp>
14 
15 #include <string>
16 
17 class VISUVTKADAPTOR_CLASS_API vtkTextActor;
18 
19 namespace visuVTKAdaptor
20 {
21 
41 class VISUVTKADAPTOR_CLASS_API SPointLabel : public SText
42 {
43 
44 public:
46 
47  VISUVTKADAPTOR_API SPointLabel();
48 
49  static const ::fwServices::IService::KeyType s_POINT_INPUT;
50 
51 protected:
52 
53  VISUVTKADAPTOR_API void starting() override;
54  VISUVTKADAPTOR_API void updating() override;
55  VISUVTKADAPTOR_API void stopping() override;
56 
63  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
64 };
65 
66 } //namespace visuVTKAdaptor
67 
68 #endif // __VISUVTKADAPTOR_SPOINTLABEL_HPP__
69 
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Displays a label on a point. The label is given in point field "m_labelId".
Definition: SPointLabel.hpp:41
Displays a text.
Definition: SText.hpp:68