fw4spl
OffScreenInteractorManager.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 __FWRENDERVTK_OFFSCREENINTERACTORMANAGER_HPP__
8 #define __FWRENDERVTK_OFFSCREENINTERACTORMANAGER_HPP__
9 
10 #include "fwRenderVTK/config.hpp"
11 #include "fwRenderVTK/IVtkRenderWindowInteractorManager.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <vtkRenderWindow.h>
16 #include <vtkRenderWindowInteractor.h>
17 #include <vtkSmartPointer.h>
18 
19 namespace fwRenderVTK
20 {
21 
26 {
27 
28 public:
29 
33 
34  FWRENDERVTK_API OffScreenInteractorManager();
35 
36  FWRENDERVTK_API virtual ~OffScreenInteractorManager();
37 
39  FWRENDERVTK_API virtual void installInteractor( ::fwGui::container::fwContainer::sptr _parent ) override;
40 
42  FWRENDERVTK_API virtual void installInteractor( unsigned int width, unsigned int height );
43 
45  FWRENDERVTK_API virtual void uninstallInteractor() override;
46 
48  FWRENDERVTK_API virtual ::vtkRenderWindowInteractor* getInteractor() override;
49 
50 private:
51 
52  vtkSmartPointer< vtkRenderWindow > m_renderWindow;
53  vtkSmartPointer< vtkRenderWindowInteractor > m_interactor;
54 
55 };
56 
57 } // namespace fwRenderVTK
58 
59 #endif // __FWRENDERVTK_OFFSCREENINTERACTORMANAGER_HPP__
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
Defines a class to manage vtkRenderWindowInteractor in a window.
Defines a class to manage vtkRenderWindowInteractor in a off screen window.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
The namespace fwRenderVTK contains classes for rendering with VTK.