fw4spl
SNegatoWindowingInteractor.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_SNEGATOWINDOWINGINTERACTOR_HPP__
8 #define __VISUVTKADAPTOR_SNEGATOWINDOWINGINTERACTOR_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 
12 #include <fwData/TransferFunction.hpp>
13 
14 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
15 
16 #include <fwRenderVTK/IAdaptor.hpp>
17 
18 class vtkCommand;
19 
20 namespace visuVTKAdaptor
21 {
22 
46 {
47 
48 public:
49 
51 
52  VISUVTKADAPTOR_API SNegatoWindowingInteractor() noexcept;
53 
54  VISUVTKADAPTOR_API virtual ~SNegatoWindowingInteractor() noexcept;
55 
56  VISUVTKADAPTOR_API void startWindowing();
57 
58  VISUVTKADAPTOR_API void stopWindowing();
59 
60  VISUVTKADAPTOR_API void updateWindowing( double, double);
61 
62  VISUVTKADAPTOR_API void resetWindowing();
63 
64 protected:
65 
66  VISUVTKADAPTOR_API void configuring() override;
67  VISUVTKADAPTOR_API void starting() override;
68  VISUVTKADAPTOR_API void updating() override;
69  VISUVTKADAPTOR_API void stopping() override;
70 
72  VISUVTKADAPTOR_API void swapping(const KeyType& key) override;
73 
81  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
82 
83  vtkCommand* m_vtkObserver;
84  double m_initialWindow;
85  double m_initialLevel;
86  float m_priority;
87 };
88 
89 } //namespace visuVTKAdaptor
90 
91 #endif // __VISUVTKADAPTOR_SNEGATOWINDOWINGINTERACTOR_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...
Manage windowing interaction for image.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.