fw4spl
SViewportUpdater.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 __SCENE2D_ADAPTOR_SVIEWPORTUPDATER_HPP__
8 #define __SCENE2D_ADAPTOR_SVIEWPORTUPDATER_HPP__
9 
10 #include "scene2D/config.hpp"
11 
12 #include <fwRenderQt/IAdaptor.hpp>
13 
14 namespace scene2D
15 {
16 namespace adaptor
17 {
18 
45 class SCENE2D_CLASS_API SViewportUpdater : public ::fwRenderQt::IAdaptor
46 {
47 
48 public:
50  SCENE2D_API SViewportUpdater() noexcept;
51  SCENE2D_API ~SViewportUpdater() noexcept;
52 
53 protected:
54  SCENE2D_API void configuring() override;
55  SCENE2D_API void starting() override;
56  SCENE2D_API void updating() override;
57  SCENE2D_API void stopping() override;
58 
59  SCENE2D_API void processInteraction( ::fwRenderQt::data::Event& _event ) override;
60  SCENE2D_API KeyConnectionsMap getAutoConnections() const override;
61 };
62 
63 } // namespace adaptor
64 } // namespace scene2D
65 
66 #endif // __SCENE2D_ADAPTOR_SVIEWPORTUPDATER_HPP__
67 
Root class for all scene2d adaptors.
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
Adaptor implementation that manages the camera on the view (by updating the viewport object)...
This bundles contains data and services used to display a 2D Qt scene.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace fwRenderQt contains classes for rendering with Qt.
Definition: Axis.hpp:12