fw4spl
SImageSliceOrientationText.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_SIMAGESLICEORIENTATIONTEXT_HPP__
8 #define __VISUVTKADAPTOR_SIMAGESLICEORIENTATIONTEXT_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 
12 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
13 
14 #include <fwRenderVTK/IAdaptor.hpp>
15 
16 #include <memory> //unique_ptr
17 #include <string>
18 
19 namespace visuVTKAdaptor
20 {
21 
22 class ImageSliceOrientationTextPImpl;
23 
53 {
54 
55 public:
56 
58 
59  VISUVTKADAPTOR_API SImageSliceOrientationText() noexcept;
60  VISUVTKADAPTOR_API virtual ~SImageSliceOrientationText() noexcept;
61 
62 protected:
63 
66  VISUVTKADAPTOR_API void configuring() override;
67  VISUVTKADAPTOR_API void starting() override;
68  VISUVTKADAPTOR_API void updating() override;
69  VISUVTKADAPTOR_API void stopping() override;
71 
80  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
81 
83  VISUVTKADAPTOR_API void setOrientation( Orientation orientation ) override;
84 
86  std::string m_locations;
87 
89  std::string m_initialOrientation;
90 
92  std::unique_ptr< ImageSliceOrientationTextPImpl > m_pimpl;
93 
94 private:
99  void updateSliceType(int from, int to);
104 };
105 
106 } //namespace visuVTKAdaptor
107 
108 #endif // __VISUVTKADAPTOR_SIMAGESLICEORIENTATIONTEXT_HPP__
Shows image orientation information (right, left, ...) This adaptor show locations labels in the four...
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...
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.