9 #include "scene2D/config.hpp" 11 #include <fwRenderQt/IAdaptor.hpp> 57 SCENE2D_API
static const ::fwCom::Slots::SlotKeyType s_SET_GRID_SPACING_SLOT;
64 SCENE2D_API virtual ~
SGrid2D() noexcept;
68 SCENE2D_API
void configuring() override;
71 SCENE2D_API
void starting() override;
73 SCENE2D_API
void updating() override;
76 SCENE2D_API
void stopping() override;
79 SCENE2D_API
void processInteraction( ::
fwRenderQt::data::Event& _event ) override;
101 void setGridSpacing(
double _x,
double _y,
std::
string _key);
104 float m_xMin, m_xMax, m_yMin, m_yMax, m_xSpacing, m_ySpacing;
110 std::vector<QGraphicsItem*> m_lines;
113 QGraphicsItemGroup* m_layer;
Root class for all scene2d adaptors.
This bundles contains data and services used to display a 2D Qt scene.
Render grid on the scene2d.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace fwRenderQt contains classes for rendering with Qt.