fw4spl
SImageText.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_SIMAGETEXT_HPP__
8 #define __VISUVTKADAPTOR_SIMAGETEXT_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 #include "visuVTKAdaptor/SText.hpp"
12 
13 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
14 
15 #include <fwRenderVTK/IAdaptor.hpp>
16 
17 #include <string>
18 
19 class vtkTextActor;
20 
21 namespace visuVTKAdaptor
22 {
23 
71 class VISUVTKADAPTOR_CLASS_API SImageText : public SText,
73 {
74 
75 public:
76 
78 
79  VISUVTKADAPTOR_API SImageText() noexcept;
80 
81  VISUVTKADAPTOR_API virtual ~SImageText() noexcept;
82 
83 protected:
84 
85  VISUVTKADAPTOR_API void configuring() override;
86  VISUVTKADAPTOR_API void starting() override;
87  VISUVTKADAPTOR_API void updating() override;
88  VISUVTKADAPTOR_API void stopping() override;
90  VISUVTKADAPTOR_API void swapping(const KeyType& key) override;
91 
100  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
101 
103  VISUVTKADAPTOR_API virtual void updateTFPoints() override;
104 
106  VISUVTKADAPTOR_API virtual void updateTFWindowing(double window, double level) override;
107 
112  void updateSliceIndex(int axial, int frontal, int sagittal);
117 };
118 
119 } //namespace visuVTKAdaptor
120 
121 #endif //__VISUVTKADAPTOR_SIMAGETEXT_HPP__
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...
Adaptor to display window image information (width, heigth, picked position)
Definition: SImageText.hpp:71
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Displays a text.
Definition: SText.hpp:68