fw4spl
SImagePickerInteractor.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_SIMAGEPICKERINTERACTOR_HPP__
8 #define __VISUVTKADAPTOR_SIMAGEPICKERINTERACTOR_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 #include "visuVTKAdaptor/SPickerInteractor.hpp"
12 
13 #include <fwCom/Signal.hpp>
14 #include <fwCom/Signals.hpp>
15 
16 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
17 #include <fwDataTools/PickingInfo.hpp>
18 
19 #include <fwRenderVTK/IAdaptor.hpp>
20 
21 #include <vtkCommand.h>
22 
23 #include <vector>
24 
25 namespace visuVTKAdaptor
26 {
27 
63 {
64 
65 public:
66 
68 
69  VISUVTKADAPTOR_API SImagePickerInteractor() noexcept;
70 
71  VISUVTKADAPTOR_API virtual ~SImagePickerInteractor() noexcept;
72 
73 protected:
74  friend class ImagePickerInteractorCallback;
75 
76  VISUVTKADAPTOR_API void configuring() override;
77  VISUVTKADAPTOR_API void starting() override;
78  VISUVTKADAPTOR_API void updating() override;
79  VISUVTKADAPTOR_API void stopping() override;
80 
89  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
90 
91 private:
96  void updateSliceIndex(int axial, int frontal, int sagittal);
101 };
102 
103 } //namespace visuVTKAdaptor
104 
105 #endif // __VISUVTKADAPTOR_SIMAGEPICKERINTERACTOR_HPP__
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
This service emits a signal when the user click on a actor in the scene.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
This service emits a signal when the user click on the associated image in the scene.