9 #include "fwRenderQt/config.hpp" 10 #include "fwRenderQt/data/Axis.hpp" 11 #include "fwRenderQt/data/Coord.hpp" 12 #include "fwRenderQt/data/Event.hpp" 13 #include "fwRenderQt/data/Viewport.hpp" 15 #include <fwCom/helper/SigSlotConnection.hpp> 17 #include <fwRender/IRender.hpp> 19 #include <fwServices/helper/Config.hpp> 21 #include <QGraphicsScene> 22 #include <QGraphicsView> 23 #include <QResizeEvent> 31 class Scene2DGraphicsView;
100 FWRENDERQT_API
SRender() noexcept;
103 FWRENDERQT_API virtual ~
SRender() noexcept;
106 FWRENDERQT_API QGraphicsScene* getScene() const;
112 FWRENDERQT_API ::
fwRenderQt::data::Viewport::sptr getViewport() const;
115 FWRENDERQT_API ::
fwRenderQt::data::Axis::sptr getAxis(const
std::
string&
id) const;
119 FWRENDERQT_API
void dispatchInteraction(::
fwRenderQt::data::Event& _event );
122 FWRENDERQT_API ::
fwRenderQt::data::Coord mapToScene( const ::
fwRenderQt::data::Coord& coord ) const;
125 FWRENDERQT_API Qt::AspectRatioMode getAspectRatioMode() const;
128 FWRENDERQT_API
void updateSceneSize(
float ratioPercent = 0 );
133 FWRENDERQT_API
void configuring() override;
138 FWRENDERQT_API
void starting() override;
141 FWRENDERQT_API
void updating() override;
143 FWRENDERQT_API
void swapping() override;
146 FWRENDERQT_API
void swapping(const KeyType& key) override;
151 FWRENDERQT_API
void stopping() override;
156 typedef
SPTR (::
fwRuntime::ConfigurationElement) ConfigurationType;
165 void configureAxis ( ConfigurationType _conf );
168 void configureViewport ( ConfigurationType _conf );
171 void configureScene( ConfigurationType _conf );
176 void configureAdaptor ( ConfigurationType _conf );
178 typedef
std::map< AdaptorZValueType, AdaptorIDType > ZValue2AdaptorID;
181 ZValue2AdaptorID m_zValue2AdaptorID;
186 ConfigurationType m_sceneConfiguration;
195 QGraphicsScene* m_scene;
200 ::
fwRenderQt::data::Viewport::sptr m_viewport;
206 std::
string m_background;
209 Qt::AspectRatioMode m_aspectRatioMode;
std::string AdaptorIDType
A string type representing adaptors id.
Defines the service interface managing the rendering service for object.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
std::string ObjectIDType
A string type representing objects id.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Qt scene rendering class.
The namespace fwRenderQt contains classes for rendering with Qt.
float AdaptorZValueType
A float type representing adaptors zValue.