fw4spl
SInteractorStyle.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_SINTERACTORSTYLE_HPP__
8 #define __VISUVTKADAPTOR_SINTERACTORSTYLE_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 
12 #include <fwRenderVTK/IAdaptor.hpp>
13 
14 class vtkInteractorStyle;
15 
16 namespace visuVTKAdaptor
17 {
18 
37 class VISUVTKADAPTOR_CLASS_API SInteractorStyle : public ::fwRenderVTK::IAdaptor
38 {
39 
40 public:
41 
43 
44  VISUVTKADAPTOR_API SInteractorStyle() noexcept;
45 
46  VISUVTKADAPTOR_API virtual ~SInteractorStyle() noexcept;
47 
48 protected:
49 
50  VISUVTKADAPTOR_API void configuring() override;
51  VISUVTKADAPTOR_API void starting() override;
52  VISUVTKADAPTOR_API void updating() override;
53  VISUVTKADAPTOR_API void stopping() override;
54 
55  void setInteractorStyle(vtkInteractorStyle* interactor);
56 
57  std::string m_configuredStyle;
58  vtkInteractorStyle* m_interactorStyle;
59 };
60 
61 } //namespace visuVTKAdaptor
62 
63 #endif // __VISUVTKADAPTOR_SINTERACTORSTYLE_HPP__
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Managing vtk interactor style.