7 #ifndef __SCENE2D_ADAPTOR_SVIEWPORTRANGESELECTOR_HPP__ 8 #define __SCENE2D_ADAPTOR_SVIEWPORTRANGESELECTOR_HPP__ 10 #include "scene2D/config.hpp" 12 #include <fwRenderQt/IAdaptor.hpp> 65 SCENE2D_API
void configuring() override;
66 SCENE2D_API
void starting() override;
67 SCENE2D_API
void updating() override;
68 SCENE2D_API
void stopping() override;
70 SCENE2D_API
void processInteraction( ::
fwRenderQt::data::Event& _event ) override;
74 SCENE2D_API
void updateViewportFromShutter(
double x,
double y,
double width,
double height );
80 QGraphicsRectItem* m_shutter;
81 bool m_isLeftInteracting;
82 bool m_isRightInteracting;
85 ::
fwRenderQt::data::Coord m_dragStartShutterPos;
88 const
int m_clickCatchRange;
91 QGraphicsItemGroup* m_layer;
100 bool mouseOnShutterLeft( ::
fwRenderQt::data::Coord _coord);
103 bool mouseOnShutterRight( ::
fwRenderQt::data::Coord _coord);
106 bool mouseOnShutterMiddle( ::
fwRenderQt::data::Coord _coord);
112 #endif // __SCENE2D_ADAPTOR_SVIEWPORTRANGESELECTOR_HPP__ Root class for all scene2d adaptors.
This class is a helper to define the connections of a service and its data.
This bundles contains data and services used to display a 2D Qt scene.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The viewport range selector adaptor allows to select a delimited range of a viewport. It uses a graphical delimiter (called shutter) that can be moved from both left to right and right to left directions (in those cases, shutter's width is changing).
The namespace fwRenderQt contains classes for rendering with Qt.