fw4spl
SPlaneInteractor.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_SPLANEINTERACTOR_HPP__
8 #define __VISUVTKADAPTOR_SPLANEINTERACTOR_HPP__
9 
10 #ifndef ANDROID
11 
12 #include "visuVTKAdaptor/config.hpp"
13 
14 #include <fwData/TransferFunction.hpp>
15 
16 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
17 
18 #include <fwRenderVTK/IAdaptor.hpp>
19 
20 class vtkCommand;
21 
22 namespace visuVTKAdaptor
23 {
24 
42 class VISUVTKADAPTOR_CLASS_API SPlaneInteractor : public ::fwDataTools::helper::MedicalImageAdaptor,
44 {
45 
46 public:
47 
49 
50  VISUVTKADAPTOR_API SPlaneInteractor() noexcept;
51 
52  VISUVTKADAPTOR_API virtual ~SPlaneInteractor() noexcept;
53 
55  VISUVTKADAPTOR_API void switchPlaneNormal();
56 
58  VISUVTKADAPTOR_API void pushPlane(double factor);
59 
61  VISUVTKADAPTOR_API void deselectPlane();
62 
63 protected:
64 
65  VISUVTKADAPTOR_API void configuring() override;
66  VISUVTKADAPTOR_API void starting() override;
67  VISUVTKADAPTOR_API void updating() override;
68  VISUVTKADAPTOR_API void stopping() override;
69 
70  vtkCommand* m_vtkObserver;
71  float m_priority;
72 };
73 
74 } //namespace visuVTKAdaptor
75 
76 #endif // ANDROID
77 
78 #endif // __VISUVTKADAPTOR_SPLANEINTERACTOR_HPP__
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
This service allows to interact with the plane (switch normal, deselect, move along the normal) ...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.