7 #ifndef __FWRENDERQT_SCENE2DGRAPHICSVIEW_HPP__ 8 #define __FWRENDERQT_SCENE2DGRAPHICSVIEW_HPP__ 10 #include "fwRenderQt/config.hpp" 11 #include "fwRenderQt/data/Event.hpp" 12 #include "fwRenderQt/data/Viewport.hpp" 14 #include <QGraphicsScene> 15 #include <QGraphicsView> 16 #include <QPaintEvent> 17 #include <QResizeEvent> 34 FWRENDERQT_API
void keyPressEvent(QKeyEvent* _event);
36 FWRENDERQT_API
void keyReleaseEvent(QKeyEvent* _event);
38 FWRENDERQT_API
void resizeEvent(QResizeEvent* _event);
40 FWRENDERQT_API
void mouseReleaseEvent ( QMouseEvent* _event );
42 FWRENDERQT_API
void mousePressEvent ( QMouseEvent* _event );
44 FWRENDERQT_API
void mouseMoveEvent ( QMouseEvent* _event );
46 FWRENDERQT_API
void mouseDoubleClickEvent ( QMouseEvent* _event );
48 FWRENDERQT_API
void wheelEvent ( QWheelEvent* _event );
50 FWRENDERQT_API
void updateFromViewport();
52 FWRENDERQT_API
void setViewport( ::fwRenderQt::data::Viewport::sptr viewport );
58 ::fwRenderQt::data::Viewport::sptr m_viewport;
61 ::fwRenderQt::data::Event::Button getScene2DButtonFromEvent( QMouseEvent* _event );
62 ::fwRenderQt::data::Event::Modifier getScene2DModifierFromEvent( QInputEvent* _event );
64 void paintEvent ( QPaintEvent* event );
69 #endif // __FWRENDERQT_SCENE2DGRAPHICSVIEW_HPP__
Qt scene rendering class.
The namespace fwRenderQt contains classes for rendering with Qt.