7 #ifndef __FWRENDERQT_IADAPTOR_HPP__ 8 #define __FWRENDERQT_IADAPTOR_HPP__ 10 #include "fwRenderQt/config.hpp" 11 #include "fwRenderQt/data/Axis.hpp" 12 #include "fwRenderQt/data/Event.hpp" 13 #include "fwRenderQt/SRender.hpp" 15 #include <fwServices/IService.hpp> 43 FWRENDERQT_API
void setZValue(
float _zValue);
46 FWRENDERQT_API
float getZValue()
const;
53 FWRENDERQT_API virtual
void processInteraction(::
fwRenderQt::data::Event& _event );
61 FWRENDERQT_API virtual ~
IAdaptor() noexcept;
74 FWRENDERQT_API
void configureParams();
78 FWRENDERQT_API Point2DType mapAdaptorToScene(const Point2DType& _xy,
80 const ::
fwRenderQt::data::Axis::sptr& _yAxis) const;
84 FWRENDERQT_API Point2DType mapSceneToAdaptor(const Point2DType& _xy,
86 const ::
fwRenderQt::data::Axis::sptr& _yAxis) const;
89 FWRENDERQT_API ViewSizeRatio getViewSizeRatio() const;
92 FWRENDERQT_API ViewportSizeRatio getViewportSizeRatio() const;
95 FWRENDERQT_API
void initializeViewSize();
98 FWRENDERQT_API
void initializeViewportSize();
100 FWRENDERQT_API Scene2DRatio getRatio() const;
118 ViewSizeRatio m_viewInitialSize;
122 ViewportSizeRatio m_viewportInitialSize;
129 #endif // __FWRENDERQT_IADAPTOR_HPP__ Root class for all scene2d adaptors.
Base class for all services.
std::pair< float, float > Scene2DRatio
<width, height>
std::pair< float, float > ViewSizeRatio
<width, height>
std::pair< double, double > Point2DType
Point2D coordinate <X, Y>
std::pair< float, float > ViewportSizeRatio
<width, height>
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Qt scene rendering class.
The namespace fwRenderQt contains classes for rendering with Qt.