7 #ifndef __SCENE2D_ADAPTOR_SSQUARE_HPP__ 8 #define __SCENE2D_ADAPTOR_SSQUARE_HPP__ 10 #include "scene2D/config.hpp" 12 #include <fwRenderQt/data/Coord.hpp> 13 #include <fwRenderQt/IAdaptor.hpp> 15 #include <QGraphicsItem> 49 SCENE2D_API virtual ~
SSquare() noexcept;
53 SCENE2D_API
void configuring() override;
54 SCENE2D_API
void starting() override;
55 SCENE2D_API
void updating() override;
56 SCENE2D_API
void stopping() override;
58 SCENE2D_API
void processInteraction( ::
fwRenderQt::data::Event& _event ) override;
60 SCENE2D_API
void setColor(const
std::
string& _color );
61 SCENE2D_API
bool coordViewIsInItem( const ::
fwRenderQt::data::Coord& coord, QGraphicsItem* item );
62 SCENE2D_API ::
fwRenderQt::data::Coord coordViewToCoordItem( const ::
fwRenderQt::data::Coord& coord,
63 QGraphicsItem* item );
70 QGraphicsItemGroup* m_layer;
71 QGraphicsRectItem* m_rec;
74 bool m_pointIsCaptured;
80 #endif // __SCENE2D_ADAPTOR_SSQUARE_HPP__ Root class for all scene2d adaptors.
Create a square on the scene2D.
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.